garden

noprompt 2018-06-03T04:43:08.000061Z

@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.

noprompt 2018-06-03T04:44:25.000049Z

the substitution map should probably be written

{ca.clojurist.styles.tachyons.config.colors/orange "#fbf1a9"}

noprompt 2018-06-03T04:44:34.000027Z

i hope that helps!

jazzytomato 2018-06-03T07:36:14.000021Z

@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...