Unplanned
Last Updated: 10 Oct 2024 14:46 by FranckSix
FranckSix
Created on: 04 Oct 2024 19:41
Type: Feature Request
1
Add possibility to define variable as !default
With Sass there are possibility to define variable as !default and can override it before import the script

_tokens.scss

tb-custom-primary: #014d5b !default; //Is the value if not defined in final scss
tb-primary: tb-custom-primary;

-----------------------------------------------

index.scss

$tb-custom-color: #34b232; //Now I can define the final value for variable
@import '_tokens'
it would be useful to add it in ThemeBuilder UI.

1 comment
FranckSix
Posted on: 10 Oct 2024 14:46
I realized that I do mistake on my code.

index.scss

$tb-custom-color: #34b232; //Now I can define the final value for variable
@import '_tokens'
should have been :

index.scss

$tb-custom-primary: #34b232; //Now I can define the final value for variable
@import '_tokens'