isColor
True when text is a colour.
Details #
isColor(value) is true when parseColor can read the text (hex, rgb(), hsl() or a CSS name). It never fails.
Parameters #
Takes 1 argument.
{{ isColor(text) }}
Examples #
isColor("tomato")→
trueisColor("#ff8000")→
trueGotchas #
Only text can be a colour.