How to use the Stylus theme variables from inside components
Dobromir last edited by
Is it a bad practice to require the stylus vars file to be able to use the colors from inside a component?
Certainly not. Import stylus vars files care-free
vuchl last edited by
How would one do that anyway?
Dobromir last edited by Dobromir
Or you could do
@import '~src/themes/app.variables.styl'which goes up to the root and searches down. This way if you change your file`s position later on, you wont have to worry compared to when using “…/…/…/” syntax.