Color Presets
How to change available color presets
Berry come up with 6+ theme color presets. You can now change the available color presets by doing the following steps:
Color Preset files are available in src\assets\scss\ directory.
src\assets\scss\
1
..
2
├── _theme1.module.scss
3
├── _theme2.module.scss
4
├── ..
5
├── ..
6
├── ..
7
├── _theme6.module.scss
Copied!
Edit & Choose your desire preset color setting in src\config.js file. Change the presetColor value to theme1, theme2 to theme6
presetColor: theme1
javascript
typescript
1
const config = {
2
...
3
presetColor: 'default', // default, theme1, theme2 to theme6 available
4
...
5
...
6
...
7
}
Copied!
1
import { PaletteMode } from '@material-ui/core';
2
3
const config: {
4
...
5
theme: PaletteMode;
6
...
7
} = {
8
...
9
presetColor: 'default', // default, theme1, theme2, theme3 upto theme6
10
...
11
};
12
13
export default config;
Copied!
Last modified 13d ago
Copy link