shellscape/postcss-values-parser

node.isColor does not support rgb(a), hsl(a) and color keywords

Closed this issue · 4 comments

Feature Use Case

For convenience and accuracy it would be nice if node.isColor would also recognize hsl(), hsla(), rgb(), rgba() and color keyword (blue, yellow) nodes.

Feature Proposal

For @projectwallace/css-analyzer I use this logic to determine whether a node is a color.

Absolutely.

In the future please do use the issue templates.

updated opening comment

Added in 7108d9a. I'll release a new beta shortly.

Whoa, that’s quick!