v0.150.0
Minor Changes
-
#1267
f9d7ebdcThanks @tenphi! - Adds2,s3, ands4monospace typography presets for code and snippet text (sized to matcht2–t4, using--font-mono).PrismCodeandCopySnippetnow uses3by default. -
#1267
f9d7ebdcThanks @tenphi! - Update@tenphi/glaze0.13.0 → 1.2.0 and migrate the palette from thelightnessaxis to the contrast-shapedtoneaxis.This changes resolved colors. Glaze 1.x removed
lightnessas a color-def input, so the upgrade and the axis migration are the same change — all 54 palette declarations are re-authored againsttone. Becausetoneis contrast-shaped rather than lightness-shaped, tokens do not land on their previous values. Measured per-channel RGB delta against the previous release, across every token in all four scheme variants: core surfaces/text mean ~13 (max 51), accent mean ~13 (max 48). Seed hue and saturation are unchanged, so hue relationships and relative ramps are preserved — the shift is in tone placement, not in the palette's structure.Also newly available from Glaze 1.2.0:
tone: 'max'/'min'on colors that declare abase(the extreme is no longer re-mapped through the dark tone window, which used to compress the base-to-extreme span and lower contrast in dark), anddarkHue/darkSaturationfor seeding the dark schemes independently of the flatdarkDesaturationhaircut. -
#1267
f9d7ebdcThanks @tenphi! - Defer Glaze color token resolution until first access (getPaletteTokens/getColorTokens/getTokens) so host apps can callglaze.configure(...)after importing the kit and still affect UI Kit tokens. ExistingPALETTE_TOKENS/COLOR_TOKENS/TOKENSexports remain as lazy proxies.
Patch Changes
-
#1267
f9d7ebdcThanks @tenphi! - Fix primary (and other solid accent) disabled button labels —#*-accent-disabled-surface-textrides the extreme away from its disabled chip (tone: 'max'), so the label stays deliberately faint (~cr 1.7, reading as disabled rather than as live text) while keeping a consistent separation from the chip in light, dark, and high-contrast schemes.Previously this was a contrast-driven relative step (
lightness: '+1'withcontrast: 1.51). Authoring it as an extreme is only viable from@tenphi/glaze1.2.0, which no longer re-maps a based extreme through the dark tone window — that compressed the base-to-extreme span and lowered the dark label's contrast. -
#1267
f9d7ebdcThanks @tenphi! - Keep#pinkresolving. The legacy alias was dropped whiletasty.config.ts,Usage.docs.mdxand thepinkkey in the Tasty token augmentation all still advertised it, so consumer styles using it would have silently stopped resolving with types still reporting the token as valid. Restored as the same scheme-static literal.Fix
CopySnippet'sserifvariant rendering monospace. Moving the code element to thes3/t3presets lost the font family:s3carriesfontFamily: var(--font-mono)butt3sets no family at all, soseriffell back to the<code>element's UA monospace default. The family is explicit again — monospace by default, the design system's default stack underserif. -
#1267
f9d7ebdcThanks @tenphi! - Ensure HTML syntax highlighting works inPrismCodeandCopySnippet, including JavaScript inside<script>tags. Differentiate tag names, attributes, values, and punctuation so markup is not a single color wash. -
#1267
f9d7ebdcThanks @tenphi! - Selected outline/clear Item labels now use the softer#primary-accent-text-softat rest and intensify to#primary-accent-texton hover (mirroring links). Both brand-text tokens are solved for AA against the selected fill, keeping labels readable and saturated.