[Vuejs]-Vuetifyjs variable theme not working at 1.0.0

0👍

Deprecated since v0.17:

Stylus declared themes are no longer needed (and will not work).

Theme colors are now defined in the Vue.use statement instead of
stylus, docs

Since v0.17 you have to pass a theme property to the Vue.use function

Vue.use(Vuetify, {
  theme: {
    primary: '#3f51b5',
    secondary: '#b0bec5',
    accent: '#8c9eff',
    error: '#b71c1c'
  }
})

(note that values like "red" or "green" will not work, you need hex values)

Leave a comment