I enabled custom properties:
Vue.use(Vuetify, {
options: {
customProperties: true
}
});
and trying to use through CSS variable :
<style>
.custom{
color:var(--v-primary-base);
}
</style>
this is vuetify.js
file where I am setting theme :
export default new Vuetify({
icons: {
iconfont: 'mdi',
},
theme: {
themes: {
light: {
background: '#FFFFFF',
primary: '#25316A',
secondary: '#b0bec5',
accent: '#25316A',
error: '#E86674',
orange: '#FF7A0D',
golden: '#A68C59',
badge: '#F5528C',
customPrimary: '#085294',
},
dark: {
primary: '#085294',
}
},
},
})
None of the theme colors are accessible through variables. I tried many ways but hasn't worked and no error thrown. Any one can please help me?