chore: version packages - #90
Merged
Merged
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@tenphi/glaze@1.4.0
Minor Changes
#89
19cdde6Thanks @tenphi! - Addfromon theme color definitions. A color can now be seeded from a literalvalue — the same forms
glaze.color()accepts — instead of from the theme:Most of Glaze answers "design me a palette". This answers the other question,
"honor this color" — white-label products, multi-tenant branding and imported
design tokens all arrive with a value already chosen, and it is a contract
rather than a starting point.
fromsupplieshue,tone, and — uniquely among theme colors — anabsolute saturation. That last part is what makes the feature worth having.
Every other color's
saturationis a 0–1 factor of the theme seed, so the seedis a ceiling: the only way to place a color more saturated than its theme was to
re-seed the theme, which drags every sibling along. A palette whose accent seed
is shared with its status themes could not honor one brand color without
re-chromatizing
danger,successand the rest as a side effect. Afromcolor carries its own chroma and is unaffected by the seed.
The light, normal-contrast variant reproduces the value exactly (a local
lightTone: false, matching the value-shorthand form ofglaze.color()). Darkand high contrast adapt as usual — those are the variants a reader reaches for
when the normal one does not work for them, so readability outranks fidelity
there, and a color pinned across all four would just be a worse
mode: 'static'. Acontrastfloor still applies everywhere and is still afloor rather than a target: a value that already clears it is emitted untouched.
Sibling fields override what the value supplied, so
{ from: '#2f5bff', hue: 300 }keeps the saturation and tone and rotates thehue. A
fromcolor needs neitherbasenortone— it is placed absolutely,so it stands as a root on its own.
An unparseable
fromis rejected byvalidateColorDefswith the color's name inthe message, rather than surfacing the parser's own error from inside the
resolver — the string alone does not tell you which of fifty tokens carries it.
Two smaller consequences. Under
splitHue, afromcolor now gets its own--{name}-huecustom property in both schemes rather than referencing thetheme's: it authors a hue that is not the theme's, so tracking the theme var
would re-skin it on the next re-seed — the same failure mode fixed for
darkHue-only colors in 1.3.1. And the value parsing / validation forGlazeColorValuemoved fromcolor-token.tsto a new internalcolor-value.tsso the resolver can reach it without an import cycle; no public export changed.