This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-03
Channels
- # beginners (112)
- # boot (13)
- # cider (17)
- # cljsjs (2)
- # cljsrn (8)
- # clojure (57)
- # clojure-spec (2)
- # clojure-uk (5)
- # clojurescript (51)
- # cursive (4)
- # data-science (15)
- # datomic (1)
- # duct (17)
- # garden (4)
- # lein-figwheel (49)
- # midje (1)
- # nyc (1)
- # off-topic (8)
- # pedestal (1)
- # portkey (20)
- # re-frame (4)
- # reagent (27)
- # ring (1)
- # shadow-cljs (24)
- # spacemacs (7)
- # specter (3)
- # sql (5)
- # yada (5)
@jazzytomato that won’t work because tachyons/styles
is bound to the values of those vars so redefining that orange
with with-redefs
won’t make a difference. since all of tachyons/styles
is data, however, you could use clojure.walk/postwalk-replace
to find and replace all instances of the value "#ff6300"
(which is the original value of that orange
) in tachyons/styles
. something like
(defstyles screen
[(clojure.walk/postwalk-replace
{"#ff6300" "#fbf1a9"}
tachyons/styles)])
should do the trick.the substitution map should probably be written
{ca.clojurist.styles.tachyons.config.colors/orange "#fbf1a9"}
@noprompt oooh ok I get it thanks!! 😄👍 I might do that but if I replace values I might get some unexpected replacements (some values are less specific like 1em) I think I will just include the code of that lib in my project rather than using it as a dependency, and change the config file directly...