Buy

Tokens and fonts

Tokens are a project's named colors, type styles, spacing, radii, shadows, motion and fonts. Change a token and every canvas that uses it follows, and copied code keeps the names as CSS variables.

Edit tokens

Click Tokens in the top bar. The right card lists the groups: Colors, Palette, Charts, Type, Spacing and sizes, Shape, Depth, Motion and Fonts. Open a group to edit its tokens, search them, or add one with +.

Use a token

Fields in the properties take tokens. The token button beside a field lists the ones that fit it, such as radii for a corner. In code, a token is a CSS variable, so a card's style might read:

background: var(--bg-raised);
padding: var(--space-4);
border-radius: var(--radius-lg);

Copied HTML comes with a :root rule that holds the tokens it uses, and React code with a Tailwind @theme block.

Light and dark

Color tokens can hold a light and a dark value. To show a frame in dark, click + beside Theme in its properties, and use the switch there to go between Light and Dark. Everything inside the frame takes the matching values, on the canvas, in exports and in code.

The Design System canvas

Every new project starts with a Design System canvas. Its boards show the project's colors, type, spacing, shape, depth, motion and icons, drawn with the tokens, so they update when a token changes. The mains of your components live there too. The Open Design System button at the top of the Tokens card takes you there. A project without one can add it with Add design system in the canvas menu.

Start from a direction

A new project opens the Pick a direction panel. Say what you are making and an agent drafts three looks for it. Picking one sets the project's colors, type and corners.

  • Use my brand instead reads the colors and font from your website, or lets you set them yourself.
  • Keep the default look leaves the starter tokens as they are.

To choose again later, open Direction at the top of the Tokens card.

Fonts

The font picker shows each font in its own typeface. It lists the fonts in the project, Immaculate Gothic under Built in, the fonts on your Mac, and about 1,950 Google Fonts families. Search by name, or filter by category.

A Google font downloads the first time you use it and works offline after that. Plus Jakarta Sans, Fragment Mono, Instrument Serif and Inter come with the app, and new projects use the first three for their sans, mono and serif tokens.