When trying to override the scss theme variables of the Ametys Campus skin (parent skin of my project skin), for instance `$primary`, I must override all the variables that use `$primary` in this same file (and all the variables using these overridden variables).
In this case :
$primary: #0C883D;
$g-color-primary: $primary;
$headings-helper-bg-color: $g-color-primary !default;
$list-helper-bg-color: $g-color-primary;
$list-square-helper-bg-color: $list-helper-bg-color;
$custom-control-indicator-checked-bg: $g-color-primary;
```
It would be better to have 2 differents files. On the first, we put all the variables that don't depends on others, which can be overridden. In the second file, we put all the variables that depends on the first ones.
In this case, I would only have to override `$primary`
Une autre solution serait utiliser $g-color-primary: $primary !default
Dans ce cas c'est la valeur finale de $primary qui serait utilisée et non la valeur définie dans le fichier.
Autre amélioration à apporter dans ce fichier _theme-variables.sccs, les variables du type $g-color-primary-light, $g-color-primary-dark, ... devraient être définies à partir de fonction avec la valeur de $primary.
Il suffirait alors de surcharger _theme-variables.sccs, en ne redéfinissant que la valeur de $primary.