Skip to content

Commit c9086eb

Browse files
committed
Cleanup
1 parent 0296221 commit c9086eb

File tree

1 file changed

+3
-1
lines changed
  • packages/tailwindcss-language-service/src/util

1 file changed

+3
-1
lines changed

packages/tailwindcss-language-service/src/util/color.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,12 @@ let isMaskUtility = /^-?mask-/
196196

197197
function isLikelyColorless(className: string) {
198198
if (isNegative.test(className)) return true
199+
if (isNumericUtility.test(className)) return true
200+
199201
// TODO: This is **not** correct but is intentional because there are 5k mask utilities and a LOT of them are colors
200202
// This causes a massive slowdown when building the design system
201203
if (isMaskUtility.test(className)) return true
202-
if (isNumericUtility.test(className)) return true
204+
203205
return false
204206
}
205207

0 commit comments

Comments
 (0)