firstbase

How it works

One source of truth for design and code.

Create your account
Figma (design) exchanges changes with Firstbase: contracts (mapping, behavior) and the foundation (tokens, brand) generate components (tsx, api), CSS (token, styles) and docs (Figma, Storybook), the base for AI-assisted composition with read-only components and documented APIs

Change the style

Change the tokens in Firstbase (colours, type, spacing) and every component follows.
Or export your system to Figma and change it there.

  1. The import's structure step: the layers of a component and its instances

    01 Structure

    Manage names, nested instances and overrides.

  2. The import's token step: values proposed as the project's tokens

    02 Tokens

    Change the tokens in Firstbase (colours, type, spacing) and every component follows. Or export your system to Figma and change it there.

  3. The import's contract step: the captured layers mapped to the Ark anatomy

    03 Contract

    Mapping to behavior, states and variants.

  4. The generated CSS of a component

    04 Build

    The code, style and documentation is generated.

Under the hood.

  • Deterministic

    The same contract always gives the same code. No AI guessing what your design meant.

  • Validated

    Every build is checked before you can approve it. A broken mapping stops the build instead of producing broken code.

  • Accessible

    Keyboard, focus and screen-reader support come from Ark UI.

A few rules in Figma.

Auto Layout, tokens instead of fixed values, one text style per text layer, Lucide icons.
Then the import understands your design.