(?sgr s)
For debugging of sgr code printing.
Prints the value with escaped sgr codes so you can read them in terminal emulators (otherwise text would just get colored).
Returns the value.
For debugging of sgr code printing. Prints the value with escaped sgr codes so you can read them in terminal emulators (otherwise text would just get colored). Returns the value.
(m->sgr {fgc* :color
bgc* :background-color
font-style :font-style
font-weight :font-weight
: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"}
(validate-option-from-user-config-edn k v {:keys [spec default]})
(validate-option-from-user-config-edn-dynamic k
v
{:keys [spec default]}
user-config-edn*)
(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 is a website building & hosting documentation for Clojure/Script libraries
× close