(m->sgr {fgc* :color
bgc* :background-color
font-style :font-style
font-weight :font-weight
k :k
:as m})(merge-theme+ base theme)Merges a theme (light or dark) with base theme (light or dark).
Hydrates style-maps into maps that are computationally easier for interop. This step removes the font-weight and font-style options for the terminal context, as they are not reliably supported across emulators.
This :constant example would be under [:tokens :classes], in a typical fireworks theme. {... {:constant {:color "#949494" :font-weight :bold :font-style :italic}} ...}
cljs => {... "color:#949494;font-weight:bold;font-style:italic;"}
clj => {... "[38;5;246m"}
Merges a theme (light or dark) with base theme (light or dark).
Hydrates style-maps into maps that are computationally easier
for interop. This step removes the font-weight and font-style
options for the terminal context, as they are not reliably supported
across emulators.
This :constant example would be under [:tokens :classes],
in a typical fireworks theme.
{...
{:constant {:color "#949494"
:font-weight :bold
:font-style :italic}}
...}
cljs =>
{... "color:#949494;font-weight:bold;font-style:italic;"}
clj =>
{... "[38;5;246m"}(with-conformed-colors {:keys [style-map theme-token from-custom-badge-style?]})If :background-color is :transparent or "transparent", dissoc the entry. If :color or :background-color is named-html-color, convert to hex. If value is not valid named-html-color or hex, dissoc the entry.
If :background-color is :transparent or "transparent", dissoc the entry. If :color or :background-color is named-html-color, convert to hex. If value is not valid named-html-color or hex, dissoc the entry.
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 |