(->styled tag styles cls)
Takes var name, HTML tag name and a hash map of styles definition.
Returns a var bound to the result of calling cljss.core/styled
,
which produces React element and injects styles.
Takes var name, HTML tag name and a hash map of styles definition. Returns a var bound to the result of calling `cljss.core/styled`, which produces React element and injects styles.
(css cls static vars)
Takes class name, static styles and dynamic styles. Injects styles and returns a string of generated class names.
Takes class name, static styles and dynamic styles. Injects styles and returns a string of generated class names.
(css-keyframes cls static vars)
Takes CSS animation name, static styles and dynamic styles. Injects styles and returns generated CSS animation name.
Takes CSS animation name, static styles and dynamic styles. Injects styles and returns generated CSS animation name.
(defkeyframes var args keyframes)
Takes var name, a vector of arguments and a hash map of CSS keyframes definition.
Returns a function that calls cljss.core/css-keyframes
to inject styles at runtime
and returns generated CSS animation name that can be used in CSS animation
rule.
(defkeyframes spin [start end] {:from {:transform (str "rotate(" start "deg)")} :to {:transform (str "rotate(" end "deg)")}})
(defstyled Spinner :div {:animation (str (spin 0 180) " 1s ease infinite")})
Takes var name, a vector of arguments and a hash map of CSS keyframes definition. Returns a function that calls `cljss.core/css-keyframes` to inject styles at runtime and returns generated CSS animation name that can be used in CSS `animation` rule. (defkeyframes spin [start end] {:from {:transform (str "rotate(" start "deg)")} :to {:transform (str "rotate(" end "deg)")}}) (defstyled Spinner :div {:animation (str (spin 0 180) " 1s ease infinite")})
(defstyles var args styles)
Takes var name, a vector of arguments and a hash map of styles definition.
Generates class name, static and dynamic parts of styles.
Returns a function that calls cljss.core/css
to inject styles at runtime
and returns generated class name.
Takes var name, a vector of arguments and a hash map of styles definition. Generates class name, static and dynamic parts of styles. Returns a function that calls `cljss.core/css` to inject styles at runtime and returns generated class name.
(font-face descriptors)
Takes a hash of font descriptors and produces CSS string of @font-face declaration. Returns a function that injects styles at runtime.
Takes a hash of font descriptors and produces CSS string of @font-face declaration. Returns a function that injects styles at runtime.
(inject-global css)
Takes a hash of global styles definitions and produces CSS string. Returns a sequence of calls to inject styles at runtime.
Takes a hash of global styles definitions and produces CSS string. Returns a sequence of calls to inject styles at runtime.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close