viandwi24 / nuxt3-awesome-starter

a Nuxt 3 template and boilerplate with a lot of useful features. Nuxt 3 + Tailwindcss + Nuxt Layer

Home Page:https://nuxt3-awesome-starter.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to disable preflight in this project?

dev02iggy opened this issue · comments

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

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

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.