Skip to main content

Chassis

Chassis Tokens

Design tokens, defined once. Every brand, theme and platform built from them.

Chassis Tokens keeps the color, type, spacing and motion decisions of every brand and app in one repository, and builds them into code for the web, iOS and Android.

npx @chassis-ui/tokens init acme-tokens

Currently v0.16.1Changes

What you get

One structure for every brand. Native code for every platform.

A brand, a theme and an app are layers of the same tokens. Each platform gets them in the format it already reads.

Brands

Add a brand without copying the tokens.

  • A brand overrides only what differs from the base. Everything else is inherited.
  • Light and dark are modes of the same tokens, not a second set.
  • Every brand keeps the same token names, in Figma and in code.

Platforms

Get code that each platform reads natively.

  • SCSS variables for the web, for Chassis CSS or any other framework.
  • Swift for iOS, installed with Swift Package Manager.
  • XML resources for Android, installed with Gradle.

Workflow

Review a design change like a code change.

  • Every token change is a diff in a pull request, with its history in Git.
  • The build runs in CI. Nothing is exported or copied by hand.
  • Your own transforms and validators plug into the build.

How it works

From a Figma variable to production code.

A token change reaches every codebase in three steps. Nothing is retyped or translated by hand on the way.

Figma to code

  • 01 · Define

    Edit the tokens in Figma.

    Tokens are Figma variables. Tokens Studio saves each change to the repository.

  • 02 · Build

    Build every platform.

    One command turns the tokens into SCSS, Swift and XML with Style Dictionary.

  • 03 · Install

    Use them in your codebase.

    Web, iOS and Android projects install the output as a versioned dependency.

Works with

Tokens come first. The other packages read them.

Use the tokens alone, or add the packages that are built on them. Each one follows the same names and the same brands.

  • Chassis Figma

    The component library, bound to these tokens as Figma variables. Switch a mode and every screen follows.

  • Chassis CSS

    Custom properties and classes built from these tokens, named as they are in Figma.

  • Chassis React

    Accessible React components styled by Chassis CSS, so they take your tokens with it.

Tokens Studio
Token management in Figma
Style Dictionary
Token transformation
Figma Variables
Design integration
DTCG Tokens
The W3C community group format

Get started

Start with the guide that matches your task.

Set up a token repository, read what the tokens are, or install the output in the project you already have.

Getting started

Use in project

Design tokens