Replies: 1 comment
-
It is not provided by v4's automatic source detection if you just |
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.
-
Hello, I'm working in a large Nx monorepo with a bunch of Next.js apps, multiple shared UI libraries, and we are trying to introduce Tailwind v4 (not coming from v3) in a centralized manner
We have roughly the following structure:
Basically, we want to have all of the theming defined in one place (
/libs/shared/tailwind-styles
), but have the consumer apps generate their own individual CSS files (e.g./apps/app1
->app1.css
,/apps/app2
->app2.css
) based on what is actually used within the app. For example, app1 may usetailwindified-component1.tsx
but nottailwindified-component2.tsx
, so we wouldn't want it to generate classes only used by the latter. But both app1 and app2 would need the same@theme
setup for variables.Is this provided by v4's automatic source detection if we just
@import 'tailwindcss'
within/apps/appX/styles/appX.css
, or will we need to define@source
s in each app to point back to the shared, tailwindified UI library?Beta Was this translation helpful? Give feedback.
All reactions