Add layered shadows, shadow theme variant utilities, shadow-xs, and keyline border width.#42675
Merged
Conversation
mdo
force-pushed
the
v6-shadows-keyline-border
branch
from
July 15, 2026 05:37
001ee7a to
df98db6
Compare
Contributor
shadow-xs, and keyline border width.
Introduce a smaller box shadow between the existing default and sm sizes, and expose it through the shadow utilities.
Shadow color and opacity utilities now compose through local --sc/--so
variables (like --bc for border-color) instead of setting --shadow-color
and --shadow-opacity directly, so .shadow-{color} and .shadow-opacity-*
no longer leak into nested .shadow-* descendants. The $shadows map
(scss/_config.scss) reads var(--sc, var(--shadow-color)) and
var(--so, 1), keeping --shadow-color/--shadow-strength as the
cascading global defaults. Removes the now-unused at-property utility
key since no utility needs the cascading opt-out anymore.
Updates the shadows docs with a nested-elements example and callout,
and adds a migration guide entry.
mdo
force-pushed
the
v6-shadows-keyline-border
branch
from
July 17, 2026 02:50
81986c7 to
705fce5
Compare
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.
Introduces a themeable, layered shadow system plus a
.5pxkeyline border width, and wires them through components and docs.775aea8ef): reworks--box-shadow-*tokens into multi-layer shadows built from three new tokens:--shadow-color— retints every shadow (drives.shadow-{color}utilities, e.g..shadow-primary)--shadow-opacity— dims/boosts shadows (drives.shadow-opacity-*)--shadow-strength— deepens all shadows, bumped automatically in dark modebase * strength * opacityviaoklch(from …), and utilities emit the literal layered expressions so the nested vars resolve on the element..shadow-xlsize; applied across_dialog,_drawer, and_menu.555aa6c31): adds--border-width-keyline: .5pxand a keyline border width, with docs examples on header menus + search input..shadow-xs(001ee7ad8, cherry-picked from9ec72b67e): adds a themed--box-shadow-xstoken (single subtle layer, consistent with the layered system) and.shadow-xsutility. Reconciled with the layered token style during cherry-pick..shadow-xl/.shadow-xs, and keyline usage.Notes
.shadow-xscommit originally used the old flatrgb()shadow values; it was adapted here to the new layeredoklch()token format so it stays consistent with the rest of the system.npm run dist/css-lint, so thedist/artifacts are not regenerated in this branch. Recommend running the full build before merge.