Skip to content

[css-fonts] [palettes] base-palette should be able to reference "dark" or "light" (just like font-palette can) #6678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
litherum opened this issue Sep 23, 2021 · 1 comment · Fixed by #6679
Labels
css-fonts-4 Current Work

Comments

@litherum
Copy link
Contributor

base-palette's current grammar is:

base-palette: <integer> | <string>

It's currently impossible to tweak the colors in the "dark" palette, because base-palette can't identify the dark palette - it can only identify palettes by their individual indices or localized name.

So, just like font-palette has:

font-palette: none | normal | light | dark | <palette-identifier>

base-palette probably should have:

base-palette: light | dark | <integer> | <string>
@litherum
Copy link
Contributor Author

Pull request: #6679

litherum added a commit to litherum/csswg-drafts that referenced this issue Sep 23, 2021
…" or "light" (just like font-palette can)

Fixes w3c#6678.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-fonts-4 Current Work
Projects
None yet
1 participant