Regex pack·Free
CSS patterns
15 patterns for stylesheets: custom properties and var(), colors, lengths with units, !important, vendor prefixes, @media and url(). Some rewrite the code, for example rgba(0, 0, 0, 0.5) to rgb(0 0 0 / 0.5) or #aabbcc to #abc.
Free to install.
If PocketCode is installed on your Android device, this opens the page in the app.
Preview
3 of 15
(?<![\w-])(--[\w-]++)\s*+:\s*+([^;\{\}\n]+)Custom property definition (--name in $1, value in $2)
\bvar\(\s*+(--[\w-]++)var(--name) use, name in $1
\b(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch)\([^()\n]{1,100}\)Color function: rgb(), rgba(), hsl(), oklch() and others
Changes in 1.0.0
First version.