- Compiler sass from scss(Syntax css), icss(Indented css) to css, all valid css can be write in scss
- Variable: sass variables supported 100% css variables for 90%. --botton-color , $botton-color
- maps: $fonts-weights: ("regular": 400, "bold":900); font-weight: map-get($fonts-weights, "bold")
- Nesting: add & inside to be equal to parent. Using interpolation to transform inside the parent: #{&}__paragraph
- Separation (partial): @import './reset'
- Functions (return values) similar to JS: @function weight($wight-name){@return map-get($fonts-weights, $wight-name)}; font-weight: weight(bold)
- Mixins (define styles): Similar to functions. @mixin flexCenter($direction) { display: flex; justify-content: center; align-items: center; flex-direction: $direction;} @include flexCenter(row);
- Mixin + content : To replace values
- @if : for if statement
- @extend to extend a class style
- Math Operations: In sass we can use operation without calc(). In sass we cann't mix the types 80% - 300px is not allowed