crimeminister / garden-normalize

A Garden port of Normalize.css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

garden-normalize

This is a direct port of Normalize.css to the garden Clojure CSS generation library.

I do not take any credit for the contained styles, only for their translation into Garden syntax. Credit goes to the original authors of Normalize.css, Nicolas Gallagher and Jonathan Neal.

Versioning

The library uses the scheme x.y.z-n where the major, minor, and patch levels match the corresponding version of Normalize.css and the prerelease (-n) is a integer used to indicate successive releases of this port.

Getting Started

Add the following dependency to your project.clj file:

Clojars Project

Require the namespace containing the styles:

(:require [ca.clojurist.styles.normalize :as normalize])

Include the styles in your application:

(ns your.namespace
  (:require
   [garden.def :refer [defstyles]]
   [ca.clojurist.styles.normalize :as normalize]))

(defstyles screen
  [normalize/styles])

From a REPL in your project root directory:

user=> (require '[garden.core :refer [css]])
nil
user=> (require '[your.namespace])
nil
user=> (css your.namespace/screen)

See the Garden README.md for more information about generating CSS.

License

Copyright © 2017 Robert Medeiros

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A Garden port of Normalize.css

License:Eclipse Public License 1.0


Languages

Language:Clojure 100.0%