🔮Theme Colors

Change Default Color

For Change Default Primary Color - Go to resources/ts/layouts/components/CustomizerPanel.vue

const themeColors = ref<ThemeColor[]>([
  {
    bg: 'themeDefault',
    color: '#4680ff', // Update here for default primary color change
    darkColor: '#3F78FF', // for darkprimary color change
    lightcolor: '#E9F0FF', // for lightprimary color change
    lightcolorfordark: '#18243e', // for lightprimary color change for dark mode
    tooltipName: 'Preset 1',
  },
  ... other color presets
])

Without Using Customizer Preset Colors

If you don't want preset other colors options from customizer or you want to remove customizer options then follow below steps:

  1. Go to default layout setup file. open resources/ts/layouts/default.vue

<VApp
      :style="getStyleObject()" // Remove This line
      :theme="reslovedTheme"
      :class="[
        customizer.fontTheme,
        customizer.mini_sidebar ? 'mini-sidebar' : '',
        customizer.setHorizontalLayout ? 'horizontalLayout' : 'verticalLayout',
        customizer.inputBg ? 'inputWithbg' : '',
        customizer.themeContrast ? 'contrast' : '',
      ]"
    >
      ... other code 
 </VApp>
  1. Delete Some code related to this

  1. Delete some code from resources/ts/layouts/components/CustomizerPanel.vue

  1. Update default primary color to it's hexcolor code

  1. finally restart your application using below command

Last updated