Skip to content
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

Proposal: migrate colors to oklch/CSS 5 #130

Open
michaelfester opened this issue Jul 17, 2023 · 1 comment
Open

Proposal: migrate colors to oklch/CSS 5 #130

michaelfester opened this issue Jul 17, 2023 · 1 comment

Comments

@michaelfester
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Handling variations of colors can be tricky (e.g. hover colors) and currently requires defining new CSS variables, instead of applying transforms (e.g. lightness) to a base set of colors. CSS 5 color transformations can simplify this, and make accessibility easier to control

Describe the solution you'd like
Move variables to okhcl, and use CSS 5 colors transforms for variations. As a result, remove unnecessary variables.

@nickrttn
Copy link
Member

nickrttn commented Aug 4, 2023

We will likely need to add a build step for our CSS for this to make sure we hit the browser support we would like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Later
Development

No branches or pull requests

2 participants