Fork me on GitHub
#garden
<
2017-12-20
>
jazzytomato13:12:01

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

jazzytomato13:12:51

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

niamu15:12:16

@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