SassError: Undefined variable: "$main-background-color"
17,306
I believe you need to import the _variables.scss directly into _styles.scss if you want to use them there
Author by
Karen
Updated on June 09, 2022Comments
-
Karen almost 2 years
I'm trying to use CSS-variables during the LoginPage component styling but receiving the following error:
SassError: Undefined variable: "$main-background-color".
This error appears in the_styles.scss
file.this is my project structure:
I'm importing both
_variables.scss
andstyles.scss
to the mainindex.scss
file:What I'm doing wrong while importing variables? Why I can't use them in the
_styles.scss
file?