Skip to content

with-tailwind example duplicated css #2308

Closed Answered by oscarsala
oscarsala asked this question in Help
Discussion options

You must be logged in to vote

if anyone is experiencing the same issue you can solve it by consuming the UI package directly from the source as stated in the example readme, in my particular case I only cared to consume UI so I added that to the content packages ../../packages/ui/**/*.{js,ts,jsx,tsx}

Another option is to consume packages/ui directly from the source without building. If using this option, you will need to update your tailwind.config.js to be aware of your package locations, so it can find all usages of the tailwindcss class names.

For example, in tailwind.config.js:

  content: [
    // app content
    `src/**/*.{js,ts,jsx,tsx}`,
    // include packages if not transpiling
    "../../packages/**/*.{js,t…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by oscarsala
Comment options

You must be logged in to vote
1 reply
@sakib412
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants