garden

jazzytomato 2017-12-20T13:38:01.000215Z

is anyone aware of an open source project using garden? or a codebase large enough to browse and see how the library is used. I am trying out garden, I like it but I am not sure how to organise my code

jazzytomato 2017-12-20T13:40:51.000221Z

for now I organised my garden file like that

(defn logo
  []
  [:div.logo
   {:text-align :center
    :margin "10px"}
   [:img
    {:width "100%"
     :max-width "200px"}]])
;; ...
;; etc.
;; ...
(defstyles screen
  [:body
   (logo)
   (search-bar)
   (search-bar-media)
   (grid-container)
   (header)
   (main)
   (footer)
   (ul-picker)])
but I am not sure if it is the best approach

niamu 2017-12-20T15:54:31.000391Z

@jazzytomato I’d read this article to see an alternate way of managing Garden in your project: https://blog.estimate-work.com/a-new-world-writing-css-in-clojurescript-and-life-after-sass-bdf5bc80a24f

❤️ 1
niamu 2017-12-20T15:56:16.000596Z

@jazzytomato Here’s some sample code for a project of mine that closely mirrors what you’re doing currently: https://github.com/niamu/fume/blob/master/src/fume/style.cljc

👍 3
shaun-mahood 2017-12-20T16:31:23.000684Z

@jazzytomato: re-frame-trace is using garden now - https://github.com/day8/re-frame-trace/

👍 1