what is the reason behind adopting hsl instead of hex or rgb? #1802
Replies: 3 comments 8 replies
-
I have the same question. I don't understand when look at this code... |
Beta Was this translation helpful? Give feedback.
-
Yeah, I posted here too soon, before trying it out. I'm having the same problem you are: |
Beta Was this translation helpful? Give feedback.
-
IMO it's not the best practice. At least let users choose to use HSL or RGB. I've never used HSL and all the design files, color pickers are using RGB which makes it so tidous to convert RGB to HSL. and, for what? |
Beta Was this translation helpful? Give feedback.
-
I understand for some people out there, the color can be understood easily given their values. But the way this ui library is setup, it is hard to see colors in the editor if you are not that comfortable with hsl. On top of that, I believe some libraries doesn't have hsl support. Recently I tried using shadcn UI with framer motion and it seems that framer motion doesn't support hsl css variables, or at least as much as I tried to solve the issue.
So why not adopt something like rgb?
Beta Was this translation helpful? Give feedback.
All reactions