module

Hwaro

Single source of truth for the "Hwaro Ember" design-token system shared by every init scaffold.

One warm identity, both schemes: every color token is a light-dark() pair resolved by the page's color-scheme, so all scaffolds (including the default simple) adapt to the OS scheme automatically. A visitor can pin one side via the theme switcher: it sets data-theme on <html> and the :root[data-theme=…] rules below re-resolve every token — no second stylesheet, no dark scaffold variants.

Rules of the system:

  • Scaffold component CSS never hardcodes a color — everything goes through these tokens (a hygiene spec enforces this).
  • Layout tokens (--header-h, --sidebar-w, --content-max-w, --bg-sidebar, radius overrides) are per-scaffold and injected through root_block's layout hook.
  • Emission is deterministic: pure string builders, no state.

Constants

VERSION = "0.18.1"

Nested types