I am trying to adjust the theme colors for Vuetify and my changes are not registering. I have seen several other posts and have replicated there code but have been unable to make it work. The color remains the default Vuetify primary color. The secondary color will not change either.
Things I have tried:
- Wrap app in
- Various configurations of Vue.use
vuetify.js
import Vue from "vue";
import Vuetify from "vuetify/lib";
Vue.use(Vuetify, {
theme: {
primary: "red",
secondary: "#29B6F6",
anyColor: "#0000",
},
});
export default new Vuetify({});
Stepper.vue
<template>
<div>
<v-stepper alt-labels id="stepper">
<v-stepper-header class="stepper-header">
<v-stepper-step step="1" color="secondary">
Accept Terms of Service
</v-stepper-step>
<v-divider></v-divider>
<v-stepper-step step="2">
View Membership Options
</v-stepper-step>
<v-divider></v-divider>
<v-stepper-step step="3">
Payment (optional)
</v-stepper-step>
<v-divider></v-divider>
<v-stepper-step step="4">
Confirmation
</v-stepper-step>
</v-stepper-header>
</v-stepper>
</div>
</template>
<script>
import "../assets/css/main.css";
export default {
name: "Stepper",
data() {
return {
e1: 1,
};
},
};
</script>
<style scoped>
#stepper {
margin: auto;
margin-top: 8vh;
width: 62.5%;
height: 80vh;
border-radius: 20px;
}
.stepper-header {
box-shadow: none !important;
padding: 0 10% 0 10%;
font-family: Roboto;
font-size: 11px;
font-style: normal;
font-weight: 400;
line-height: 17px;
letter-spacing: 1px;
text-align: center;
white-space: nowrap;
}
</style>
App.vue
<template>
<v-app>
<v-main> <Stepper /> </v-main>
</v-app>
</template>
<script>
import Stepper from "./components/Stepper";
export default {
name: "App",
components: {
Stepper,
},
data: () => ({
//
}),
};
</script>