creating my ownl cscc variables. #9399
-
Hi guys , im playing around with quasar.variables.scss and app.scss files.
but $jprimary2 does not , it yelds: Other:
Any help is preciated, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Quasar sass variables are automatically imported for you. Similar to components. If the importing code "sees" it's in use, then it'll automatically imported it into the file. For your own variables file, you will have to manually import it yourself to avoid the error. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you guys ... it is working now ... |
Beta Was this translation helpful? Give feedback.
-
Hello guys, I would like to use some scss file directly in a component, but without a need to use scss @import statement. Let's say I am using app.scss. I have added this file to the css part of the quasar.conf.js - 'app.scss'. If I try to use a variable from app.scss in some component, a get a scss error that variable is not defined. I patched it with the @import, but guessing there is something I could do? I do not want to import app.scss to every component. I thought that is why we use css part in quasar.conf.js? I have inspected quasar and css part is registered: |
Beta Was this translation helpful? Give feedback.
<style lang="scss">
. You're doing something wrong but can't tell what with the amount of info that you've provided.