This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-13
Channels
- # admin-announcements (6)
- # beginners (19)
- # boot (1)
- # cbus (2)
- # cider (3)
- # clara (24)
- # cljs-dev (4)
- # cljsrn (18)
- # clojure (168)
- # clojure-boston (1)
- # clojure-dev (55)
- # clojure-russia (199)
- # clojure-sg (2)
- # clojurescript (38)
- # clojurex (1)
- # core-async (15)
- # css (16)
- # cursive (62)
- # datomic (23)
- # editors-rus (17)
- # events (3)
- # funcool (1)
- # hoplon (360)
- # ldnclj (37)
- # lein-figwheel (11)
- # leiningen (1)
- # nginx (1)
- # off-topic (13)
- # om (361)
- # onyx (1)
- # re-frame (56)
- # reagent (24)
- # robots (1)
- # spacemacs (46)
- # yada (9)
anyone know how to import styles from a css file in cljs? http://ai.github.io/postcss-way/?full#29
@stephenway: do you have an existing set of css files that you’d like to import or are you just interested in replicating the same architecture?
I have existing css files and I’d like to load them into each cljs component in the same manner as i’m using PostCSS like import styles from ‘./component.css’;
when using plain JS are those files compiled to JS beforehand or does the import thing load and parse them at runtime?
this seems to explain it a bit more in depth https://github.com/gajus/react-css-modules
It’s probably not going to be fun integrating that heavily webpack oriented workflow into a cljs app
@stephenway: there’s no plug and play solution. I guess you could come up with something based on garden
that reads css files and generates appropriate cljs namespaces
ahh ok, I’ll check that out, thanks @martinklepsch
@stephenway: have you taken a look at goog.cssom? https://google.github.io/closure-library/api/namespace_goog_cssom.html
@wildermuthn: Oh no, that looks promising!
I’ve had a lot of success with it! Pretty interesting. I’d never heard of the cssom before.