This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-05
Channels
- # bangalore-clj (2)
- # beginners (132)
- # boot (311)
- # cider (5)
- # cljs-dev (27)
- # cljsjs (2)
- # cljsrn (16)
- # clojure (76)
- # clojure-art (1)
- # clojure-france (8)
- # clojure-russia (35)
- # clojure-spain (3)
- # clojure-spec (2)
- # clojure-uk (11)
- # clojureindia (1)
- # clojurescript (98)
- # core-async (3)
- # css (9)
- # cursive (9)
- # datascript (7)
- # datomic (7)
- # emacs (30)
- # jobs (1)
- # lein-figwheel (7)
- # london-clojurians (1)
- # lumo (14)
- # off-topic (6)
- # om (1)
- # planck (3)
- # protorepl (1)
- # re-frame (27)
- # reagent (17)
- # spacemacs (10)
- # untangled (1)
- # yada (16)
enjoyed reading about css-in-cljs: https://github.com/roman01la/cljss
it's basically react-native's inline styles for the web 🙂
thanks for this @roman01la
I was wondering why this is implemented as a macro rather than just a function that accepts a map
I believe it’s a macro to do the production stylesheet output at compile time. A normal function would need to be explicitly called.
@niamu @pesterhazy that's right. it's very basic you can not have dynamic styles with it. If you want dynamic styles I'd recommend to take a look at this https://github.com/thheller/shadow/wiki/shadow.markup
Dynamic in the sense that you can use a let binding, as in tbheller's example?
@pesterhazy: when styles can be computed at runtime. In cljss for example styles can not be changed after you define them