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

Add support to prefers-contrast high #72

Open
adonyssantos opened this issue Apr 15, 2024 · 0 comments
Open

Add support to prefers-contrast high #72

adonyssantos opened this issue Apr 15, 2024 · 0 comments
Labels
feature New feature or request @palm-tree-css/core

Comments

@adonyssantos
Copy link
Owner

Change the colors to their high contrast equivalent.

Like px-to-rem (helper created by us) we can create a helper to which we pass a color and automatically this adds the @media prefers-contrast high with the corresponding color (this color will be autocomputed).

We can also make this helper include more things related to color in the future (Even invert the color if it is according to the color mode).

Example of usage

h1 {
  background-color: color(#f14b00);
}
@adonyssantos adonyssantos added the feature New feature or request label Apr 15, 2024
@adonyssantos adonyssantos added this to the Palm Tree 2.0.0 milestone Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request @palm-tree-css/core
Projects
Status: To-do
Development

No branches or pull requests

1 participant