Replies: 1 comment 1 reply
-
|
I think it's because you're importing Tailwind twice:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.tsxinpackages/ui:Usage in apps/dashboard (none of these classes is working):
Result:
Only
.group-hover:bg-red-400is generated, nothing for.ui:group-hover:bg-red-400Expected
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-400or other prefixed variants.What I tried
@sourceinpackages/ui/globals.cssto scan both the UI package and the apptailwindcss/utilitieswithprefix(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