clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
isak 2021-06-04T15:37:51.015800Z

Anyone using fontawesome via JS + Svgs in ClojureScript + React? Does it work well? (We are using FA with webfonts)

djblue 2021-06-04T16:04:18.015900Z

I started using them recently with reagent, work fine for me. https://github.com/djblue/portal/blob/master/src/portal/ui/icons.cljs

isak 2021-06-04T16:07:36.016200Z

Hmm, would it work to also refer to them by the css classes, like before? Asking because changing to that style would be a huge refactoring for us

djblue 2021-06-04T16:20:01.016400Z

I think you can but then you have an svg asset loading problem. You could choose to load all the svgs or would have to manually require the ones you use.

isak 2021-06-04T16:21:54.016600Z

Ok, all would work for us, since we don't know all the icons needed until runtime. Thanks.

djblue 2021-06-04T16:29:55.016800Z

I do wonder what the difference in size would be between the font file vs all the svgs

isak 2021-06-04T16:39:29.017Z

I heard it is a little worse to use the svgs, but not that bad. And the problem we are running into is not being able to use the advanced FA features like stacking and masking icons.

👍 1