Liking cljdoc? Tell your friends :D

normalize

A Clojure library that ports normalize.css to Garden.

Usage

Add the following dependency to your project.clj file:

[com.powernoodle/normalize "8.0.1"]

Example

To use with Garden just include the normalize css rules in your apps styles list before your other styles and compile normally with Garden.

(ns example
  (:require [normalize.core :refer [normalize]]))

(def app-styles
  [normalize
   [:a {:color "red"}]
   [:span {:text-transform "uppercase"}]])

You can also consume the raw css without Garden.

This example contains an index function that will generate HTML including an internal <style> tag containing the normalize styles. Alternatively, you can choose to render this content to an external file.

(ns example
  (:require [hiccup.page :refer [html5]]
            [normalize.core :refer [normalize-css]]))

(defn index
  []
  (html5 {:lang "en"}
         [:head
                [:title "Hello World"]
                [:style normalize-css]]
         [:body
                [:h1 "hello world!"]]))

Can you improve this documentation? These fine people already did:
Brendon Walsh & Jed
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close