Repository navigation
Glass tinted by the theme; material on Navbar.Row and Footer - #298
Merged
Merged
Conversation
added 2 commits
September 30, 2026 01:12
The themes and every component fallback drew glass as a white film. On a dark theme that read as milky rather than as glass, and sites overrode the tokens or wrote their own glass CSS to escape it. The film is now base-100 and the border base-content, in both themes and in the fallbacks, so glass is the page's own surface made translucent. Highlights stay white. Dark mode's opacity curve assumed the white film (4% to 26%); a dark film at those values all but vanishes, so both modes take the one curve, and the dark theme's film is the value it derives, 41.55%.
A header row or a footer can now be glass like a card, from the same tokens, instead of a site writing its own glass CSS for it. Opt-in: with material unset neither element gets a data-material attribute and renders as before. A glass row drops its flavour's fill, which would hide the glass, and takes the surface's text colour.
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.
Glass is now the page's own surface made translucent, not a white film.
Card,_shared/material.css,GlowCard) tint glass withbase-100and border it withbase-content. Highlights stay white.materialonNavbar.RowandFooter: opt-in, so with it unset neither changes. A glass row drops its flavour's fill and takes the surface's text colour.Why: 24x.ai's glass cards came out milky white in dark mode. The site had written its own
.glass-navCSS and overrode--glass-*to escape it, so the nav and the panels were two different glasses. With this, 24x deletes its glass CSS: the nav row and the cards both usematerial="glass", and the site's only setting isapplyGlassTokens({ blur: 4 }, "dark").Checked locally:
bun run check, build andbun run test: 321/321.Releases as 3.3.0 (fix plus feat).