What is Sass: Sass (short for syntactically awesome style sheets) is a style sheet language initially designed by Hampton Catlin and developed by Natalie Weizenbaum. After its initial versions, Weizenbaum and Chris Eppstein have continued to extend Sass with SassScript, a simple scripting language used in Sass files.
Sass is a stylesheet language that’s compiled to CSS. It allows you to use variables, nested rules, mixins, functions, and more, all with a fully CSS-compatible syntax. Sass helps keep large stylesheets well-organized and makes it easy to share design within and across projects.
Sass allows variables to be defined. Variables begin with a dollar sign ($). Variable assignment is done with a colon (:) SassScript supports four data types:
Below is an example how to write code in sass:
$font-stack: Helvetica, sans-serif;
font: 100% $font-stack;
The following CSS will be produced:
font: 100% Helvetica, sans-serif;
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.