When you download a theme’s source files, you have access to the HTML, Sass, and assets used by that theme. You can customize the HTML and Sass files directly within your Workspace directory. Best practice, when making changes to existing Sass variables, is to edit the existing Sass files directly.
To customize a pre-existing theme file:
Open the theme directory in your top-level development directory.
Locate the subdirectory containing the file or files you want to customize.
For example, you want to customize the top margin of the Add to Cart button for this theme. You locate the _cart-add-to-cart-button.scss file in the theme’s Cart module:
Edit the HTML or Sass file within the associated module.
You can edit this file directly. See Best Practices for Creating Themes for details. In this example, you edit the
.cart-add-to-cart-button-button class and change the
margin-top value from
// New code with new margin-top value:
/* Previous Code:
If you want to expose Sass variables to the Site Management Tools Theme Customizer, add the editable() function to expose any variables. See Set Up Your Theme for Customization in SMT for details.
Save the file.
Repeat this procedure in this fashion for any other theme-related HTML or Sass files you intend to customize.
When you are ready, use the theme developer tools to test or deploy your theme. See Theme Developer Tools for procedures on how to use these tools.