[Vuejs]-How I can change the background color by clicking button using vuetify?

0πŸ‘

βœ…

To do this you actually use themes that you setup in vuetify.js and you can assign different colors to the different values for example primary: '#c3c3c3' and define different themes within your app. It comes with light and dark theme but you can also add/remove themes programmatically.

It’s quite a bit of code so I will post the links on where directions can be found here.

https://vuetifyjs.com/en/customization/theme/#custom-theme-variants

And the actual usage can be found here:

https://vuetifyjs.com/en/customization/theme/#usage

Leave a comment