Skip to content

Instantly share code, notes, and snippets.

@zehnpaard
Created November 20, 2016 06:13
Show Gist options
  • Save zehnpaard/16a0e8799e097b996f56c52e472597ef to your computer and use it in GitHub Desktop.
Save zehnpaard/16a0e8799e097b996f56c52e472597ef to your computer and use it in GitHub Desktop.
Minimal setup for compiling CSS to file using Garden
(ns min-garden.core
(:require [garden.core :refer [css]]))
(def style
[:body {:font-size "16px"}])
(defn -main []
(css {:output-to "resources/public/css/main.css"}
style))
.
├── project.clj
├── resources
│   └── public
│   └── css
└── src
└── min_garden
└── core.clj
(defproject min-garden "0.0.1"
:dependencies [[org.clojure/clojure "1.8.0"]
[garden "1.3.2"]]
:main min-garden.core)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment