I created a nuxt app with the create nuxt app, at the time of creation I selected the vuetify ramework. In the file nuxt.config.js there is an object with the configuration of the colors of a theme.
vuetify: {
customVariables: ['~/assets/variables.scss'],
theme: {
themes: {
mainTheme: {
primary: '#8B0000',
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
},
},
},
},
...
}
I'm trying to look for documentation on how to use these colors in my vue component but I'm quite confused about that and so far I haven't been able to.
<template>
<v-toolbar color="#8B0000">
<v-container>
<v-row>
<h1 class="title">Abner Matheus</h1>
</v-row>
</v-container>
</v-toolbar>
</template>
<script>
export default {}
</script>
<style scoped>
.title {
color: azure;
}
</style>
I want the color property on my v-toolbar to receive one of my theme's colors. Does anyone know how to do this ?
<v-toolbar :color="#8B0000">
– bassxzero