Prefix (prefix(sc)) not applied correctly in complex selectors (e.g. [&_svg:not([class*='size-'])]:sc:size-4) #17639
Answered
by
wongjn
ridvanonal
asked this question in
Help
-
@import "tailwindcss" prefix(sc); When using the prefix(sc) option in Tailwind CSS (version 4.1.3), the prefix works as expected for basic utility classes:
However, the prefix does not work when used inside more complex or nested selectors, like:
No CSS is generated for these utilities, even though they are valid Tailwind syntax. |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Apr 10, 2025
Replies: 1 comment 1 reply
-
Prefix should always be at the start: https://play.tailwindcss.com/h1bDHMOnJS |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ridvanonal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prefix should always be at the start: https://play.tailwindcss.com/h1bDHMOnJS