Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Add hwb() support #2

Closed
LeoniePhiline opened this issue Feb 9, 2019 · 1 comment
Closed

Add hwb() support #2

LeoniePhiline opened this issue Feb 9, 2019 · 1 comment

Comments

@LeoniePhiline
Copy link

LeoniePhiline commented Feb 9, 2019

Hi! :)

Could you possibly add hwb() support?

The "PLUGIN" link at https://preset-env.cssdb.org/features#color-functional-notation refers here, showing a box-shadow: 0 0 0 10px hwb(120deg 100% 25% / 80%);, but as far as I can see, that's not actually supported by this plugin.

https://github.com/postcss/postcss-color-hwb can only be used with comma separated values, which AFAIk never were standard. (See postcss/postcss-color-hwb#9)

Not sure which is the better place to fix this... :)

@romainmenke
Copy link
Member

Hi @LeoniePhiline as the comma separated values syntax was never standard it would be beter if this was not handled in this plugin.

From our perspective it makes sense to add support for hwb -> rgb/rgba.

There is an ongoing effort to have better support for everything included in the css-color-4 spec : csstools/postcss-plugins#70
We hope to tackle this there too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants