Replies: 1 comment
-
I think it's because you're importing Tailwind twice:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m running Tailwind CSS v4 in a Turborepo monorepo with this structure:
Minimal reproduction
MyParent.tsx
inpackages/ui
:Usage in apps/dashboard (none of these classes is working):
Result:
Only
.group-hover:bg-red-400
is generated, nothing for.ui:group-hover:bg-red-400
Expected
Variant classes with the
ui:
prefix (e.g.ui:group-hover:bg-red-400
) should be generated when the app uses them.Actual
Only the non-prefixed variants are generated (e.g.
.group-hover\\:bg-red-400
).No CSS is generated for
.ui\\:group-hover\\:bg-red-400
or other prefixed variants.What I tried
@source
inpackages/ui/globals.css
to scan both the UI package and the apptailwindcss/utilities
withprefix(ui)
ui:
work (e.g.,ui:bg-red-400
)ui:group-hover:*
,ui:peer-focus:*
) are missing from the outputQuestion
prefix()
in a monorepo?If needed I can share a minimal repro repository.
Beta Was this translation helpful? Give feedback.
All reactions