Checkout Pro Version

Theme Settings

Customizer Usage

customizer

The Customizer enables you and your customers to modify the primary colors, themes, skins, layout options, and overall appearance of the template in real time.

While we recommend using this for enhanced customization, its use is entirely optional. Please review both scenarios carefully to understand its usage and benefits.

Note :

You must have below files in your project :

1. config.ts Path: /src/context/config.ts

2. CustomizerContext.tsx Path: path: /src/context/CustomizerContext.tsx

3. Customizer.tsx Path: src/layouts/full/shared/customizer/Customizer.tsx

1. Default settings

                            
// ----------------------------------------------------
//File: src/context/CustomizerContext.tsx
// ----------------------------------------------------

const initialState = {
    activeDir: 'ltr', 
    activeMode: 'light', // This can be light or dark
    activeTheme: 'BLUE_THEME', // BLUE_THEME, AQUA_THEME, GREEN_THEME, PURPLE_THEME, ORANGE_THEME, CYAN_THEME
    SidebarWidth: 270,
    MiniSidebarWidth: 87,
    TopbarHeight: 70,
    isLayout: 'boxed', // This can be full or boxed
    isCollapse: false, // to make sidebar Mini by default
    isSidebarHover: false,
    isMobileSidebar: false,
    isHorizontal: false,
    isLanguage: 'en',
    isCardShadow: true,
    borderRadius: 7,
};
 
                            
                        

2. How to set right-to-left (RTL) settings ?

                            
// ----------------------------------------------------
//File: src/context/CustomizerContext.tsx
// ----------------------------------------------------
const initialState = {
    activeDir: 'rtl', // Change is here
    activeMode: 'light',
    activeTheme: 'BLUE_THEME', 
    SidebarWidth: 270,
    MiniSidebarWidth: 87,
    TopbarHeight: 70,
    isLayout: 'boxed', 
    isCollapse: false, 
    isSidebarHover: false,
    isMobileSidebar: false,
    isHorizontal: false,
    isLanguage: 'en',
    isCardShadow: true,
    borderRadius: 7,
};
                            
                        

3. How to set Dark theme ?

                            
// ----------------------------------------------------
//File: src/context/CustomizerContext.tsx
// ----------------------------------------------------
const initialState = {
    activeDir: 'ltr',
    activeMode: 'dark',  // Change is here
    activeTheme: 'BLUE_THEME',  
    SidebarWidth: 270,
    MiniSidebarWidth: 87,
    TopbarHeight: 70,
    isLayout: 'boxed', 
    isCollapse: false, 
    isSidebarHover: false,
    isMobileSidebar: false,
    isHorizontal: false,
    isLanguage: 'en',
    isCardShadow: true,
    borderRadius: 7,
};
                            
                        

4. How to change color theme ?

                            
// ----------------------------------------------------
//File: src/context/CustomizerContext.tsx
// ----------------------------------------------------
const initialState = {
    activeDir: 'ltr',
    activeMode: 'light',
    // BLUE_THEME, AQUA_THEME, GREEN_THEME, PURPLE_THEME, ORANGE_THEME, CYAN_THEME
    activeTheme: 'AQUA_THEME',  // Change is here // You can  use any of above theme
    SidebarWidth: 270,
    MiniSidebarWidth: 87,
    TopbarHeight: 70,
    isLayout: 'boxed', 
    isCollapse: false, 
    isSidebarHover: false,
    isMobileSidebar: false,
    isHorizontal: false,
    isLanguage: 'en',
    isCardShadow: true,
    borderRadius: 7,
};
                            
                        

5. How to set Minisidebar ?

                            
// ----------------------------------------------------
//File: src/context/CustomizerContext.tsx
// ----------------------------------------------------
const initialState = {
    activeDir: 'ltr',
    activeMode: 'light',
    activeTheme: 'BLUE_THEME',  
    SidebarWidth: 270,
    MiniSidebarWidth: 87,
    TopbarHeight: 70,
    isLayout: 'boxed',  
    isCollapse: true, // Change is here 
    isSidebarHover: false,
    isMobileSidebar: false,
    isHorizontal: false, 
    isLanguage: 'en',
    isCardShadow: true,
    borderRadius: 7,
};
                            
                        

6. How to set Horizontal Layout ?

                            
// ----------------------------------------------------
//File: src/context/CustomizerContext.tsx
// ----------------------------------------------------
const initialState = {
    activeDir: 'ltr',
    activeMode: 'light',
    activeTheme: 'BLUE_THEME',  
    SidebarWidth: 270,
    MiniSidebarWidth: 87,
    TopbarHeight: 70,
    isLayout: 'boxed', 
    isCollapse: false, 
    isSidebarHover: false,
    isMobileSidebar: false,
    isHorizontal: true, // Change is here 
    isLanguage: 'en',
    isCardShadow: true,
    borderRadius: 7,
};
                            
                        

7. How to set card Border ?

                            
// ----------------------------------------------------
//File: src/context/CustomizerContext.tsx
// ----------------------------------------------------
const initialState = {
  activeDir: 'ltr',
  activeMode: 'light',
  activeTheme: 'BLUE_THEME',  
  SidebarWidth: 270,
  MiniSidebarWidth: 87,
  TopbarHeight: 70,
  isLayout: 'boxed',
  isCollapse: false,
  isSidebarHover: false,
  isMobileSidebar: false,
  isHorizontal: false, 
  isLanguage: 'en',
  isCardShadow: false, // Change is here 
  borderRadius: 7,
};