Skip to content

How to reuse Vuetify's variables? #344

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
f-lawe opened this issue Mar 7, 2025 · 1 comment
Closed

How to reuse Vuetify's variables? #344

f-lawe opened this issue Mar 7, 2025 · 1 comment

Comments

@f-lawe
Copy link

f-lawe commented Mar 7, 2025

Hi there,

Documentation says:

 settings.scss can be used in your own components to access vuetify's variables.

But it doesn't say how. I tried this, but I got [sass] Error: Undefined variable:

@use "./settings";

.my-div {
  background-color: settings.$button-background;
}

What am I missing?

Happy to share any information needed!

@KaelWD KaelWD closed this as completed in 751131a Apr 3, 2025
@f-lawe
Copy link
Author

f-lawe commented Apr 3, 2025

That works, thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant