Sidebar Colors

We have provided multiple variant options for the sidebar, making it very easy to customize. You need to change the attribute in the public/assets/js/layout/layout-*.js file to switch between different sidebar color variations.

Light Sidebar
Light Colors

[ATTRIBUTES.SIDEBAR]: 'light-sidebar'

Dark Sidebar
Dark Colors

[ATTRIBUTES.SIDEBAR]: 'dark-sidebar'

Gradient Sidebar
Gradient Colors

[ATTRIBUTES.SIDEBAR]: 'gradient-sidebar'

Step 1: Use a Predefined Sidebar Variation

To change the sidebar variation, modify the [ATTRIBUTES.SIDEBAR] attribute in the configuration file located at public/assets/js/layout/layout-*.js:

  • Light Sidebar: 'light-sidebar'
  • Dark Sidebar: 'dark-sidebar'
  • Gradient Sidebar: 'gradient-sidebar'
Step 2: Modify Custom Sidebar Colors

To customize the sidebar colors, you need to modify the specific variation file (e.g., `light-sidebar`, `dark-sidebar`, or `gradient-sidebar`). This is where the sidebar’s background, text, and other color-related styles are defined.

Locate the variation file in the public/assets/js/layout/ directory and adjust the CSS styles or color variables according to your needs.

Step 3: Example Configuration Code

Here's an example of how to set the default sidebar variation in the JavaScript configuration file:

const ATTRIBUTES = {
    SIDEBAR: 'data-sidebar',
};

const DEFAULT_VALUES = {
    [ATTRIBUTES.SIDEBAR]: 'dark-sidebar', // 'light-sidebar', 'dark-sidebar', 'gradient-sidebar'
};
Additional Notes:
  • Light Sidebar: Typically used for lighter themes and brighter background colors.
  • Dark Sidebar: Best suited for dark mode or darker themes with dark background colors.
  • Gradient Sidebar: Adds a visually appealing gradient effect to the sidebar for a more dynamic look.

By following these steps, you can easily switch between sidebar themes or modify the sidebar's colors to fit your requirements.

Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.

Support
More for Herozi
Herozi Admin & Dashboards
160+

Total Pages

6+

Layouts

60+

Components

We provide quick support withing one business day to all of our customers.

© Herozi Design & Develop by  SRBThemes.