garden icon indicating copy to clipboard operation
garden copied to clipboard

Interested: comparison with pre-processors

Open WorldsEndless opened this issue 6 years ago • 4 comments

From a vantage point of selling-points, what are some of the plusses and minuses of garden vs. say, SCSS? The first thing in the README is "see what happens when you trade a preprocessor for a full language"; what does that actually mean? For example, things like "lighten" are already there in preprocessors. I adore garden and would like a good comparison.

WorldsEndless avatar Dec 08 '17 16:12 WorldsEndless

From my very limited experience the possible advantages are just to do with the fact that you just manipulate Clojure data structures, so instead of having to deal with crappy half languages in pre-processors, you can use the full power of Clojure.

In theory this could even allow you do smart things like extra sanity checks, or more dynamic CSS generation.

AndreaCrotti avatar Dec 31 '17 13:12 AndreaCrotti

You can also use most of the api from Clojurescript; which means you can generate styles based on your app-state.

hkjels avatar Jan 02 '18 08:01 hkjels

There is a nice article here https://blog.estimate-work.com/a-new-world-writing-css-in-clojurescript-and-life-after-sass-bdf5bc80a24f with some more information.

AndreaCrotti avatar Jan 02 '18 10:01 AndreaCrotti

Excellent points; thanks!

WorldsEndless avatar Jan 03 '18 16:01 WorldsEndless