Skip to content

Commit 920b206

Browse files
author
Cem Yılmaz
committed
white or black detection fixed
1 parent c228ac5 commit 920b206

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/classname.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ export const classname = (ast: AstDeclaration, config?: Config): string | undefi
7272
}
7373
return stringBuilder
7474
.appendModifier(buildModifier(color.alpha || ast.modifier, theme.opacity))
75-
.addValue(findTailwindColorFromHex(color.hex, theme[matchedPlugin.scaleKey || "colors"]) || StringBuilder.makeArbitrary(color.hex))
75+
.addValue(
76+
findTailwindColorFromHex(color.hex, theme[matchedPlugin.scaleKey || "colors"])
77+
|| StringBuilder.makeArbitrary(color.hex)
78+
)
7679
.toString()
7780
}
7881

0 commit comments

Comments
 (0)