From the course: CSS: Variables and Fluid Layouts

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Using Sass variables

Using Sass variables - CSS Tutorial

From the course: CSS: Variables and Fluid Layouts

Start my 1-month free trial

Using Sass variables

- [Instructor] As I've talked about calc and custom properties in my classes and at conferences, a common question I get is whether it makes sense to continue using Sass. Yes, absolutely. Remember that Sass has lots of features that aren't yet available in CSS including mixins and extends. Remember, these are ways that we can reuse little bits of code. We can either extend that code. In other words, continue to add on to styles with an extend, or we can have some code where we're passing in values. That's a thing that we can do with mixins. There's nesting, one of the most favorite features of Sass for all the programmers out there. Nesting makes your Sass a little bit easier to read. All of those wonderful file management functions like the partial files where you can split your Sass up over a whole bunch of different files. Doesn't matter how many 'cause when you compile, it compiles down to a single CSS file. And…

Contents