Sass W3Schools code example
Example 1: css sass scss
body {
font: 100% Helvetica, sans-serif;
color: #333;
}
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
$font-stack: Helvetica, sans-serif
$primary-color: #333
body
font: 100% $font-stack
color: $primary-color
Example 2: sass
npm uninstall node-sass
npm install node-sass@4.14.1
Example 3: Sass Tutorial
$bgcolor: lightblue;
$textcolor: darkblue;
$fontsize: 18px;
body {
background-color: $bgcolor;
color: $textcolor;
font-size: $fontsize;
}
Example 4: scss
sass --watch app/sass:public/stylesheets
Example 5: scss
sass --watch input.scss output.css