Skip to content

My Nuxt3 project doesn't seem to purge unused DaisyUI classes as it should - using recommended config as per docs #3263

Closed Answered by saadeghi
Chippd asked this question in Q&A
Discussion options

You must be logged in to vote

These are not from daisyUI.
daisyUI styles .textarea class name not the textarea element itself.
These styles are the default reset styles of Tailwind CSS called "preflight" and is included in all Tailwind projects by default:
https://tailwindcss.com/docs/preflight

Here are all of them: https://unpkg.com/[email protected]/src/css/preflight.css

You can disable it from Tailwind: https://tailwindcss.com/docs/preflight#disabling-preflight

But I would not recommend removing it, because without this reset file, all elements will use the default browser styles (which sometimes are different for each browser) and you will experience some unexpected UI issues in different browsers.

The whole size…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Chippd
Comment options

@Chippd
Comment options

@saadeghi
Comment options

@saadeghi
Comment options

@Chippd
Comment options

Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants