Version 2.0.3
Matt Banks ( @mattbanks / kernelcreativemedia.com / mattbanks.me )
Base Compass/SCSS framework for new websites. Uses Compass/SCSS, HTML5 Boilerplate 4 with Modernizr and Normalize.css, and Grunt for all tasks.
The theme is setup to use Grunt to compile Compass/SCSS, lint, concatenate and minify JavaScript (with source maps), optimize images, and LiveReload the browser (with extension), with flexibility to add any additional tasks via the Gruntfile. Alternatively, you can use CodeKit or whatever else you prefer to compile the SCSS and manage the JavaScript.
Open the project directory in terminal and run npm install
to pull in all Grunt dependencies. Run grunt
to execute tasks. Code as you will. If you have the LiveReload browser extension, it will reload after any SCSS or JS changes. To optimize images, run grunt imagemin
.
- Compile
assets/scss/style.scss
tostyle.css
(all paths defined in config.rb for Compass) - Compile
assets/scss/editor-style.scss
toeditor-style.css
- Concatenate and minify plugins in
assets/js/vender
andassets/js/source/plugins.js
toassets/js/plugins.min.js
- Minify
assets/js/source/main.js
toassets/js/main.min.js
- ??
- Profit
To concatenate and minify your jQuery plugins, add them to the assets/js/vendor
directory and add the js
filename and path to the Gruntfile
uglify
task. Previous versions of the starter theme automatically pulled all plugins in the vendor
directory, but this has changed to allow more granular control and for managing plugins and assets with bower.
Supports bower to install and manage JavaScript dependencies in the assets/js/vendor
folder.
The theme includes deployments via grunt-rsync. The Gruntfile includes setups for staging and production - edit your paths and host, then run grunt rsync:staging
or grunt rsync:production
to deploy your files via rsync.
- Normalized stylesheet for cross-browser compatibility using Normalize.css version 2 (IE8+ only)
- Easy to customize
- Flexible grid from Chris Coyier
- Media Queries for mobile and tablets ready to populate
- Compass & SCSS with plenty of mixins ready to go
- update grunt dependencies
- update spacing in functions
- update grunt dependencies
- update deployment info to fit new rsyncwrapper options
- update grunt dependencies
- switch to load-grunt-tasks for loading everything
- restructure deploy task based on grunt-rsync updates
- reorganize code in
assets
folder for fonts, images, js and scss - setup Gruntfile to use Grunt for all compiling, concatenation and minification
- add deployments via rsync
- add bower support with
.bowerrc
- general code cleanup
- Add grid column sizes I typically use, general code cleanup
- Fix text selection bg and color not pulling from variables
- Fixed broken html tag comment
- Fixed broken modernizr link (
/js/vendor/
instead of/js/lib/
)
- Move border-box from
_grid.scss
to_global.scss
- Add border-box support for pseudo elements, because it makes the world a better place
- Updated to HTML5 Boilerplate 4
- Updated to Normalize.css 2
- Updated to Modernizr 2.6.2
- Updated to jQuery 1.8.3
- Renamed jquery.functions.js to main.js
- Add flexible grid SCSS
- Include @media bubbling mixins, via Chris Coyier
- Other bug fixes and changes
- add compass via config.rb
- add compass mixins in style.scss
- remove mixins that compass has by default
- change directory structure
- initial version