$isValidColor
$isValidColor
will check if a given color is valid, based on regex.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
color | string | The color you want to check, can be hex or decimal. | true |
Example(s)
This will check if the given color ff0000
is valid: