Style YAML reference
The accepted style leaves and their value grammar, generated from the loader.
Start with styles and your brand for a small working override. This page lists the author-settable leaves from the same grammar that validates style files. Internal layout mechanics are excluded.
How the cascade works
Source styles is an ordered list. Later leaves win and lists replace lists. A list containing only local files starts from the default builtin. CLI --style supplies a replacement list for that call; repeat it to choose a builtin and then a file. A chart’s explicit local style takes priority over inherited chart defaults.
Safe leaves are the normal customization surface. Experimental leaves apply but emit style.experimental; inspect the result at the widths you intend to share. Unknown leaves report style.unknown-key, invalid values report style.schema, and attempts to change internal page mechanics report style.internal. A bad leaf is skipped while the rest of the file applies. YAML parse failures still need repair.
Use OKLCH for colour authoring. Font stacks name bundled families, or a font setting names a family and a local WOFF2 file. This interface accepts validated data, not arbitrary CSS or JavaScript.
Safe leaves
| Path | Accepted value |
|---|---|
tokens. | CSS colour, preferably OKLCH — Page surface |
tokens. | CSS colour, preferably OKLCH — Raised surface: code, readout |
tokens. | CSS colour, preferably OKLCH — Chart surface |
tokens. | CSS colour, preferably OKLCH — Text |
tokens. | CSS colour, preferably OKLCH — Secondary text |
tokens. | CSS colour, preferably OKLCH — Ticks and leaders; never text |
tokens. | CSS colour, preferably OKLCH — Axis text and the baseline |
tokens. | CSS colour, preferably OKLCH — Rules and hairlines |
tokens. | CSS colour, preferably OKLCH — Gridlines |
tokens. | CSS colour, preferably OKLCH — The one accent: marks, rules, focus rings |
tokens. | CSS colour, preferably OKLCH — Band and brush fills |
tokens. | CSS colour, preferably OKLCH — Links and the table’s row summary |
tokens. | CSS colour, preferably OKLCH — The style’s shade of the brand blue, for the wordmark |
tokens. | CSS colour, preferably OKLCH — Rising delta and callout title |
tokens. | CSS colour, preferably OKLCH — Falling delta and callout title |
tokens. | CSS colour, preferably OKLCH — Hold callout title |
tokens. | Font family stack — A font stack; the first family must be bundled or declared |
tokens. | Font family stack — A font stack; the first family must be bundled or declared |
tokens. | Font family stack — A font stack; the first family must be bundled or declared |
tokens. | Font family stack — A font stack; the first family must be bundled or declared |
tokens. | Nonnegative number or length — Small corners: inline code, the readout |
tokens. | Nonnegative number or length — Medium corners: images, embeds, code |
tokens. | none or x, y, blur and colour — The shadow of floating elements |
tokens. | light, dark — The colour scheme the page colours make |
tokens. | Builtin style name — The light builtin a dark style prints as |
tokens. | Number from 0.5 to 2 — Space inside blocks, as a multiplier |
tokens. | Nonnegative number or length — Space between blocks and before sections |
tokens. | Nonnegative number or length — The block gap on phones |
motion. | true or false — false renders charts settled |
motion. | still, restrained, gentle, playful, crisp — The style’s motion in one word; the blocks, charts and controls follow it |
motion. | Number from 0 to 2000 — How long a block or a chart’s data takes to arrive, in ms |
motion. | standard, out, soft, spring, snap — The curve of that arrival |
motion. | Number from 0 to 120 — The gap between marks that arrive one after another, in ms |
motion. | none, fade, fade-up — How blocks below the first screen arrive |
motion. | Number from 0 to 40 — How far a fade-up block rises, in px |
components. | italic, normal — The line under the title |
components. | Nonnegative number or length — The callout rule’s weight |
components. | Nonnegative number or length — The bar above the header |
components. | Nonnegative number or length — The bar below the header |
components. | hairline, pencil — Hairline or pencil rules |
components. | none, uppercase — Letter case |
components. | Font weight, 1–1000 or a weight name — Font weight |
components. | normal or signed length — Tracking |
components. | display, text, ui, mono — Which face role it uses |
components. | none, uppercase — Letter case |
components. | Font weight, 1–1000 or a weight name — Font weight |
components. | normal or signed length — Tracking |
components. | display, text, ui, mono — Which face role it uses |
components. | none, uppercase — Letter case |
components. | Font weight, 1–1000 or a weight name — Font weight |
components. | normal or signed length — Tracking |
components. | display, text, ui, mono — Which face role it uses |
components. | none, uppercase — Letter case |
components. | Font weight, 1–1000 or a weight name — Font weight |
components. | normal or signed length — Tracking |
components. | display, text, ui, mono — Which face role it uses |
components. | none, shaded, outline, rule-above — How a chart’s figure is framed: nothing, a shaded panel, an outline or a rule above |
components. | above, below — Where the chart title sits relative to the plot |
components. | above, below, below-boxed — Where the chart description sits: above the plot, below it, or below it in a box |
chart. | Builtin palette or 1–8 colours — Series colours |
chart. | Exactly 3 colours — Sequential ramp, low to high |
chart. | Exactly 3 colours — Ramp for negative heatmap values |
chart. | Font family stack — Face of all chart lettering |
chart. | Font family stack — Tabular-figure face of ticks and readout values |
chart. | Number from 0 to 64 — Rounding of bar ends |
chart. | true or false — Hatches and dashes that stand in for colour |
chart. | linear, monotone, step, step_, step_ — Default line curve |
chart. | Number from 0 to 1 — How strongly a curve bends |
chart. | none, hatch — How negative heatmap cells show their sign beyond colour |
chart. | top, bottom — Where the legend sits |
chart. | straight, monotone, current — Line smoothing (replaced by curve) |
density | comfortable, loose, airmax — Space inside blocks: x1, x1.25, x1.5 |
block-gap | regular, tight, wide — Space between blocks: 4, 3 or 5 rem |
type-size | large, small, bigger — The whole type scale x1, x0.9, x1.1 |
accent | CSS colour, preferably OKLCH — The accent, first series and links |
palette | Builtin palette or 1–8 colours — Series colours |
company. | Opaque colour — The company’s primary colour |
company. | Opaque colour — An optional second brand colour |
company. | Builtin style name — The builtin style underneath the brand |
motion | on, off — off renders every chart settled |
colophon | show, hide — The ‘Made with RichView’ line |
fonts. | Bundled font stack or {family, file} with local WOFF2 — A bundled family or a brand font file |
fonts. | Bundled font stack or {family, file} with local WOFF2 — A bundled family or a brand font file |
fonts. | Bundled font stack or {family, file} with local WOFF2 — A bundled family or a brand font file |
fonts. | Bundled font stack or {family, file} with local WOFF2 — A bundled family or a brand font file |
Experimental leaves
| Path | Accepted value |
|---|---|
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — One step of the type scale; type-size scales the whole scale |
tokens. | Nonnegative number or length — Line height of body text |
components. | rule, bracket, knockout, underline — How a metric is framed |
components. | none, hairline, ink-bars, pencil — The structural mark of the story’s link-preview thumbnail |
components. | rule, bracket — A callout under a rule, or beside a bracket |
company. | Non-empty company name — The company name |
company. | Report-relative image file — A report-relative raster logo |
company. | Report-relative image file — An optional logo for dark styles |