A Leiningen plugin to generate stylesheets from cssgen s-expressions.
In your :plugins
:
[lein-cssgenbuild "0.2.1"]
In order to make this plugin work, you must use [cssgen-rule-seq "0.2.8"]
instead of normal cssgen until the required code gets merged into the main repository.
Wrap your rules with a rule-seq
macro call:
(ns stylesheets.theme
(:require [cssgen :refer :all]))
(rule-seq
(rule "ul.nav, ol"
:color :black)
(rule "a"
:color :red))
Configure cssgenbuild
in your project.clj
:
:cssgenbuild {:source-path "path/to/clj-stylesheets/"
:destination-path "path/to/css/destination/files/"}
Generate CSS files with:
$ lein cssgenbuild once
Copyright © 2012 Michael Drogalis
Distributed under the Eclipse Public License, the same as Clojure.