
Discover how Sass helps you avoid repetition by addressing pitfalls like redundancy and repetitive code, and explore the two forms of Sass syntax and the basics of its rules.
avoid splitting styles into many imports, as each extra request slows site performance. keep colors and shared styles in one place to reduce repetition and maintenance effort.
Explore css preprocessors like sass, less, and stylus, using variables, functions, and mixins to avoid repetition, import modular files, and generate a single css file with vendor prefixes.
Explore what sass is and compare sass and scss syntax, including sass script extensions, css compatibility, and the indented dot syntax versus braces for blocks.
Master nesting selectors in Sass to structure styles, using the ampersand for parent references, and apply hover and active states in nested nav, nav item, and nav link.
Explore how to avoid repeating styles in Sass by using extend and inheritance to share properties across selectors, and compare mixins versus extend, including placeholders.
Master how to use the Sass @each directive to iterate over maps, access keys and values, interpolate selectors, and apply dynamic backgrounds to articles.
discover SAS built-in and custom functions, test function calls, explore selector and introspection functions, and examine a real example that retrieves by key.
Course Goal
The goal of this course is not just teaching you how to write Sass code, but the goal is as the title of this course present is Don’t Repeat Your CSS, the concept of this course is teaching you the fundamentals of this wonderful Sass language which will take your productivity to the next level.
Sass or CSS?
We’ll start first by understanding why we should really move from CSS to a preprocessor like Sass, and we’ll go through the main goal of preprocessing CSS.
Set up the environment
We’ll set up an environment that allows us to use Sass in our machine.
Sass fundamentals
Then we’ll go to each Sass fundamentals including nesting selectors, variables, comments, import and partials, mixins and inheritance, these features are considered as the backbone of the Sass language.
Control Flow directives
We’ll also learn how to include conditions and loops into our Code which will add more power to the mixin Sass features, where we’ll generate specific code depending on a specific situation.
Custom Functions
And at the end we’ll use some built-in Sass functions which they are used by most of the popular frameworks like Bootstrap, we’ll use some of them, then we’ll finish creating our custom Sass function.
We start from the basics and we end up creating a custom Sass function, this how this course will help beginners and even advanced front-end developers to understand how every feature of Sass really works.
Conclusion
So I look forward to spending this time with you during the course to learn every aspect of Sass, and by finishing this course you’ll create a more organized and maintainable Sass code.