We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c70d4 commit 3ca76bbCopy full SHA for 3ca76bb
src/parse.ts
@@ -97,7 +97,7 @@ export const parse = (input: string, config?: Config): AST | Error => {
97
const availablePlugins = functionalPlugins.get(root) as FunctionalPlugin[]
98
let modifier: string | null = null
99
let [valueWithoutModifier, modifierSegment = null] = segment(value || "", '/')
100
- if (modifierSegment && isColor(valueWithoutModifier, theme)) {
+ if (modifierSegment && isColor(valueWithoutModifier.replace(/[\[\]]/g, ""), theme)) {
101
modifier = buildModifier(modifierSegment, theme.opacity)
102
}
103
0 commit comments