Day 9. Project Theme
#
Why do I need the project theme?When creating projects we often use a limited set of styles of text, colors, backgrounds, and other things. This may be due to the design system, brand, or simply personal preferences. We added a theme for that โ a set of variables that can be used to design the page elements. These variables can be edited and they will change wherever they were applied in the project.
#
Default themeWhen you create a new project, you create a default theme with specific text styles, colors, backgrounds, shadows, transitions, transforms, filters, and breakpoints.
You can use them for your project, edit, delete, and move them.
#
Adding a variable to a themeTo add a new value, click the +
icon next to the category you want to add.
After that, enter your value name and the desired value, for example, if it's a color, enter the color code.
#
Specify the button background with a variable from the themeLet's change the button background with the theme by creating a variable in the Background Style category with the name "button" and giving it the red color code (#ff0000).
We've created a variable and it was saved automatically. Now select the button and set the background property to the value from the theme:
#
Changing the variable valueTo change the value, click on it and the variable settings will open. As an example, let's change the font size in headline1 and set it to 42px.
then set this value for the card title:
#
Removing a valueTo delete an unnecessary variable, right-click on it and choose Delete.
#
Duplicating a valueTo duplicate a variable, right-click on it and choose Duplicate.
#
Theme in blocks and templatesAll ready-made blocks and templates are based on variables from the theme. This way you can change theme values to quickly edit default blocks or templates.