kham.udom work luminora forma

Forma

A design system for humans and AI agents.

Role
Creator and primary author
Disciplines
Design engineering · Developer experience
Stack
Design tokens, React, TypeScript, Storybook, Figma, MCP

Why I created Forma

Before Forma, each Luminora web app kept its own tokens and primitives, partly from my own earlier work. Three kinds of consumers were about to depend on one system: designers in Figma, engineers in React, and AI coding agents, which copy whatever pattern is closest to hand. I started Forma to give all three one source of truth.

One system, three kinds of reader

A design system usually serves people who can ask questions. Agents can't. Rules that live in someone's head get ignored, and every generated change adds drift. Forma had to be explicit enough for a machine to follow and still pleasant for designers and engineers to use.

Everything derives from the tokens

One canonical token file is the only thing people edit. A generator produces the light, dark, and high-contrast themes, a typed catalog, machine-readable metadata, and Figma variables. Builds fail if any output is stale, so there is never a second catalog to reconcile.

  1. source

    • Canonical tokensthe only file people edit
  2. generated

    • Themeslight · dark · high contrast
    • Typed catalogTypeScript token names
    • Token metadataintent, usage rules, contrast pairings
    • Figma variablescollections and aliases
  3. consumed by

    • DesignersFigma variables · native components · Code Connect
    • EngineersReact packages · Storybook
    • AI agentsmetadata · consumer contract · Storybook MCP
    • AppsActive Mirror, through packaged releases
fig 1. Designers, engineers, and agents read the same source. Everything to the right of the tokens is generated or derived.

Components have typed props and callbacks and no knowledge of the backend, so they're testable in isolation and portable between apps. A dedicated package covers the states AI products tend to improvise: streaming, thinking, tool execution, agent status, errors, and action approval. Each has its own accessibility rules, such as throttled streaming announcements and errors that alert without moving focus.

Agents get the same rules in a form they can parse: token metadata with intent and required contrast pairings, a portable consumer contract, and Storybook's MCP server for querying components. The metadata enforces nothing on its own; tooling and instructions have to apply it.

Deep dive: Figma and code from the same source

Code Connect links Forma's Figma components to their React implementations, so designers and engineers see the same component API. For variables, a deterministic projection turns the tokens into Figma collections. A sync tool plans each change, validates the plan, and writes through the official Figma MCP server only after a person approves both the plan and the target file. The production library is refused by default.

I ran it end to end in a disposable sandbox file: 12 collections, 159 variables, and 130 native aliases, then a controlled update and restore that ended with nothing left to change. Those figures describe the sandbox, not production adoption.

The same approach extends to components. A designer quickstart, an authoring contract, and an agent skill let an agent build native Figma components from Forma through MCP. A ten-variant Button set built in the sandbox had its variable bindings read back to confirm them. It's a starting point awaiting design review, and choosing a production library strategy comes next.

Results and verification

Every change runs typecheck, lint with accessibility rules, unit tests with Testing Library, and Playwright suites that open Storybook stories in all three themes, measure rendered contrast against WCAG AA, and run axe-core. A consumer check installs the packaged libraries into a throwaway app to catch packaging mistakes. When the foundations landed, 119 unit, 40 accessibility, and 21 browser token tests passed. Automated checks aren't a conformance audit, and I don't present them as one.

Forma reaches Active Mirror as packaged releases. A merge to main builds the libraries and opens a pull request on the app, and an engineer reviews and merges it.

Buttons, seals, links, and the exploded button anatomy in the hero share one accent ink token. It starts black; raise saturation to blend in the hue. Adjust hue, saturation, radius, or edition and every Charm component (plus each diagram layer) re-themes live. Hover the diagram to expand it.

Reset to defaults

This drawer is a ch-dialog, the radios are ch-radio, and every button, card, and badge on this page is a Charm component. The sliders mutate Charm's token layer on :root. Your changes are saved in this browser.