tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/packages/tailwindcss-language-service/src/util/color.ts b/packages/tailwindcss-language-service/src/util/color.ts
index 235f820f9c5c72f15ebcb2829a434fa4eac3bd62..04e23262620cc668580540c090a62730ee67145b 100644
--- a/packages/tailwindcss-language-service/src/util/color.ts
+++ b/packages/tailwindcss-language-service/src/util/color.ts
@@ -61,7 +61,14 @@
function getColorFromDecls(
decls: Record<string, string | string[]>
): TinyColor | KeywordColor | null {
- let props = Object.keys(decls)
+ let props = Object.keys(decls).filter((prop) => {
+ // ignore content: "";
+ if (prop === 'content' && (decls[prop] === '""' || decls[prop] === "''")) {
+ return false
+ }
+ return true
+ })
+
if (props.length === 0) return null
const nonCustomProps = props.filter((prop) => !prop.startsWith('--'))