Repository navigation
chore(deps): upgrade Glaze to 3.0.0 - #198
Merged
Merged
Conversation
Glaze 3 makes a shadow's intensity an exact tone step and replaces the 2.x shadow tuning fields. The built-in shadow now steps 8 tones in light and dark and is transparent in high contrast. theme.glaze.shadowTuning and a role's own tuning validate the new objectInfluence, tint, reach and hueBleed fields, and palette roles accept glow declarations. Glaze 3 ships its guides as MDX and its reference as a folder index, so pack-docs localizes those (including the guides' root-relative links) and the package and install smoke checks look for reference/index.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
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.
Upgrade the published docs/renderer catalog dependency to Glaze 3.0.0 and adapt Cookbook to its exact-step shadow model.
shadowis now{ type: "shadow", bg: "surface", intensity: [8, 0] }: an exact 8-tone step in light and dark, transparent in high contrast. Light matches 2.x (7.65 → 8 tones on white). Dark is deliberately stronger (2.7 → 8 tones), because 2.x's dark shadow was barely visible.theme.glaze.shadowTuningand a shadow or glow role's owntuningaccept Glaze 3'sobjectInfluence,tint,reach, andhueBleed. Runtime validation and the schema share one rule set. The removed 2.x fields fail validation instead of being ignored. Palette roles acceptglowdeclarations.theme.glazeno longer typesglowTuning, which validation rejects. The deprecatedglaze(seed, undefined, config)call is gone..mdxand its reference asdocs/reference/index.md. pack-docs now localizes both, and resolves the guides' root-relative links against glaze.tenphi.me. The package and install smoke checks look forreference/index.mdinstead of the removedapi.md.Known limitation, accepted and documented. On the default surface, two settings leave the dark page too close to black for the built-in 8-tone step: a numeric
theme.contrastLevelfrom about 25 to 99, or adarkTonedark end below about 14. Glaze then paints the shadow at full strength and logs one "cannot reach" warning. No fixed intensity avoids this at every level, because the dark page approaches black faster than the step fades. The fix belongs in Glaze.Validation. These all passed locally:
check:types,check:theming,check:packagesandcheck:publishingI compared 31 themes against 2.x, 228 contrast checks each. No color fails a check it passed before. Apart from the shadow, the largest changes are light-mode syntax colors (ΔE OK ≤ 3), which now land closer to their contrast floors.
Review. A local review (the repository procedure plus Entropy) and a follow-up verification pass leave nothing outstanding. Entropy change: about Neutral. Validation and the palette get slightly simpler. Glow support, the pack-docs rules and the new doc caveats add a little, all of it required by Glaze 3.
🤖 Generated with Claude Code