Skip to content

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

@bartveneman

Description

@bartveneman

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions