The storefront's stylesheet, as data.
Every value here is a ROLE — [:token "color.surface"], [:token "space.gutter"] — never a colour and never a measurement. Restyling the
store for a brand is editing tokens.edn; this file is the layout, and it
changes when the layout does.
Nothing in this namespace is effectful, so the whole stylesheet can be rendered, diffed, and asserted on in a test.
The storefront's stylesheet, as data. Every value here is a ROLE — `[:token "color.surface"]`, `[:token "space.gutter"]` — never a colour and never a measurement. Restyling the store for a brand is editing `tokens.edn`; this file is the layout, and it changes when the layout does. Nothing in this namespace is effectful, so the whole stylesheet can be rendered, diffed, and asserted on in a test.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |