Skip to main content
uiSTTP

How to add Tailwind without the CSS reset

Following the official instructions on how to add Tailwind to your project will lead you to adding the following import to your global CSS file:

@import "tailwindscc";

To disable the default CSS reset bundled with Tailwind (preflight) add this instead:

@layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);