Skip to content

feat: add semantic color roles and APCA presets#69

Merged
tenphi merged 5 commits into
mainfrom
feat-apca-presets-and-roles
Jul 6, 2026
Merged

feat: add semantic color roles and APCA presets#69
tenphi merged 5 commits into
mainfrom
feat-apca-presets-and-roles

Conversation

@tenphi

@tenphi tenphi commented Jul 1, 2026

Copy link
Copy Markdown
Owner
  • Introduced semantic color roles ('text', 'surface', 'border') to enhance APCA contrast polarity handling.
  • Implemented role inference from color names, allowing for automatic role assignment based on naming conventions.
  • Added support for APCA presets ('preferred', 'body', 'content', etc.) to simplify contrast target definitions.
  • Updated documentation to reflect new role and preset functionalities.

- Introduced semantic color roles (`'text'`, `'surface'`, `'border'`) to enhance APCA contrast polarity handling.
- Implemented role inference from color names, allowing for automatic role assignment based on naming conventions.
- Added support for APCA presets (`'preferred'`, `'body'`, `'content'`, etc.) to simplify contrast target definitions.
- Updated documentation to reflect new role and preset functionalities.
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

📦 Snapshot release

Published 0.0.0-snapshot.fdc17e3.

pnpm add @tenphi/glaze@0.0.0-snapshot.fdc17e3

- Added `splitChannels` option for `css()` and `tasty()` exports, allowing hue to be emitted as a separate custom property when all colors are pastel.
- Introduced `okhst` output format for Tasty exports, with restrictions on non-Tasty exports.
- Updated default output format for `tokens()` and `json()` to `oklch`, with documentation reflecting these changes.
- Implemented format guards to ensure compatibility with pastel colors and native formats.
- Enhanced tests to cover new functionalities and ensure correct behavior of the split channels feature.
@tenphi tenphi merged commit 86c3d27 into main Jul 6, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 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