module
UI::DesignTokens::WebGenerator
Overview
Emits a CSS file from a UI::DesignTokens::Tokens instance.
The output is deterministic: same input bytes → same output bytes.
Canonical CSS custom-property prefix is --ap-*. The previously-shipped
--amber-* alias block is NOT emitted in this phase or any later
phase — the prefix change to --ap-* is total (see implementation.md
§4.1 and the Architect's note in handoff/phase-01-architect-scope-deferral-2026-05-20.md).
Output structure: :root { …light tokens… } @media (prefers-color-scheme: dark) { :root { …dark tokens… } } [data-ap-theme="light"] { …light… } [data-ap-theme="dark"] { …dark… }
Extended Modules
Defined in:
ui/design_tokens/generators/web_generator.crConstant Summary
-
HEADER =
"/* GENERATED by UI::DesignTokens::WebGenerator. Do not edit by hand. */\n"