-
Improvement
-
Resolution: Unresolved
-
Major
-
None
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`