Skip to content

chore(deps): upgrade Glaze to 3.0.0 - #198

Merged
tenphi merged 1 commit into
mainfrom
chore/glaze-3
Nov 6, 2026
Merged

tenphi merged 1 commit into
mainfrom
chore/glaze-3

Conversation

@tenphi

@tenphi tenphi commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Upgrade the published docs/renderer catalog dependency to Glaze 3.0.0 and adapt Cookbook to its exact-step shadow model.

  • Built-in shadow. shadow is 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.
  • Configuration. theme.glaze.shadowTuning and a shadow or glow role's own tuning accept Glaze 3's objectInfluence, tint, reach, and hueBleed. Runtime validation and the schema share one rule set. The removed 2.x fields fail validation instead of being ignored. Palette roles accept glow declarations. theme.glaze no longer types glowTuning, which validation rejects. The deprecated glaze(seed, undefined, config) call is gone.
  • Packed docs. Glaze 3 ships its guides as .mdx and its reference as docs/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 for reference/index.md instead of the removed api.md.
  • Docs. The theme guide, a 0.32.x → 0.33 migration note, and a minor changeset for the fixed group.

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.contrastLevel from about 25 to 99, or a darkTone dark 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:

  • zero-warning lint, formatting, typecheck and knip
  • 468 unit tests
  • check:types, check:theming, check:packages and check:publishing
  • the pnpm packed-install smoke check

I 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

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]>
@tenphi
tenphi merged commit 25b3158 into main Nov 6, 2026
12 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant