Colours chosen from among others, e.g. from the palette of an image or from colours that a designer made.
Colours chosen from among others, e.g. from the palette of an image or from colours that a designer made.
(chroma x)The chroma of the colour x in OKLCH: 0 for a grey, and about 0.3 at
most in sRGB.
The chroma of the colour `x` in OKLCH: 0 for a grey, and about 0.3 at most in sRGB.
(chromatic? x)(chromatic? x c)Whether the colour x has an OKLCH chroma of at least c, by default
0.04, which off-whites and near-greys don't.
Whether the colour `x` has an OKLCH chroma of at least `c`, by default 0.04, which off-whites and near-greys don't.
(first-with-contrast xs background r)The first colour of xs whose contrast ratio with the background is at
least r, or nil. WCAG 2.2 asks for 3 for a control.
The first colour of `xs` whose contrast ratio with the `background` is at least `r`, or nil. WCAG 2.2 asks for 3 for a control.
(most-contrast xs background)The colour of xs that contrasts most with the background.
The colour of `xs` that contrasts most with the `background`.
(seed palette)The first chromatic colour of the palette, which lists the most common
first, to derive the colours of a UI from, or nil where every colour is
about grey.
The first chromatic colour of the `palette`, which lists the most common first, to derive the colours of a UI from, or nil where every colour is about grey.
(spread xs d)The colours of xs that differ by a ΔEOK of at least d from every
colour kept before them, e.g. 0.1 for colours that are clearly apart.
The colours of `xs` that differ by a ΔEOK of at least `d` from every colour kept before them, e.g. 0.1 for colours that are clearly apart.
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 |