-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Use modern (CSS color level 4) syntax for colors in the color picker #139840
Comments
@rebornix Please mention the issue that this duplicates. I searched before opening this, and again now, but I can't find one. |
I thought there is an easier one but I couldn't find it anymore. Let's use this issue to track CSS color level 4 syntax support. |
The picker still displays and cycles through the old syntax. The only one that uses the level 4 syntax is css-picker.mp4 |
Hi thank you for your comment. Ah yes apologies I thought you meant using HSL values but you meant a different representation format for HSL. I will reopen the issue. |
I think it was related to all Level 4 color syntax forms, which I also find lacking. I am currently looking into the VScode source myself. To summarize:
With more and more libraries using oklch/oklab by default, this is becoming more and more important. Should it go into How much work would it be to also include support for |
When converting colors using the color picker, the old comma-based syntax is used:
(it should also show
hsl
here, at the top of the picker, notrgba
)Please update the picker to use the modern (CSS color level 4) syntax for colors.
With regard to the exact syntax, I agree with these suggestions from
@mathiasbynens
:i.e. Use percentages for alpha, and always include the
deg
suffix.This also matches the syntax displayed in Chrome developer tools.
The text was updated successfully, but these errors were encountered: