-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use global stylus variables in vue components' <style> ? #437
Comments
Note tilde-quasar: |
Thanks~! One more question: In js we could use |
Technically not possible unfortunately due to Stylus inner-workings :( I may be wrong. Will investigate thoroughly. |
In latest quasar, it is even easier: <style lang="styl">
@import '~variables'
</style> |
@rstoenescu , I am using Quasar 1.0.0-beta.8 and an app created with Quasar CLI, and I cannot use Any suggestions? |
@gaw89 For v1.0, |
Also, this is described in the v1 docs... u sure you are looking at https://v1.quasar-framework.org ? |
Oops! Sorry, I was looking at docs for v0.17.19! Thanks for the quick response - that worked perfectly. Awesome framework, by the way! 😄 |
I read the discussion in http://forum.quasar-framework.org/topic/19/how-to-use-the-stylus-theme-variables-from-inside-components but is still puzzled.
If I do the following, I can access the stylus variables defined in
src/themes/app.variables.styl
, but cannot access global ones like$red-1
etc.If I do the following, it fails to compile coz
quasar/src/themes/quasar.core.variables.styl
cannot be found in@import
of stylus part:If I import the styl file in script, it seems the <style> part cannot access the variables either:
The text was updated successfully, but these errors were encountered: