#how to import scss in a component
3 messages · Page 1 of 1 (latest)
I could be wrong, I haven't use Sass recently but:
- ˋ@use "variables.scss" means the namespace will be ˋvariablesˋ, so ˋvariables.$somecolorˋshould work
- with ˋ@use "variables.scss" as varsˋ (or any custom namespace), you can access them with ˋvars.$somecolorˋ
- to use ˋ$somecolorˋdirectly, I guess you could try ˋ@use "variables.scss" as *ˋ
yes that worked! thank you so much 🙌