tincture.gradient

Generate CSS ready gradients from uigradients.com

css

(css palette-name)(css palette-name direction)

Takes a name, that should correspond with gradients listed at uigradients.com and can be either string or keyword, and a direction: #{:left :right :up :down} Returns a set of CSS strings used with a :background property passed to Garden. The return value contains browser fallbacks.

Example

(garden.core/css [:h2 {:background (gradient/css :vice-city :left)}])