-
Problem to solveVuetify is amazing, I'm having a great time building an interface with it. But I find using color tools pretty confusing and I am currently writing a custom documentation in my code base to clarify usage, which shouldn't be necessary. Basically, there are Theme colors and Palette colors and I don't really understand why they don't behave the same way.
<style lang="scss" scoped>
.something {
color: var(--v-primary-base);
background-color: var(--v-grey-lighten2);
}
</style>
Besides I don't understand the logic:
Proposed solution
Thanks for your consideration |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Nope, there's only CSS variables for theme colors. Palette colors are available in sass variables instead (because they're static).
? https://codepen.io/kaelwd/pen/VwyzjPq?editors=1010
Because it was originally copied from materializecss. This has been changed in v3:
|
Beta Was this translation helpful? Give feedback.
Nope, there's only CSS variables for theme colors. Palette colors are available in sass variables instead (because they're static).
? https://codepen.io/kaelwd/pen/VwyzjPq?editors=1010
Because it was originally copied from materializecss. This has been changed in v3:
red
->bg-red
red lighten-1
->bg-red-lighten-1
red--text
->text-red
red--text text--lighten-1
->text-red-lighten-1