Skip to content

SCSS starter files and structure with partials and imports

Notifications You must be signed in to change notification settings

darnocer/scss-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCSS Starter Files

Sass HTML Node

These are starter files for installing Sass to your project.

Installation ⚙️

  1. From the repo, click the green "Code" button dropdown, and select download .zip

  2. Paste all of the contents of scss-starter folder into your project

  3. 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"
  1. If You Don't Have a package.json in Your Project:
  • Run npm i to install node-sass dependency
  1. Run npm run sass in the terminal

  2. Open html/index.html in the browser and view colored fonts

  3. Change a variable such as a color and save the file

  4. Notice if scss compiled successfully

  5. Refresh the html and verify it changes

  6. Delete html directory

  7. Import styles/css/style.css into your main project file

Customization 🎨

  • Update and add variables to /abstract/_variables.scss
  • Any newly added .scss files should be imported into main.scss

Directory Tree 🌳

├─ 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

Contact 📞

Darian Nocera

Email: hello@dariannocera.com

Dev Github LinkedIn


Copyright © 2020 Darian Nocera

About

SCSS starter files and structure with partials and imports

Topics

Resources

Stars

Watchers

Forks