SASS Basics: Variables, Mixins, Extend, and Nesting

In the previous article, “When CSS Meets Variables and Functions, It Becomes SASS: SASS Installation Tutorial”, I showed how to install SASS. In this article I’ll show you how to use SASS. It covers four of SASS’s main features: variables, mixins, extend, and nesting. ...

February 7, 2012 · 5 min

When CSS Meets Variables and Functions, It Becomes SASS: SASS Installation Tutorial

Anyone who writes both programs and CSS has probably wished that CSS could have variables and functions, the things programming languages have. Many CSS rules are repetitive, and if CSS had variables and functions, writing it would be a lot faster. Generally, that kind of dream seems impossible… But today I’ll introduce a new toy called SASS. With SASS, CSS can become something very different~ ...

February 7, 2012 · 4 min