#Allow tailwind classes to override built-in mantine classes

4 messages · Page 1 of 1 (latest)

wicked dawn
#

How would I avoid mr-2 getting overridden by Text's class without using !important? I'm using tailwind-vite if that matters.

Thanks!

wicked dawn
#

Got it working with this. I have tailwind preflight disabled here too.

@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);
@import '@mantine/core/styles.layer.css';
sinful musk