Facet
A design system as a compiler over a typed token graph.
Zero-runtime and framework-agnostic. Modes (theme x brand x density) are first-class; emits atoms, utilities, recipes and cross-platform output.
OverviewWhat Facet is, and how it thinks about design systems.QuickstartInitialize a Facet graph, build artifacts, and wire tokens and utilities in HTML.Core ConceptsThe token graph model, aliases, derivations, and resolved values.ModesHow Resolver axes build the theme×brand×density mode space.Authoring TokensToken file organization, conventions, and safe bootstrapping paths.Utilities and RecipesAuthoring APIs that compile to the same FIR and de-duplicate to shared atoms.Cross-platform OutputsStatic artifacts generated by `facet build` and one-directional export targets.Headless PrimitivesFramework-agnostic behavior cores with lightweight adapters.CLIFacet command set, options, and command examples.Spec ReferenceFormal input formats and compiler guarantees from the v0 Facet spec.