viandwi24 / nuxt3-awesome-starter

a Nuxt 3 template and boilerplate with a lot of useful features. Nuxt 3 + Tailwindcss + Nuxt Layer
https://nuxt3-awesome-starter.vercel.app
1.65k stars 356 forks source link

how to disable preflight in this project? #34

Closed dev02iggy closed 1 year ago

dev02iggy commented 1 year ago

I'm new to tailwind and I came across the default style removal from html elements. I found in the documentation how to disable it, but it doesn't work.

Captura de Tela 2022-10-24 às 09 46 43

Here the code I put in my project based on yours. Captura de Tela 2022-10-24 às 09 51 22

viandwi24 commented 1 year ago

preflight you mean tailwind resets all css at the beginning?

you can find it in the following docs preflight windicss

just need to add preflight: false in windi.config.ts

dev02iggy commented 1 year ago

I think I managed to put it directly instead of putting it inside 'corePlugins'. only the font has changed. ex: the

tag has a margin in it by default, but now it doesn't and even putting the preflight: false it still has no margin. knows how to make the default style of tags come back.