Adding a style in themes and making it as variable

In theme development styles are used by calling variables

Here is an example of adding a color and making it as variable
In files open BaseSassStyle, go to variables, select colors

use $ in beginning to declare variable
Ex; $sc-color-primary: #e23200;

Next open skin1.JSON

There declare the variable followed by syntax
“$sc-color-primary”: “#e23200”,

Now we can use #e23200 as color : $sc-color-primary;

Leave a comment

Your email address will not be published. Required fields are marked *