(normalize-preset s)Normalise a raw preset attribute value. Returns default-preset for unknown or nil values. Accepts both built-in and custom preset names.
Normalise a raw preset attribute value. Returns default-preset for unknown or nil values. Accepts both built-in and custom preset names.
(preset->css preset-name)Generate a complete CSS string for a given preset name.
Generate a complete CSS string for a given preset name.
(register-preset! preset-name data)Register a custom preset. The data argument is a JS object with
light and optional dark keys, each mapping token names to values.
Missing tokens fall back to the default built-in preset.
Register a custom preset. The `data` argument is a JS object with `light` and optional `dark` keys, each mapping token names to values. Missing tokens fall back to the `default` built-in preset.
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 |