garden icon indicating copy to clipboard operation
garden copied to clipboard

Generate CSS with Clojure

Results 43 garden issues
Sort by recently updated
recently updated
newest added

I'm trying to compile styles in clojurescript. Artithmetics and `at-import` do not compile correctly. This is a mini example of the behavior: ``` cljs.user=> (require '[garden.units :refer [px em]]) cljs.user=>...

See rationale for working with HCL instead of rgba/hsl http://vis4.net/blog/posts/avoid-equidistant-hsv-colors/

enhancement
color

According to [this](http://www.w3.org/TR/CSS21/cascade.html#at-import), the `@import` should be added to the top of the file, but: ``` clojure (defcssfn url) (css [:body {:font-size "1em"}] (at-import (url "http://fonts.googleapis.com/css?family=Josefin+Slab:400,700|Inconsolata:400,700|Raleway:400,400italic,700")) [:p {:font-weight "bold"}]) ```...

bug

It would convenient if vectors of keywords could be automatically expanded. Here's what I have in mind: ``` clj (def user-select [:-webkit-touch-callout :-webkit-user-select :-khtml-user-select :-moz-user-select :-ms-user-select :user-select]) (garden.core/css {user-select "none"})...

idea

There should be some easy way to add includes, such as conversions (I've made one) of some of the spinners at http://cssload.net/en/spinners

I think the most interesting Garden brings is the intuitive way style rules are structured to make responsive designs. Why not make a showcase demonstrating that power with some patterns...

Now when you use `at-media` in the middle of garden data structure - it starts eager evaluation, so we are loosing data nature of result. It would be cool to...

[CSS extensions](http://dev.w3.org/csswg/css-extensions/) and [media queries](http://dev.w3.org/csswg/mediaqueries/#custom-mq) allow to extends CSS syntax in a number of ways that can't be easily expressed in garden. It would be nice to allow this and...

I'm really liking how data-driven this project makes the writing of styles. I imagine having a datastructure that is literally a set of rule vectors, and then passing the whole...

enhancement
idea