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.
Install
Section titled “Install”Download the archive for your platform from the repository’s Releases page and put airframe on your PATH, or build it with Go:
go install github.com/c65llc/airframe/cmd/airframe@latestQuick start
Section titled “Quick start”airframe init # write a starter project (airframe.yaml + design-system/) and build itairframe lint # check it; exit 1 on findingsairframe build # regenerate the CSS and JSON outputsairframe fmt # rewrite the sources in canonical formairframe import css theme.css # adopt an existing stylesheet's custom properties as tokensairframe help lists every command. Exit status is 0 when clean, 1 on findings or drift, 2 on a usage or I/O error.
Mode axes and the base value
Section titled “Mode axes and the base value”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.
GitHub Action
Section titled “GitHub Action”- uses: c65llc/airframe@v0 with: version: v0.13.0 args: lint --format gateThe 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:
- Start: install, the quick start and the GitHub Action.
- Guides: the platforms (Apple, Android, Windows), consumers, components and retired treatments, importing CSS, the reference commands, coding agents, the web app, VS Code and the desktop app.
- Rules: one page per rule, the page every finding links to.
- The design spec and the JSON Schemas.
- The web app, which runs in the browser and works offline.