chore: update css rules, add hct plugin

This commit is contained in:
2026-09-02 09:51:14 +05:00
parent 1310c51543
commit 98a4bacd23
13 changed files with 690 additions and 152 deletions
+3 -3
View File
@@ -21,12 +21,12 @@ export default {
// leading "--", so the regex must NOT start with --.
// Regex: either an exact brand token or a prefixed token:
// ^(brand-main|brand-alt)$ — brand exceptions
// |^(color|space|text|radius|bp|font)- — prefixed
// |^(color|space|size|text|radius|bp|font)- — prefixed
"custom-property-pattern": [
"^(brand-main|brand-alt)$|^(color|space|text|radius|bp|font)-",
"^(brand-main|brand-alt)$|^(color|space|size|text|radius|bp|font)-",
{
message:
'"%s" must be prefixed: --color-*, --space-*, --text-*, --radius-*, --bp-*, --font-*; brand: only --brand-main/--brand-alt',
'"%s" must be prefixed: --color-*, --space-*, --size-*, --text-*, --radius-*, --bp-*, --font-*; brand: only --brand-main/--brand-alt',
},
],
// Rule: !important is banned in CSS files. Overriding a look must happen