Colors & Themes

Customize your application's default text colors, surfaces, and more. Easily modify your theme programmatically in real time. Vuetify comes with standard support for light and dark variants. For more detailed explnation read this documentation

Updating colors

Here, we will go over how you can customize the theme/colors in our template.
Theme's colors and modes are defined in src/plugins/vuetify/theme.js.

To update primary colors to something else navigate to above mentioned vuetify plugin theme file and update primary to desired colors in themes you like.

File: /src/plugins/vuetify/theme.js

JS
const theme = {
  ...
  ...
  themes: {
    light: {
      colors: {
        dark: '#1e293b',
        light: '#f1f5f9',
        white: '#ffffff',
        primary: '#624bff',
        ...
        ...
      },
    },

    dark: {
      colors: {
        dark: '#f1f5f9',
        light: '#1e293b',
        white: '#ffffff',
        primary: '#624bff',
        ...
        ...
      }
    }
  }
}

Set as default dark theme mode

Vuetify comes with two themes pre-installed, light and dark. To set the default theme of your application, use the defaultTheme option.

Mostly you will use default light theme mode, you can set dark or light as for your prefrence.

File: /plugins/vuetify/theme.js

JS
const theme = {
  defaultTheme: 'dark'
  // other settings
}

// After change clear your local storage and reload page.
CONTENTS
  • Colors & Themes

  • Updating Colors

  • Default Dark Theme