7-1 Architecture for your Sass (not SASS) project.
Forked from Mina Markham Sassy Starter
Disclaimer: This is an evolving project
A starter toolkit based on Scalable and Modular Architecture for CSS (SMACSS) for Sass (SCSS) projects. It's been adapted following Hugo Giraudel 7-1 Architecture.
It is mostly for my personnal use but I'd be glad to see comments / recomandations or improvements to this project.
Styles are broken down into the following groups: Base, Layout, Components (Modules), Pages, Themes, Utilities
note : the documentation has not been modified yet; it refers to the original project.
See SassDoc.
- Fork & clone the git repo, or download zip file directly.
- Install Sass 3.3 –
gem install sass
. - Watch for changes -
sass --watch sass_dir:css_dir
.
scss/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
| |– _cover.scss # Cover
| |– _dropdown.scss # Dropdown
| ... # Etc…
|
|– layout/
| |– _navigation.scss # Navigation
| |– _grid.scss # Grid system
| |– _header.scss # Header
| |– _footer.scss # Footer
| |– _sidebar.scss # Sidebar
| |– _forms.scss # Forms
| ... # Etc…
|
|– pages/
| |– _home.scss # Home specific styles
| |– _contact.scss # Contact specific styles
| ... # Etc…
|
|– themes/
| |– _theme.scss # Default theme
| |– _admin.scss # Admin theme
| ... # Etc…
|
|– utils/
| |– _variables.scss # Sass Variables
| |– _functions.scss # Sass Functions
| |– _mixins.scss # Sass Mixins
| |– _helpers.scss # Class & placeholders helpers
|
|– vendors/
| |– _bootstrap.scss # Bootstrap
| |– _jquery-ui.scss # jQuery UI
| ... # Etc…
|
|
`– main.scss # Main Sass file
|
+ .htaccess # Apache server configs
+ config.rb # Compass configuration file
+ crossdomain.xml # cross-domain requests
+ docs/ # SassDoc generated documentation
+ deploy.rb # Capistrano configuration file
+ Gruntfile.js # Grunt configuration & tasks
+ package.json # Grunt metadata & dependencies