What is color scheme?
In context of Mantine, the color scheme is a value that impacts colors of the UI.
Mantine color scheme supports only values that are defined by browsers.
The color scheme value can either be light
, dark
or auto
(same as in the user OS settings).
I want to add a custom color scheme. Can I do that?
No, Mantine does not support custom color schemes. If you attempt to do that, most of the components will have broken styles. Instead of applying a custom color scheme, customize colors with theme.
How can I customize colors with theme?
You can define custom colors in the theme object.
Then you can reference these values in components and .css
files: