Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .changeset/quiet-pugs-remember.md

This file was deleted.

29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# @tenphi/glaze

## 1.5.0

### Minor Changes

- [#91](https://github.com/tenphi/glaze/pull/91) [`5bf6195`](https://github.com/tenphi/glaze/commit/5bf61957360b389741b40f827555e6812a4bd743) Thanks [@tenphi](https://github.com/tenphi)! - A manual `contrastLevel` no longer suppresses high-contrast output.

The level now does one thing: it positions the **normal** `light` / `dark`
variants on the 0–100 slider. The high-contrast tier stays the true
high-contrast resolution — bit-identical to what `'auto'` resolves — at every
level, and `modes.highContrast` alone decides whether it is emitted. The two
compose: a slider raises the baseline while a `prefers-contrast: more` block
still escalates on top of it.

Most visible in `css()`, which has no `modes` option and always returns four
strings: at a mid level its `lightContrast` / `darkContrast` blocks now carry
genuinely escalated values where they previously repeated the normal
declarations.

Two consequences of the corrected model:
- `contrastLevel: 0` now reproduces `'auto'` output exactly, high-contrast tier
included. It no longer implies "no high-contrast tier" — that is
`modes.highContrast: false`, still the default.
- At a global `contrastLevel: 100` the normal variants already _are_ the
high-contrast ones, so a separate tier would duplicate them: a single
light/dark set is emitted, even against an explicit `modes.highContrast: true`.

Also fixes the side-stability probe leaking into the high-contrast passes, which
made a mid-level high-contrast variant diverge from its `'auto'` counterpart.

## 1.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tenphi/glaze",
"version": "1.4.0",
"version": "1.5.0",
"description": "OKHST-based color theme generator with WCAG contrast solving for light, dark, and high-contrast schemes",
"type": "module",
"main": "./dist/index.cjs",
Expand Down