-
You need to have Grunt installed, nodejs and Compass
-
Go to the theme folder theme/bb/ and do a npm install to build the grunt necessary files.
-
Then grunt to keep the css updated and javascript minified.
sudo rm -rf node_modules && npm cache clean && npm i
Version: 3.2.0
Matt Banks ( @mattbanks / kernelcreativemedia.com / mattbanks.me )
Drupal 7 Starter Theme for use as a starting template for building custom themes. 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.
Rename folder to your theme name, rename .info file to your theme name, change the scss/style.scss
intro block to your theme information. Open the theme 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
scss/style.scss
tostyle.css
(all paths defined in config.rb for Compass) - Compile
scss/editor-style.scss
toeditor-style.css
- Concatenate and minify all plugins in
js/vender
andjs/source/plugins.js
tojs/plugins.min.js
- Minify
js/source/main.js
tojs/main.min.js
- ??
- Profit
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
- Much much more
- Chaos Tools
- CKEditor
- Google Analytics
- IMCE
- jQuery Update
- Meta Tags
- Pathauto
- Token
- Transliteration
- Views
- Webform
- XML Sitemap
- update grunt dependencies
- update spacing in functions
- tweak Gruntfile.js to fix LiveReload issues and generate source maps for both main.js and plugins.js
- update to normalize v2.1.2
- optimizations and tweaks here and there
- 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
- update to normalize v2.1.0
- general code cleanup
- Add grid column sizes I typically use, general code cleanup
- Renamed jquery.functions.js to main.js
- Renamed _widgets.scss to _blocks.scss
- Add flexible grid SCSS
- Updated to HTML5 Boilerplate 4
- Updated to Normalize.css 2
- Updated to Modernizr 2.6.2
- Include @media bubbling mixins, via Chris Coyier
- Add GPL license info to style.scss
- Add border-box support for everything, including pseudo elements, because it makes the world a better place
- Other bug fixes and changes
- added Compass and SCSS as preprocessor files
- upgraded modernizr to 2.5.2
- renamed script.js to jquery.functions.js
- theme .info file points to minified versions of plugins.js and jquery.functions.js
- tweak html.tpl.php using latest HTML5 Boilerplate
- use aside instead of div for sidebars in page.tpl.php
- initial version
Without these projects, this Drupal Starter Theme wouldn't be where it is today.