Skip to content

Instantly share code, notes, and snippets.

@shawnbot
Last active April 14, 2017 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawnbot/3c6ec939177eb0ab92c1e7dd3dfb85ad to your computer and use it in GitHub Desktop.
Save shawnbot/3c6ec939177eb0ab92c1e7dd3dfb85ad to your computer and use it in GitHub Desktop.
USWDS + node-sass

U.S. Web Design Standards + node-sass

This is a very simple example of how to set up node-sass to build on the U.S. Web Design Standards. To run it:

  1. Install Node.js.

  2. Install node-sass and the Standards source files with:

    npm install
  3. Generate css/main.css from sass/main.scss with:

    npm run sass
  4. To automatically generate the CSS whenever you change your Sass source files, run:

    npm run sass-watch
  5. Refer to the customization docs for more info.

Enjoy! 🌮 🎉

{
"scripts": {
"sass": "node-sass sass -o css",
"sass-watch": "npm run sass -- -w"
},
"dependencies": {
"node-sass": "*",
"uswds": "*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment