Sass which is an extension of CSS stands for Syntactically Awesome Stylesheet. Sass pre-processes CSS and works well with all the versions of CSS and enhances the capability of the basic language. It is renowned for saving time and effort by preventing its users from using redundant CSS values. Saas includes various features such as variables, nested rules, mixins, inheritance, inline imports, built-in functions to manipulate color and other values, all with a fully CSS-compatible syntax.
Before you continue you should have a basic understanding of the following
Sass (which stands for Syntactically Awesome Style Sheets) is an extension to CSS.
SASS is an extension of CSS. It is also known as CSS pre-processor. CSS file face some issue like-
This is where a CSS pre-processor can Resolve the CSS files issue.
Let's consider we have a website with three main colors:
So, how many times do you need to type those HEX values? A LOT of times. And what about variations of the same colors?
Instead of typing the above values a lot of times, you can use Sass and write this:
So, when using Sass, and the primary color changes, you only need to change it in one place
A browser does not understand Sass code. Therefore, you will need a Sass pre-processor to convert Sass code into standard CSS.
This process is called transpiling. So, you need to give a transpiler (some kind of program) some Sass code and then get some CSS code back.
Transpiling is a term for taking a source code written in one language and transform/translate it into another language.
Sass files has the ".scss" file extension.
Sass supports standard CSS comments /* comment */, and in addition it supports inline comments // comment: