Skip to content

Commit e47f5fa

Browse files
committed
Ignore content: var(--tw-content) when determining color
1 parent ed51ba7 commit e47f5fa

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ function getColorFromDecls(
6262
): culori.Color | KeywordColor | null {
6363
let props = Object.keys(decls).filter((prop) => {
6464
// ignore content: "";
65-
if (prop === 'content' && (decls[prop] === '""' || decls[prop] === "''")) {
65+
if (
66+
prop === 'content' &&
67+
(decls[prop] === '""' || decls[prop] === "''" || decls[prop] === 'var(--tw-content)')
68+
) {
6669
return false
6770
}
6871
return true

0 commit comments

Comments
 (0)