Skip to content

Instantly share code, notes, and snippets.

@zehnpaard
Last active November 20, 2016 07:26
Show Gist options
  • Save zehnpaard/aa6d1ce8bf236b004ab7f06cc99bea05 to your computer and use it in GitHub Desktop.
Save zehnpaard/aa6d1ce8bf236b004ab7f06cc99bea05 to your computer and use it in GitHub Desktop.
Minimal setup for using lein garden to auto-compile CSS
(ns min-lein-garden.core
(:require [garden.def :refer [defstyles]]))
(defstyles style
[:body
{:font-size "14px"
:background "#f00"}])
.
├── project.clj
└── src
└── min_lein_garden
└── core.clj
(defproject min-lein-garden "0.0.1"
:dependencies [[org.clojure/clojure "1.8.0"]
[garden "1.3.2"]]
:plugins [[lein-garden "0.3.0"]]
:garden
{:builds [{:source-paths ["src"]
:stylesheet min-lein-garden.core/style
:compiler {:output-to "resources/public/css/main.css"}}]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment