Hello,
Sorry, newbie to Bss (version 5.0.2)
I create a file (style) theme.scss that contain $main-primary-color: green; and Apply
When I try to use it in Styles ( eg : background-color: $main-primary-color; ) he don't recognize it.
What I miss ?
You need to import the theme into your main style. For example, I usually create a file called "_variables.scss". The underscore is important! (Read "Partials" here: https://sass-lang.com/guide). Then I'd import that into my main scss file - NOT css file, but scss file!
STEPS:
Create an empty project.
Delete the default autogenerated "styles.css" file.
Create a "_variables.scss" file - again, underscore is important!
Put $main-primary-color: green; into the "_variables.scss" file.
Create another file "styles.scss".
At the top of the "styles.scss" file put @import 'variables'; - this will import the contents of the "_variables.scss" file.
Now in the "styles.scss" file you can do body { background-color: $main-primary-color; }
Now you can define all sorts of variables in your "_variables.scss" file and use them in the "styles.scss" file.