Replies: 1 comment
-
Stumbled across this today and got it working. Require in your config with
then in the parent config use
That'll merge the 2 arrays together. Relative paths don't work on the preset file though, so use
to ensure the full path is used. |
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.
-
For context, my team is using Tailwind to create a shared design system for our projects, both with design tokens and common React components.
The design tokens can be easily shared with a Tailwind preset, but without configuring
content
explicitly, the React components' styles won't be picked up by the Tailwind configuration of a project that uses that design system.It would be really nice if we could just add the paths to shared component source files to the Tailwind preset, so every project that uses it would get those styles, but according to the documentation on merging,
content
is completely overridden by the final configuration.Beta Was this translation helpful? Give feedback.
All reactions