How can I export all Tailwind classes? #16610
Unanswered
jhernandez-indigo
asked this question in
Help
Replies: 1 comment 2 replies
-
No. There is an infinite amount of classes, due to:
|
Beta Was this translation helpful? Give feedback.
2 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 am trying to use Tailwind by encapsulating the library inside a custom package which is going to be installed on different microfrontends.
This is my index.css
Right now it is only a proof of concept
Then when I compile the package and install on an FM, I try to use the utility classes and they don't work.
I was researching and there are recent changes where they worked to compile only the styles that are used in the project.
However, is there a possibility to configure Tailwind to export all classes ?
MF/src/index.css:
In the library project I have an App.tsx where I test the custom classes, that's why some of the colors and classes like btn-primary and full-size are exported in the index.css.
But classes like px-10, py-10 or others, don't work in the MF unless I install Tailwind and import its instance, but I don't want to have to do the same for all MFs, besides I'm already doing it in the index.css of my custom library.
Can someone please help me?
Beta Was this translation helpful? Give feedback.
All reactions