Custom classes

0
Can anyone tell me how to create and use custom classes. I have tried several times but not able to do it.
asked
1 answers
0

Hi Rohit

 

Go to {projectname}/theme/web folder. It should look roughly like this:

There you can add a custom scss file and add your classes in there. In the end you need to import your new scss file into the ‘main.scss’ file.

You can also directly write into the ‘custom-variables.scss’ file and add your class at the bottom. You don’t need to import it into main.scss as it already should be in it.

Then you can set the class in studio pro by using the class name on the page element that you want the class to be on.

answered