4 ms·
HSL and HSV are terrible color representations for theming like this. You are just asking for chroma issues. LCH and Lab (along with OKLCH and OKLab) are offere
by toastal 5y ago
HSL and HSV are terrible color representations for theming like this. You are just asking for chroma issues. LCH and Lab (along with OKLCH and OKLab) are offered in the CSS4 spec. If you can't support CSS4, it's better off having users specify the whole color.
- clairity 5y agois it worth the complication of learning about the different color space options for the average developer? why aren't hex values 'good enough'? it's unclear (as a non-specialist) what problems those options are trying to solve.
- toastal 5y agoI wouldn't say I disagee with you which is why I mentioned just allowing a full color, be that hex, rgb, hwb, lab, etc... including color() which lets you define in absolute terms in various color spaces.