Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 2.28 KB

what-is-sass.md

File metadata and controls

48 lines (41 loc) · 2.28 KB

What is SASS?

Sass is a preprocessor scripting language that is interpreted or compiled into Cascading Style Sheets (CSS). SassScript is the scripting language itself. It provides mechanisms available in programming languages, like variables, nesting, and functions. These mechanisms allow for more concise and easier-to-read stylesheets, especially when working with large stylesheets.

What are preprocessors?

Preprocessors are tools that allow you to write CSS in a more concise and powerful way. They extend the CSS language with features that are not available in CSS itself. Preprocessors make it easier to maintain and organize your stylesheets, and can also help you write more DRY (Don't Repeat Yourself) code.

  • Help with CSS limitations
  • Make CSS more maintainable
  • Make CSS more organized
  • Write on alternative syntax
  • Make CSS more powerful

Examples of Preprocessors

Sass-logo
Less-logo
Stylus-logo

What we need for use SASS?

There is a ot of ways to install SASS in your project, but the most common way is to use npm.

Please check SASS website for more information: SASS

First, you need to install SASS in your project. You can do this by running the following command in your terminal:

npm install -g sass

This is if you already have node.js installed on your computer. If you don't have node.js installed, you can download it from the official website, or you can use a package manager like Homebrew or Chocolatey.

  • For Homebrew:
brew install node
  • For Chocolatey:
choco install nodejs

To Compile your SASS we can use the extensions in VsCode: Vscode extension: Live Sass Compiler

EXAMPLE