Hubert Souchaud
banner
hubertsouchaud.fr
Hubert Souchaud
@hubertsouchaud.fr
🇺🇦 Webmaster Freelance & DJ - #Poitiers
https://hubertsouchaud.fr
No! Color.js is good!
What we need is: color-extract() CSS function
lea.verou.me/specs/#color...

Sorry for my poor english! 😅
Web Specs • Lea Verou
lea.verou.me
November 12, 2025 at 10:44 AM
I may not know how to do it... but we should be able to take advantage of all the features of the color.js API in <color-input>
November 11, 2025 at 7:46 AM
I pick a color (in oklch), I obtain a color value. Now, while <color-input> is built around color.js, if I want the lightness component of this color value, I re-import color.js, I declare mycolor=new Color(value); lightness = mycolor.oklch.l
November 11, 2025 at 7:46 AM
Hi Adam, do we really need to re-import color.js just to extract the different color-components (e.g., color lightness) in js?
Thank you so much for all your very inspiring work Adam!
codepen.io/dmsr/pen/Qwy...
Dynamic color-scheme
Pure CSS color-scheme adaptation to color lightness. Tribute to Adam Argyle & Lea Verou...
codepen.io
November 10, 2025 at 12:46 PM