I've tried a lot to use my extended css but I cannot change it ever..
modal.module.css
.mantine-Modal-content {
&[data-variant='skovly_modal'] {
border-color: black;
color: #ff6f00;
background-color: #ff6f00;
}
}
app.tsx
import modal from './components/themes/modal.module.css'
const theme = createTheme({
components: {
Input: Input.extend({ classNames: input }),
Button: Button.extend({ classNames: button }),
Text: Text.extend({ classNames: hyperlink }),
Modal: Modal.extend({ classNames: modal }),
}
})
<MantineProvider theme={theme}>
<Modal
variant="skovly_modal"
opened={createModalOpened}
onClose={closeCreateModal}>
<CreateModal
onSubmit={switchModal}
onCancel={closeCreateModal}
createUser={UpdateUser}/>
</Modal>
...
I've tried this