Site Studio allows you to create and manage SCSS variables which can be used within your CSS styles.
To create a SCSS variable:
To add another variable, click Add and repeat the steps above before clicking Save.
You can change the order of the variables.
You can delete variables as long as they are not being used. To delete a variable:
When a variable has been applied to a style, it's flagged as 'In use' and cannot be deleted. Instead of a Delete button, you will see an In use button.
To delete a color in use:
Locking a SCSS variable will stop the variable from being overridden if changes are detected when importing using Site Studio sync.
SCSS variables can be used within the style builder. Navigate to a custom style or base style and type in the name of a variable that you have created for example "$section-padding" into a CSS property such as padding and save.
When using a $variable within a calc, the variable must include the unit, for example 0.5rem.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Mar 26 2025 01:05:19 GMT+0000 (Coordinated Universal Time)