These are starter files for installing Sass to your project.
-
From the repo, click the green "Code" button dropdown, and select download .zip
-
Paste all of the contents of
scss-starter
folder into your project -
If You Already Have a
package.json
in Your Project:
- Use your original
package.json
and.gitignore
- Run
npm install node-sass
dependency - Copy the following line in the "scripts" section in
package.json
"sass": "node-sass styles/scss/main.scss -w styles/css/style.css"
- If You Don't Have a
package.json
in Your Project:
- Run
npm i
to installnode-sass
dependency
-
Run
npm run sass
in the terminal -
Open
html/index.html
in the browser and view colored fonts -
Change a variable such as a color and save the file
-
Notice if scss compiled successfully
-
Refresh the html and verify it changes
-
Delete
html
directory -
Import
styles/css/style.css
into your main project file
- Update and add variables to
/abstract/_variables.scss
- Any newly added
.scss
files should be imported intomain.scss
├─ styles/
│ ├─ sass/
│ │ ├─ abstract/
│ │ │ ├─ _variables.scss
│ │ │ ├─ _mixins.scss
│ │ │ ├─ _animations_.scss
│ │ │ ├─ _mediaqueries_.scss
│ │ ├─ base/
│ │ │ ├─ _base.scss
│ │ │ ├─ _typography.scss
│ │ ├─ layout/
│ │ │ ├─ _header.scss
│ │ │ ├─ _footer.scss
│ │ ├─ components/
│ │ ├─ pages/
│ │ │ ├─ _home.scss
│ │ ├─ main.scss
│ ├─ css/
│ │ ├─ style.css
Email: hello@dariannocera.com