Why we prefer CSS Custom Properties to SASS variables

CodyHouse provide some practical examples of why they decided to keep their CSS variables inside of the CSS Custom Properties. This spans color schemes, typography, spacing, and vertical rhythm and does well to also pull out the catch (browser support)

CSS Variables and Sass Variables

Since the release of our framework a few months ago, we’ve been asked by many users why we opted for CSS variables, instead of SASS variables, even though we do use SASS in the framework. In this article, I’ll go through the advantages of using custom properties and why they’ve become crucial in our workflow.

An excerpt from Why we prefer CSS Custom Properties to SASS variables

View original article

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.