Repository navigation
Conversation
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.
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.
This was referenced Sep 30, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #42929. Review and merge that first; this builds on it.
$theme-colorsthrough a newtheme-color()helper so each pairing (fg,fg-emphasis,bg-subtle,bg-muted,border,focus-ring) derives fromvar(--{name}-base)withcolor-mix, instead of referencing fixed palette stops like--blue-600.color-stop()andtheme-blend()toscss/_colors.scssandtheme-pair()toscss/_theme.scssto replay the palette tint/shade recipe against the base.basestill anchors to the palette 500;inverseandsecondarystay hand-authored. Default compiled colors are unchanged (exact parity).:root { --bs-primary-base: … }override now re-mints the whole set. Add a Root option to the token playground to show this next to Base and All.:root-vs-subtree cascade limit, and single-token overrides incustomize/theme.mdx.Note: reminting from one variable works at
:root. For a subtree, CSS resolves the derived tokens where they are declared, so users restate the tints/shades they need.Supersedes the hardcoded pairings.