cljss
cljss copied to clipboard
Clojure Style Sheets — CSS-in-JS for ClojureScript
Using `:css` inside conditionals in rum components won't compile properly. Here is an example of a component: ```clojure (rum/defcs a-comp < (rum/local false ::selected?) [state] (let [local-selected? (::selected? state)] [:div...
Addresses issue I encountered https://github.com/clj-commons/cljss/issues/65#issuecomment-854933577 Namely React being undefined globally.
## Observed Behavior Hello I'm using Luminus template for shadow-cljs, and I'm trying to use cljss.reagent ``` (ns tartataing.core (:require ... [cljss.reagent :refer-macros [defstyled]] ...) (:require-macros [cljss.core]) (:import goog.History)) ```...
CSS-in-JS libraries in JavaScript world are mature enough already so it makes little sense to ignore them. I'd propose to replace library runtime with existing JS library, like [Emotion](https://github.com/emotion-js/emotion), and...
https://clj-commons.org/cljss/ and https://clj-commons.github.io/cljss/ are both working.
something like this (defstyles poc-style [] {".content-wrapper" {::css/media {[:only :screen :and [:min-width "992px"]] {:padding "10rem"}}})
I've encountered a few issues specific to `cljss.reagent/defstyled`: ### Style maps not transformed properly ```cljs (defstyled foo :div {}) (def some-component [] [foo {:style {:font-size "12px"}}] ``` Will raise a...
I'm trying to set up cljss to develop on locally so that I can submit a PR, but I'm having trouble getting it started. There doesn't seem to be any...
Pretty self explanatory :)
In some cases, the order of declaration matters, for example when applying `:hover` and `:active` pseudoselectors. Because an element can be in both a `:hover` and `:active` state at the...