node.isColor does not support rgb(a), hsl(a) and color keywords
Closed this issue · 4 comments
bartveneman commented
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.
shellscape commented
Absolutely.
In the future please do use the issue templates.
bartveneman commented
updated opening comment
shellscape commented
Added in 7108d9a. I'll release a new beta shortly.
bartveneman commented
Whoa, that’s quick!