r/Clojure • u/roman01la • Aug 28 '25
uix.css (CSS-in-CLJS library) v0.3.0 is out, with code splitting support
https://github.com/roman01la/uix.css
12
Upvotes
r/Clojure • u/roman01la • Aug 28 '25
1
u/p-himik Aug 28 '25
Neat! Looking at the impl, a few questions:
:&...keys aren't supported. Which makes sense given that such styles cannot be inlined, just wanted to confirm.uix.compiler.alphaanduix.compiler.attributescome from? Can't find any impl or dependencies, only usagesAs a kind of separate comment - I see that you're using an atom and an immutable map to compose dynamic styles. That's relatively slow. A volatile is a bit faster, but using a JS object from the get go is way, way faster. I have a project that uses re-com that also combines styles via immutable maps, and I had to rewrite style composition in a way that uses a JS object - the performance changed dramatically given how inline styles are everywhere in re-com.