We have some default theme CSS for e.g. Mantine's <Button>, but when we try to override the theme with a specific *.module.css file, the theme takes precedence due to CSS specificity. Is there a way to go avoid this. Otherwise, we have to make super specific selectors in our CSS module files.
e.g.
button.selected[data-variant='secondary'] {
background-color: var(--mantine-color-black);
color: var(--mantine-color-white);
}
We want this to work:
.selected {
background-color: var(--mantine-color-black);
color: var(--mantine-color-white);
}