Custom classes

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

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.