A starter kit for Sass projects using the Scalable and Modular Architecture for CSS (SMACSS) methodology by Jonathan Snook and the Block, Element, Modifier (BEM) naming convention by Yandex. Based on Sassy Starter by Mina Markham. Feel free to adapt Smack Sass to meet your specific needs. I hope Smack Sass helps you organize your CSS in a more efficient way.
- Clone the git repository, or click Download ZIP.
- Install Sass by running
gem install sass
. - Install the Grunt CLI by running
npm install -g grunt-cli
.
- Watch for changes by running
sass --watch scss:css
. - Compress the output by running
sass --watch scss:css --style compressed
. - Use Autoprefixer by running
grunt prefix
. - Beautify your JavaScript by running
grunt cleanjs
. - Uglify your JavaScript by running
grunt buildjs
.
├── base
│ ├── _base.scss # all of the base styles for the project
│ ├── _index.scss # base manifest file
│ └── _normalize.scss # normalize.css v3.0.2
├── css
│ └── styles.css # main CSS file for your site
├── gruntfile.js # configures Grunt tasks
├── index.html # start writing your HTML here
├── js
│ └── script.min.js # uglified js file for your site
├── layout
│ ├── _grid.scss # styles for a twelve-column grid
│ └── _index.scss # layout manifest file
├── modules
│ └── _index.scss # modules manifest file
├── node_modules # Node modules for Grunt
├── package.json # JSON data for Grunt
├── scss
│ └── styles.scss # core manifest file
├── src
│ └── js # js files in this directory can be uglified
│ └── script.js # start writing your JavaScript here
├── states
│ └── _index.scss # states manifest file
├── themes
│ └── _index.scss # themes manifest file
└── utilities
├── _functions.scss # all of the functions for the project
├── _globals.scss # global variables
├── _helpers.scss # placeholder selectors, screen reader text, etc.
├── _index.scss # utilities manifest file
└── _mixins.scss # all of the mixins for the project
- Smack Sass v1.0
- Normalize.css v3.0.2
- Grunt v0.4.5
- Autoprefixer v5.2.1
- Uglify v0.9.1
- Guil Hernandez at Sass break for help with some of the functions and mixins for this project.
- Mina Markham for creating such a great tool with Sassy Starter.
- Jonathan Snook for making CSS more organized with SMACSS.