 matchdep = require 'matchdep'
 
 module.exports = (grunt) ->
+
+  theme = grunt.option 'theme'
+  theme ?= 'default'
 
   grunt.initConfig
     pkg: grunt.file.readJSON 'package.json'

          'stylesheets/content/_highlight-js.scss': 'node_modules/highlight.js/styles/solarized_light.css'
          'stylesheets/_reset.scss': 'bower_components/meyer-reset/stylesheets/_meyer-reset.scss'

    sass:
      stylesheets:
        files:

      stylesheets:
        files: 'stylesheets/**/*.scss'
        tasks: ['sass', 'newer:autoprefixer']
      theme:
        files: ['stylesheets/_theme.scss']
        tasks: ['copy:save-theme']

  grunt.loadNpmTasks plugin for plugin in matchdep.filterDev 'grunt-*'

  grunt.registerTask 'default', ['copy:lib', 'sass', 'autoprefixer', 'watch']
  
  grunt.registerTask 'new-theme', ['copy:new-theme']
  grunt.registerTask 'switch-theme', ['copy:switch-theme']
