- border, border-collapse, border-width
- box-sizing
- float
- font, font-family, font-size, font-weight, line-height
- height
- letter-spacing
- margin
- max-height
(require '[cljs.build.api :as api] | |
'[clojure.string :as string] | |
'[figwheel-sidecar.repl-api :as figwheel] | |
'[figwheel-sidecar.components.nrepl-server :as figwheel.nrepl]) | |
(def source-dir "src") | |
(def compiler-config | |
{:main 'app.main | |
:output-to "target/app.js" |
(ns code.server-render | |
(:require | |
[clojure.string :as str] | |
[cljss.builder :as cljss]) | |
(:import | |
[clojure.lang IPersistentVector ISeq Named Numbers Ratio Keyword])) | |
(defn nothing? [element] | |
(and (vector? element) |
(def stylesheet (.-StyleSheet ReactNative)) | |
(defn create-stylesheet [styles] | |
(->> styles | |
(clj->js) | |
(.create stylesheet) | |
(js->clj) | |
(clojure.walk/keywordize-keys))) | |
; usage |
if (process.argv.length < 3) { | |
console.log('Usage: node ' + process.argv[1] + ' FILENAME'); | |
process.exit(1); | |
} | |
var fs = require('fs') | |
, filename = process.argv[2]; | |
let input = fs.readFileSync(filename, 'utf8'); |
(ns MY_NAMESPACE.analytics | |
(:require [cljsjs.google-analytics] | |
[autotrack])) | |
(def tracking-code "UA-XXXXX-Y") | |
(defn start [] | |
(js/ga "create" tracking-code "auto") | |
(js/ga "require" "autotrack") | |
(js/ga "send" "pageview")) |
(ns xzs.utils.styler | |
" | |
A macro namespace that generates classes on the fly for usage in cljs. | |
# Motivation | |
https://ryantsao.com/blog/virtual-css-with-styletron | |
# Synopsis: | |
In your cljs files: |
(set-env! :source-paths #{"src"}) | |
(require '[boot.core :as core] | |
'[boot.util :as util] | |
'[clojure.java.io :as io]) | |
(core/deftask string-template | |
"Does the thing" | |
[f template-file VALUE str "Name of the template file to use" | |
t target-file VALUE str "Name of the output file to produce" |