Kiln
A compiler for design systems: fire one token file at it and get CSS custom properties, typed constants, Figma variables, and a changelog out the other side.
The problem
Design tokens start as truth and end as three stale copies: the CSS someone hand-wrote, the TypeScript constants that drifted last sprint, and the Figma variables nobody has authority to touch. Every "single source of truth" deck I've seen admits, in the appendix, that the source is actually a Slack thread.
Kiln makes the token file the only editable artifact and treats everything else as build output.
Approach
One TOML file describes primitives, semantic aliases, and per-mode overrides. Kiln compiles it to CSS custom properties (with light-dark() pairs), a typed TypeScript module so theme.color.accent autocompletes and refuses to drift, Figma Variables REST payloads, and a generated changelog of what changed semantically — "accent darkened 4% in dark mode" instead of a diff of hex strings.
The compiler core is 400 lines on Bun with a dependency-free parser; targets are plugins. CI fails when generated files are stale relative to the token source, which turns drift from a quarterly audit into a red check on the PR that caused it.
Outcome
Used on this site's theme and two client systems. Token changes that used to mean a design-eng handoff ticket now land in one commit, reviewed as one diff, with every consumer updated atomically. The changelog has quietly become the design team's release notes.