3 ms·
Thanks to Tailwind for, kinda like, standardizing this color variations and hue/saturation thing.
by Brajeshwar 3y ago
Thanks to Tailwind for, kinda like, standardizing this color variations and hue/saturation thing.
- ttfkam 3y agoI think CSS's standard hsl(…) did most of the heavy lifting here. Tailwind took advantage and set variations to CSS classes. I am coming to prefer lch(…) to any library. It scratches that consistent color itch and has basically universal support now in browsers. Then again, I prefer setting my CSS values through CSS variables rather than setting visual styles in the markup. YMMV
- Leftium 3y agoThanks for teaching me about lch()! It looks like oklch() fixed a problem I noticed with blue-white gradients turning purple~