How to use Vuetify colors as parameters in vuetify/settings SCSS? #20166
Unanswered
Maxim-Mazurok
asked this question in
Q&A
Replies: 2 comments
-
My temporary workaround:
import { createVuetify } from "vuetify";
import colors from "vuetify/util/colors";
export const vuetify = createVuetify({
theme: {
themes: {
light: {
colors: {
"grey-darken-3": colors.grey.darken3, // this was the best way to expose the color to be used in settings.scss; TODO: remove when removing $navigation-drawer-color customization
},
},
},
},
});
@use "vuetify/settings" with (
$navigation-drawer-color: rgb(var(--v-theme-grey-darken-3))
); It's a temporary measure anyway, we will likely just remove this customization with a few others in one go, or will adjust text-on-surface color in the theme. Cheers! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I need that too. No details about that in the docs :( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to do this in my
src/plugins/vuetify/settings.scss
:But I get an error:
Any idea how to do this properly?
Beta Was this translation helpful? Give feedback.
All reactions