Skip to content

Start

Airframe turns a design system into a tool: design tokens as typed source files (DTCG JSON) with tiers, ownership and mode axes, a linter that enforces them, and generated outputs for each platform.

Download the archive for your platform from the repository’s Releases page and put airframe on your PATH, or build it with Go:

Terminal window
go install github.com/c65llc/airframe/cmd/airframe@latest
Terminal window
airframe init # write a starter project (airframe.yaml + design-system/) and build it
airframe lint # check it; exit 1 on findings
airframe build # regenerate the CSS and JSON outputs
airframe fmt # rewrite the sources in canonical form
airframe import css theme.css # adopt an existing stylesheet's custom properties as tokens

airframe help lists every command. Exit status is 0 when clean, 1 on findings or drift, 2 on a usage or I/O error.

Every axis in airframe.yaml has one base value: the one a token’s $value is, rendered when no attribute is set. It is the value whose only web selector is bare :root, else the axis’s base::

modes:
appearance: { values: [light, dark], web: { light: ":root", dark: ":root[data-theme='dark']" } }
density: { values: [compact, standard, relaxed], base: standard, web: { attr: data-density } }

A mode key never names a base value (mode-base-value), and lint checks the base context, the render with no attribute set, like every other.

- uses: c65llc/airframe@v0
with:
version: v0.13.0
args: lint --format gate

The action downloads that release’s binary for the runner, verifies it against the release checksums and runs it.

The website publishes the docs with each release, built from docs/ and this README: