Notes On ...

Sass

Syntactically Awesome StyleSheets

/* This is Sass */
@mixin theme-colors($theme) {
  @if $theme == 'light' {
    background-color: $light-bg;
  } @else {
    background-color: $dark-bg;
  }
}

Sass is actually 2 compiled stylesheet languages that extend regular old CSS (Cascading StyleSheets) 🗒️. “Sass” refers to the compiler, sass that converts either a .sass or .scss file into a regular old .css CSS file.

.sass

nav
  ul
    margin: 0
    padding: 0
    list-style: none

  li 
    display: inline-block

  a 
    display: block
    padding: 6px 12px
    text-decoration: none

.scss