Berry React
v3.8.0
v3.8.0
  • Documentation
  • 🎺About - Berry Remix
  • Pre-requisites
  • Quick Start
  • Folder Structure
  • State Management
  • Internationalization
  • Authentication
  • Axios API Calls
  • Routing
  • Project Configuration
  • Color Presets
  • Theme/Style Configuration
  • How to
    • Login as First Page
    • Add a menu from the backend
    • Remove eslint
    • Remove prettier
  • Integration
    • seed
    • To Existing Project
  • Component
    • Avatar
    • AnimateButton
    • Accordion
    • Breadcrumbs
    • Chip
    • ImageList
    • MainCard
    • Transitions
    • SubCard
  • Resources
  • Roadmap
  • Support
  • Changelog
  • FAQ
  • Berry Eco System
Powered by GitBook
On this page

Was this helpful?

Color Presets

How to change available color presets

Berry has several color themes to choose from, including 6+ preset options. To change the color theme, you can follow these steps:

Color Preset files are available in src\assets\scss\ directory.

..
├── _theme1.module.scss
├── _theme2.module.scss
├── ..
├── ..
├── ..
├── _theme6.module.scss

Edit & Choose your desire preset color setting in src\config.js file. Change the presetColor value to theme1, theme2 to theme6

presetColor: theme1

const config = {
    ...
    presetColor: 'default', // default, theme1, theme2 to theme6 available
    ...
    ...
    ...
}
import { PaletteMode } from '@material-ui/core';

const config: {
    ...
    theme: PaletteMode;
    ...
} = {
    ...
    presetColor: 'default', // default, theme1, theme2, theme3 upto theme6
    ...
};

export default config;

For Remix

Color Preset files are available in app\assets\scss\ directory.

..
├── _theme1.module.scss
├── _theme2.module.scss
├── ..
├── ..
├── ..
├── _theme6.module.scss

Edit & Choose your desire preset color setting in app\config.js file. Change the presetColor value to theme1, theme2 to theme6

presetColor: theme1

import type { ConfigProps } from 'types/config';
...

const config: ConfigProps = {
    ...
    presetColor: 'default', // default, theme1, theme2, theme3, theme4, theme5, theme6
    ...
};

Last updated 1 year ago

Was this helpful?