Rebuild $theme-colors through a new theme-color() helper so every pairing
(fg, bg-subtle, border, focus-ring, …) derives from var(--{name}-base) with
color-mix, instead of pointing at fixed palette stops. Add color-stop() and
theme-blend() in _colors.scss and theme-pair() in _theme.scss to replay the
palette recipe against the base. Default compiled colors are unchanged.
One :root override of --bs-{name}-base now re-mints the whole set. Add a
Root option to the token playground to demonstrate this, and document the
mechanism, the cascade scope limits, and single-token overrides in theme.mdx.
Show how theme and layout tokens flow to components. Readers change the
radius, spacer, or primary color and see the button, input, alert, and
card update together. The Remint control demonstrates how derived tokens
(bg-subtle, fg, border) restate the theme today.
2026-09-13 12:44:35 -07:00
6 changed files with 606 additions and 69 deletions