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.
content
1 parent e2285c0 commit 16864d9Copy full SHA for 16864d9
packages/tailwindcss-language-service/src/util/color.ts
@@ -61,7 +61,14 @@ function getColorsInString(str: string): (TinyColor | KeywordColor)[] {
61
function getColorFromDecls(
62
decls: Record<string, string | string[]>
63
): TinyColor | KeywordColor | null {
64
- let props = Object.keys(decls)
+ let props = Object.keys(decls).filter((prop) => {
65
+ // ignore content: "";
66
+ if (prop === 'content' && (decls[prop] === '""' || decls[prop] === "''")) {
67
+ return false
68
+ }
69
+ return true
70
+ })
71
+
72
if (props.length === 0) return null
73
74
const nonCustomProps = props.filter((prop) => !prop.startsWith('--'))
0 commit comments