Ignore `content: var(--tw-content)` when determining color
parent
ed51ba73a8
commit
e47f5fa539
|
@ -62,7 +62,10 @@ function getColorFromDecls(
|
||||||
): culori.Color | KeywordColor | null {
|
): culori.Color | KeywordColor | null {
|
||||||
let props = Object.keys(decls).filter((prop) => {
|
let props = Object.keys(decls).filter((prop) => {
|
||||||
// ignore content: "";
|
// ignore content: "";
|
||||||
if (prop === 'content' && (decls[prop] === '""' || decls[prop] === "''")) {
|
if (
|
||||||
|
prop === 'content' &&
|
||||||
|
(decls[prop] === '""' || decls[prop] === "''" || decls[prop] === 'var(--tw-content)')
|
||||||
|
) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue