#Needing to use !important in css modules

9 messages · Page 1 of 1 (latest)

fallen jungle
#

Hi I'm pretty sure this is not normal behavior?

<Container className={classes.mycontainer} />
.mycontainer {
  margin: 0;
}

For example this doesn't work without !important as the computed class is below in the tree than the Mantines own.
V7, I'm importin tha core css in the root file only.

How i can apply css modules last so they overwrite the native styles?

crystal briar
fallen jungle
quaint stag
#

This is so so important, I've migrated an entire platform to v7 without knowing this and it was very frustrating. I wish I could find this somehow easier.

fallen jungle
pastel canopy
#

I'm also using CSS modules for my component styles

#

jk I reread the docs

#

seems like I just import the .layer file instead