Skip to content

How to add "exotic color space" support to CSS? #578

Discussion options

You must be logged in to vote

CSS does not directly support exotic color spaces. CSS color level 5 mentions custom color spaces that you can link to color profiles though: https://drafts.csswg.org/css-color-5/#custom-color. I don't know if any browsers support it though, and I think it is limited to RGB style profiles, but that's the closest you have.

The only other way to support exotic color spaces is to use a library that manipulates colors in the space you care about and then convert them to CSS supported color spaces.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@facelessuser
Comment options

@SoftMoonWebWare
Comment options

@facelessuser
Comment options

Answer selected by SoftMoonWebWare
@SoftMoonWebWare
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants