I've been using Vuetify for a few weeks now. Having read the docs and some posts in that regard I tried to alter the 'dark' theme to suite my needs.
From some reason, I can only alter colours to components by specifically setting their colours of via CSS of course.
my vuetify.js file (under plugins) looks like that:
import Vue from 'vue';
import Vuetify from 'vuetify/lib';
import colors from 'vuetify/lib/util/colors';
Vue.use(Vuetify);
export default new Vuetify({
theme: {
themes: {
light: {
primary: colors.purple,
secondary: colors.grey.darken1,
accent: colors.shades.black,
error: colors.red.accent3,
},
dark: {
primary: colors.blueGrey.darken2,
secondary: colors.blueGrey.lighten2,
accent: colors.blueGrey.darken3,
},
},
},
});
My App.vue file looks like that:
<div>
<v-app dark>
<v-tabs background-color="#2c394f" color="white">
<v-tab to="/deploy">Deploy</v-tab>
<v-tab to="/dashboard">Dashboard</v-tab>
</v-tabs>
<keep-alive>
<router-view/>
</keep-alive>
</v-app>
</div>
</template>
<style src="vue-multiselect/dist/vue-multiselect.min.css"></style>
<style scoped>
</style>
As you may notice, I'm using dark theme (in v-app component) and since my theme definitions are not being applied, I've manually set the (for instance) v-tabs component. Ideally, I'd like to just set the colour of v-tabs using color="primary" or something like that, but if I remove the properties, I'm getting the default theme, which is 'light' in that case.
Any help will be appreciated.