A
A
asd dsa2019-09-05 21:18:02
JavaScript
asd dsa, 2019-09-05 21:18:02

How to change primary color in Vuetify?

I want to change the primary color in Vuetify on input focus and dropdown (selecting the number of elements in the table). The color changes, but after a reboot it becomes the default primary again. I want to change in these classes:

.search {
  color: #00b5c1 !Important; // change primary color
}
.primary--text {
    color: #00b5c1 !Important; //change primary color for rows per page color
}
.option {
  padding-right: 100px;
  color: #00b5c1 !Important; // change primary color
}

codepen

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor_Dav, 2019-09-06
@yaNastia

Documentation
These values ​​will also be made available on the instance $vuetify object under the theme property. This allows you to dynamically modify your theme. Behind the scenes, Vuetify will regenerate and update your theme classes, seamlessly updating your application.

// Light theme
this.$vuetify.theme.themes.light.primary = '#4caf50'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question