Let's talk about colors viarables and Sass mixins!
CSS Variables and Sass mixins are each potent on their own. With some creativity, we can make them work together towards more flexible and robust solutions.
The typical and tedious implementation involves declaring all color variants as separate variables.
Sass has built-in support for color values. Just like CSS colors, they represent points in the sRGB color space, although many Sass color functions operate using HSL coordinates (which are just another way of expressing sRGB colors). Sass colors can be written as hex codes (#f2ece4 or #b37399aa), CSS color names (midnightblue, transparent), or the functions rgb(), rgba(), hsl(), and hsla().
Timestamps
00:00 Intro
00:34 Setup mixin file
03:20 Colors
06:18 Costume color
// Watch the whole BigCommerce Developer Best Practices Series
• BigCommerce Best Practices for Develo...
#bigcommercebestpractices #bigcommerce #bigcommercedevelopment
// Sign Up Links (AFF):
BigCommerce - https://ecommerceamplifiers.com/bigco...
Join our community and get my free "BigCommerce for Beginners" course at https://ecommerceamplifiers.com/
// ABOUT THE KAL
👋 I'm Kal, owner of Epic Design Labs & Ecommerce Growth - based out of Portland, Oregon.
My mission is to help build million-dollar E-commerce brands by helping you build your business, increase your wealth potential, and provide jobs to your community while making a positive impact on those around you.
○ Interested 1on1 coaching? https://www.ecommerceamplifiers.com/c...
○ Need help on a project? Let's Chat - https://epicdesignlabs.com/need-help/
// Get Our BigCommerce Apps:
○ Epic Page Builder App for BigCommerce Stores: https://bit.ly/3oCR7Oc
○ Epic Modal Login App for BigCommerce Stores: https://bit.ly/3FrN0vb
○ Epic Fraud Prevention App for BigCommerce Stores: https://bit.ly/3x10sal
// Let's Connect!
○ Website: https://epicdesignlabs.com/need-help/
○ LinkedIn: / kalwiggins
○ Patreon: https://patreon.com/user?u=85213065
○ Buy Me a Coffee: https://www.buymeacoffee.com/kalwiggins
#ecommerce #bigcommerce