css

For all your CSS related content...
pesterhazy 2017-02-05T16:54:17.000033Z

enjoyed reading about css-in-cljs: https://github.com/roman01la/cljss

pesterhazy 2017-02-05T16:55:14.000035Z

and the linked https://speakerdeck.com/vjeux/react-css-in-js

pesterhazy 2017-02-05T16:56:02.000037Z

it's basically react-native's inline styles for the web ๐Ÿ™‚

pesterhazy 2017-02-05T16:56:40.000038Z

thanks for this @roman01la

pesterhazy 2017-02-05T16:58:18.000039Z

I was wondering why this is implemented as a macro rather than just a function that accepts a map

niamu 2017-02-05T17:47:00.000040Z

I believe itโ€™s a macro to do the production stylesheet output at compile time. A normal function would need to be explicitly called.

2017-02-05T23:23:14.000042Z

@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

pesterhazy 2017-02-05T23:34:01.000044Z

Dynamic in the sense that you can use a let binding, as in tbheller's example?

2017-02-05T23:43:51.000045Z

@pesterhazy: when styles can be computed at runtime. In cljss for example styles can not be changed after you define them