The Pros and Cons of Nesting Your Sass Code

Nesting can be a good way to organize your Sass code. It can also lead to specificity problems if you nest too deeply. You don’t have to look to far to find people who’ll tell you how wonderful nesting is or how the universe might cave in on itself if you attempt to nest your code.

The truth as usual is somewhere in between the extremes.

Continue reading

How To Nest Selectors And Properties In Sass

Do you want to write CSS that’s well organized, easier to read, and easier to maintain? Nesting is a feature of Sass that can help you keep related selectors and properties together to make your code more readable and maintainable.

Continue reading

Introduction to Sass — Part 2

If you’ve never worked with Sass or another CSS preprocessor before, you might be surprised how easy they are to use. It’s as easy to get started writing Sass as writing the CSS you already know.

Continue reading

Introduction to Sass — Part 1

CSS preprocessors have become part of many designer and developer workflows over the last few years as they help you write and maintain complex CSS code. They offer some of the features of programming languages when you want them, allowing you to ignore them when you don’t.

Continue reading

Thoughts For Better Variable Organization In SASS

For most of the last year if I’ve written css, it’s been in a preprocessed SASS file, specifically a .scss file. Good for me, but I haven’t been taking advantage of most of what SASS has to offer. My .scss files are often little more than nested css. I’ve used variables here and there and included the occasional mixin, but my SASS use has been simplistic at best.

Continue reading