Skip to content

An example SASS build structure sample to start a project

Notifications You must be signed in to change notification settings

horacioibrahim/sass-build-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evernote SASS Structure Boilerplate

After reading the book SMACSS and finding it very helpful the Front End team at Evernote has used some of the ideas in our SASS build. We've found breaking the SASS files out into directories (Base, Layout, Modules, and Themes) helps organize your files in a project and compile CSS into a clean, logical file. Each page has a SASS (.scss) file created that acts as a project file that imports the individual modular components from Base, Layout, Modules, and Themes that are needed to build the particular page.

This build methodology is currently being used on Evernote.com.

SASS Directories

  1. Base

    The base directory contains styles that help start a project. The base directory could contain the following type of SASS files:

    • Vendor dependancies (Compass, Foundation)
    • Authored dependancies (Mixins, variables, Extends)
    • Fonts
    • Reset
  2. Layout

    The layout directory contains styles that are large containers of a page. This directory could include SASS files like:

    • Responsive Grid
    • Page specific layouts
  3. Modules

    The modules directory will probably contain the bulk of your SASS files. A page may consist of multiple modules and should be style individually. These modules may include files like:

    • Header
    • Footer
    • Navigation
    • Content Block
  4. Themes

    The themes directory contains any specific styles that a page may need to change from the generic layout or modules. For example the header in your website maybe green throughout a website or application but on a specific page you want it to change to a blue background that's where the themes files would come in.

About

An example SASS build structure sample to start a project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published