Skip to content

Instantly share code, notes, and snippets.

@mattaebersold
Last active May 13, 2018 01:10
Show Gist options
  • Save mattaebersold/010bc83c8f11f4b1593bc3f1d18d1c44 to your computer and use it in GitHub Desktop.
Save mattaebersold/010bc83c8f11f4b1593bc3f1d18d1c44 to your computer and use it in GitHub Desktop.
// add more color options to the product form
// whatever comes after color- needs to be the variant color for the product
#product .product-form {
.swatch {
// example of a color blue
&.color-blue {
background-color: blue;
}
// example of a color red
&.color-red {
background-color: #ff0000;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment