Skip to content

feat(color): default mode 'auto' for non-string glaze.color() inputs#54

Merged
tenphi merged 1 commit into
mainfrom
fix-color-notation
May 11, 2026
Merged

feat(color): default mode 'auto' for non-string glaze.color() inputs#54
tenphi merged 1 commit into
mainfrom
fix-color-notation

Conversation

@tenphi
Copy link
Copy Markdown
Owner

@tenphi tenphi commented May 11, 2026

Object, RGB tuple, and structured glaze.color() inputs now default to mode: 'auto' with both lightness windows snapshotted from globalConfig, matching how a theme color resolves. String inputs are unchanged. Pass { mode: 'fixed' } to opt back into the previous linear mapping.

Object, RGB tuple, and structured `glaze.color()` inputs now default to
`mode: 'auto'` with both lightness windows snapshotted from
`globalConfig`, matching how a theme color resolves. String inputs are
unchanged. Pass `{ mode: 'fixed' }` to opt back into the previous
linear mapping.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions
Copy link
Copy Markdown
Contributor

📦 Snapshot release

Published 0.0.0-snapshot.4e8eab7.

pnpm add @tenphi/glaze@0.0.0-snapshot.4e8eab7

@tenphi tenphi merged commit 88be8a4 into main May 11, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request May 11, 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