This is a direct port of Tachyons 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 Tachyons, Adam Morse and John Otander.
The library uses the scheme x.y.z-n
where the major, minor, and patch levels match the corresponding version of Tachyons and the prerelease (-n
) is a integer used to indicate successive releases of this port.
Add the following dependency to your project.clj
file:
Require the namespace containing the styles:
(:require [ca.clojurist.styles.tachyons.core :as tachyons])
Include the styles in your application:
(ns your.namespace
(:require
[garden.def :refer [defstyles]]
[ca.clojurist.styles.tachyons.core :as tachyons]))
(defstyles screen
[tachyons/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.
Copyright © 2017 Robert Medeiros
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close