Skip to content

Commit

Permalink
Flatten components before passing on to girouette
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Jun 21, 2024
1 parent ce2259f commit 0af1291
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/lambdaisland/ornament.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

:always
(update :garden #(comp process-rule %)))))
components)
(flatten components))
:colors (into (empty colors)
(map (juxt (comp name key) val))
colors)
Expand Down Expand Up @@ -965,9 +965,10 @@

(comment
(spit "/tmp/ornament.css" (defined-styles))
)
(->> @rules-registry
vals
(sort-by :index)
(mapcat :rules)
process-rules)

(->> @rules-registry
vals
(sort-by :index)
(mapcat :rules)
process-rules))

0 comments on commit 0af1291

Please sign in to comment.