postcss / postcss-color-function

PostCSS plugin to transform W3C CSS color function to more compatible CSS
MIT License
325 stars 31 forks source link

Hex color values #11

Closed pushred closed 9 years ago

pushred commented 9 years ago

Is there any particular reason that hex values aren't supported currently? I'm trying to work from a base palette defined as variables but they were defined in hex as the designer specified them. Seems like this should work but I get:

Unable to parse color from string "#ffffff,"

I suppose it's just an issue with the spec, it's odd how they provide the results in their examples as hex. But only rgb/hsl/hwb for input?

TrySound commented 9 years ago

@pushred Read documentation, please. You shoudn't use comma after hex.

pushred commented 9 years ago

Ahhh, must have been that Sass habit. Thanks!