M
M
Maxim Romashko2019-04-06 17:09:32
Vue.js
Maxim Romashko, 2019-04-06 17:09:32

How to use vuetify themes?

In main.js

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

In any component I try to use this theme like this: Why does the theme not work? On the site, the documentation was checked many times, nothing was fixed. help me please
<v-btn color="primary">Button</v-btn>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Klein Maximus, 2019-04-09
@kleinmaximus

Has the tag v-appbeen added to the application root?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question