We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
color-mix()
colorFunctionRegex
1 parent d49e03a commit fdd9cdfCopy full SHA for fdd9cdf
src/lib/validators.ts
@@ -4,7 +4,7 @@ const fractionRegex = /^\d+\/\d+$/
4
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/
5
const lengthUnitRegex =
6
/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/
7
-const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/
+const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/
8
// Shadow always begins with x and y offset separated by underscore optionally prepended by inset
9
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/
10
const imageRegex =
0 commit comments