We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4669ee4 commit b74160aCopy full SHA for b74160a
packages/tailwindcss-language-service/src/util/getVariantsFromClassName.ts
@@ -33,6 +33,12 @@ export function getVariantsFromClassName(
33
// NOTE: This should never happen
34
if (!state.designSystem) return false
35
36
+ let prefix = state.designSystem.theme.prefix ?? ''
37
+
38
+ if (prefix !== '') {
39
+ className = `${prefix}:${className}`
40
+ }
41
42
// We don't use `compile()` so there's no overhead from PostCSS
43
let compiled = state.designSystem.candidatesToCss([className])
44
0 commit comments