0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2026-11-16 06:58:43 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Mark Otto
bab6fddd42 Derive theme color pairings from --{name}-base
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.
2026-09-24 20:42:32 -07:00
Mark Otto
b75f4fdac0 Add token playground to theme docs
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