Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Leiningen plugin to generate stylesheets from cssgen
Clojure
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/leiningen
.gitignore
README.md
project.clj

README.md

lein-cssgenbuild

A Leiningen plugin to generate stylesheets from cssgen s-expressions.

Installation

Clojars

In your :plugins:

[lein-cssgenbuild "0.2.1"]

cssgen fork

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.

Usage

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

License

Copyright © 2012 Michael Drogalis

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.