#Styling issue - mantine 7

10 messages · Page 1 of 1 (latest)

restive magnet
#

Hi, I've copied a header from ui.mantine. https://ui.mantine.dev/component/header-tabs/

I didn't change a line of code, I only created the component files.
I don't have the same look, for example, on the unstyles button (user button) there is no padding.
Can't figure out what is wrong. I didn't use a template, I've installed the mantine. I installed the postcss dependencies and I've added the import '@mantine/core/styles.css'; on the layout page (using app router on nextjs 14).

Any ideas what could be missing?

cunning flame
restive magnet
#

I am facing the same issue on the template

restive magnet
#

I think the unstyled button css is overriding my css

#

This is how my layout.tsx looks like on the import order

#

For the header I've followed exacly the ui.mantine component file

cunning flame
restive magnet
#

Same behaviour

#

I've tried in 3 different projects and I get same thing (In all of the 3 projects I got the files from ui.mantine, 1 project I setup mantine myself, and 2 others is from templates)