Examples

The palette, as the stylesheet spends it.

The pastel brand in use across headings, code, callouts, tables, and quotes, on the site it themes.

This site is themed by the extension, so the page around you is the example. Switch between the light and dark schemes to see the relationship invert.

Headings

The headings on this page take the hues in turn. That is the stylesheet, not a class: nothing here is marked up for colour.

Callouts

Note

A note, tinted with one stick.

Tip

A tip, with another.

Warning

A warning, in the colour that carries that meaning.

Caution

A caution.

Important

And an important, which is where the strongest of them is spent.

Tables

Striped and hovered rows are tinted rather than greyed.
Stick Role
mint primary, so links and the active state
sky secondary and info
lemon tertiary, and the table header tint
sage success
peach warning
coral danger

Quotes

A blockquote takes a tint and a rule in the same family, rather than the default grey.

Code blocks

analysis.R
x <- seq_len(10)
mean(x)

The window chrome is code-window; the colours in it are this brand.

The one rule, illustrated

A pastel on light paper measures between 1.20 and 1.65, which is why every coloured thing above is a fill or a tint, and every piece of text that sits on the paper uses a deep mix instead.

Dark mode inverts that: there the pastel is the ink, and the scheme is the more colourful of the two.

Source

The repository ships a short, standalone starting point you can copy: example.qmd.

Back to top