This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-14
Channels
- # announcements (3)
- # aws (7)
- # babashka (108)
- # beginners (222)
- # bristol-clojurians (3)
- # calva (8)
- # chlorine-clover (1)
- # cider (14)
- # clj-kondo (4)
- # cljdoc (6)
- # cljs-dev (89)
- # cljsrn (13)
- # clojars (6)
- # clojure (89)
- # clojure-australia (1)
- # clojure-europe (11)
- # clojure-italy (9)
- # clojure-losangeles (11)
- # clojure-nl (6)
- # clojure-spec (2)
- # clojure-sweden (1)
- # clojure-uk (9)
- # clojurescript (47)
- # conjure (18)
- # datomic (7)
- # docker (1)
- # figwheel (43)
- # figwheel-main (2)
- # fulcro (31)
- # kaocha (3)
- # leiningen (7)
- # luminus (2)
- # nrepl (14)
- # off-topic (24)
- # pathom (5)
- # pedestal (5)
- # rdf (4)
- # re-frame (49)
- # reagent (12)
- # reitit (9)
- # rum (21)
- # shadow-cljs (109)
- # tools-deps (35)
- # vim (8)
- # wasm (1)
Any rum compatible locally scoped CSS lib? Like if I want to define CSS style which applies to my whole rum component only?
@didibus Inline styles with something like https://github.com/noprompt/garden ?
Not specific to Rum, it works with any hiccup like library
Like something that let me declare styles which only apply to the component inside ClojureScript.
Whatβs the difference between that and inline styles?
if it has to be soped to component only, i would start with inline styles
[:div {:style (garden/css :color "bluel")} "hello"]
from the top of my head π
might be {:color "blue"}
you can also do it without garden, with plain text
[:div {:style "color: blue"} "hello"]
also note that with inline there's no way to declare :hover
etc styles
Garden is fine, but might be super slow if you are building something interactive
aaand in inline styles map you can use keyword values {:color :blue}
so that your IDE can help you with autocompletion later π