News Score: Score the News, Sort the News, Rewrite the Headlines

OKLCH in CSS: why we moved from RGB and HSL—Martian Chronicles, Evil Martians’ team blog

The new CSS Color 4 specification has added the new oklch() notation for declaring colors. In this post, we explain why this is important for design systems and color palettes. The extremely short version oklch() is a new way to define CSS colors. In oklch(L C H) or oklch(L C H / a), each item corresponds as follows: L is perceived lightness (0%-100%). “Perceived” means that it has consistent lightness for our eyes, unlike L in hsl(). C is chroma, from gray to the most saturated color. H is the ...

Read more at evilmartians.com

© News Score  score the news, sort the news, rewrite the headlines