Styling Workflow

Last updated


This page covers recompiling an example's SCSS into the CSS it actually loads.

Entry Files and Output


Most examples compile sass/index.scss to css/index.css; the early 2022 examples use different names:
ExamplesSCSS entryOutput CSS
20220409, 20220412, 20220413, 20220418sass/PDWebsitemplate.min.scsscss/PDWebsitemplate.min.css
20220525sass/PDWebsiteImitationCss.scsscss/PDWebsiteImitationCss.css
The other 33 examplessass/index.scsscss/index.css

Before compiling, check which file the example's index.html <link rel="stylesheet"> points to; the "Styling" section of each example page lists the matching paths.

Compile One Example


  1. cd target/20230719
  2. npx sass sass/index.scss css/index.css --no-source-map || { echo "SCSS build failed"; exit 1; }

Watch Mode


  1. cd target/20230719
  2. npx sass --watch sass/index.scss:css/index.css --no-source-map


中文