Skip to content

Commit 3ca76bb

Browse files
author
Cem Yılmaz
committed
I guess arbitrary colors like bg-[#ebb207]/75 are not supported because isColor function is not working properly with [].
1 parent 61c70d4 commit 3ca76bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const parse = (input: string, config?: Config): AST | Error => {
9797
const availablePlugins = functionalPlugins.get(root) as FunctionalPlugin[]
9898
let modifier: string | null = null
9999
let [valueWithoutModifier, modifierSegment = null] = segment(value || "", '/')
100-
if (modifierSegment && isColor(valueWithoutModifier, theme)) {
100+
if (modifierSegment && isColor(valueWithoutModifier.replace(/[\[\]]/g, ""), theme)) {
101101
modifier = buildModifier(modifierSegment, theme.opacity)
102102
}
103103

0 commit comments

Comments
 (0)