mattr.blog

sass posts

  • How to use Sass !default values

    One of the core selling points of writing styles using Sass (or SCSS) is being able to use variables. This isn’t as novel a concept now that we have CSS variables native to CSS, but it’s still a big part of Sass. They work as you’d expect for the most part with one exception, the !default keyword. It’s not a feature most people take advantage of that often or maybe even know about, but let’s take a look at how this works so you can leverage it should the need arise.

  • Sass Maps are Cool

    Sass version 3.3.0 brought with it a handy new feature called SassScript Maps. These things are pretty powerful and can be used in quite a few interesting scenarios, but today we're going to take a look at how they can make our work with color variables even easier.