Skip to content

Commit 34b5be4

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classname.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export const classname = (ast: AstDeclaration, config?: Config): string | undefi
7373
return stringBuilder
7474
.appendModifier(buildModifier(color.alpha || ast.modifier, theme.opacity))
7575
.addValue(
76-
findTailwindColorFromHex(color.hex, theme[matchedPlugin.scaleKey || "colors"])
77-
|| StringBuilder.makeArbitrary(color.hex)
76+
findTailwindColorFromHex(color.hex, theme[matchedPlugin.scaleKey || "colors"]) ||
77+
StringBuilder.makeArbitrary(color.hex)
7878
)
7979
.toString()
8080
}

0 commit comments

Comments
 (0)