Open hbisadii opened 1 year ago
I noticed that you mentioned Tailwind CSS not being applied after building your package with TSDX. I just wanted to let you know that in the template I shared, Tailwind CSS is working perfectly after building.
I've tested it thoroughly, and the build process ensures that all the Tailwind CSS styles are correctly applied.
If you have any specific questions or need further assistance, please let me know.
You can find the template here: https://github.com/walifile/tsdx-tailwind-typescript-component-library
I'm not sure if this is a bug. I've got a tsdx uikit project with tailwindcss 3.2.6 "postcss": "^8.4.14" and "autoprefixer": "^10.4.13". I also have storybook in my project. The problem is that all tailwind classes are working alright in storybook but after I build the package and install it on another project none are working. I also got this tsdx.config.js with inject:true:
Also when I build the project the components files are like this. for example for badge component there is a index.d.ts with following code:
while I have more codes in my src using tailwind classes. I just can't find what's wrong.