Documentation

    Hosted installer: at launch

    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

    PathAccepted value
    tokens.bgCSS colour, preferably OKLCH — Page surface
    tokens.bg-elevCSS colour, preferably OKLCH — Raised surface: code, readout
    tokens.bg-chartCSS colour, preferably OKLCH — Chart surface
    tokens.inkCSS colour, preferably OKLCH — Text
    tokens.ink-softCSS colour, preferably OKLCH — Secondary text
    tokens.ink-faintCSS colour, preferably OKLCH — Ticks and leaders; never text
    tokens.chart-inkCSS colour, preferably OKLCH — Axis text and the baseline
    tokens.ruleCSS colour, preferably OKLCH — Rules and hairlines
    tokens.rule-softCSS colour, preferably OKLCH — Gridlines
    tokens.accentCSS colour, preferably OKLCH — The one accent: marks, rules, focus rings
    tokens.accent-softCSS colour, preferably OKLCH — Band and brush fills
    tokens.linkCSS colour, preferably OKLCH — Links and the table’s row summary
    tokens.brandCSS colour, preferably OKLCH — The style’s shade of the brand blue, for the wordmark
    tokens.upCSS colour, preferably OKLCH — Rising delta and callout title
    tokens.downCSS colour, preferably OKLCH — Falling delta and callout title
    tokens.holdCSS colour, preferably OKLCH — Hold callout title
    tokens.font-displayFont family stack — A font stack; the first family must be bundled or declared
    tokens.font-textFont family stack — A font stack; the first family must be bundled or declared
    tokens.font-uiFont family stack — A font stack; the first family must be bundled or declared
    tokens.font-monoFont family stack — A font stack; the first family must be bundled or declared
    tokens.radius-sNonnegative number or length — Small corners: inline code, the readout
    tokens.radius-mNonnegative number or length — Medium corners: images, embeds, code
    tokens.shadow-floatnone or x, y, blur and colour — The shadow of floating elements
    tokens.schemelight, dark — The colour scheme the page colours make
    tokens.print-asBuiltin style name — The light builtin a dark style prints as
    tokens.densityNumber from 0.5 to 2 — Space inside blocks, as a multiplier
    tokens.block-gapNonnegative number or length — Space between blocks and before sections
    tokens.block-gap-phoneNonnegative number or length — The block gap on phones
    motion.enabledtrue or false — false renders charts settled
    motion.characterstill, restrained, gentle, playful, crisp — The style’s motion in one word; the blocks, charts and controls follow it
    motion.durationNumber from 0 to 2000 — How long a block or a chart’s data takes to arrive, in ms
    motion.easingstandard, out, soft, spring, snap — The curve of that arrival
    motion.staggerNumber from 0 to 120 — The gap between marks that arrive one after another, in ms
    motion.block-entrancenone, fade, fade-up — How blocks below the first screen arrive
    motion.distanceNumber from 0 to 40 — How far a fade-up block rises, in px
    components.deck.styleitalic, normal — The line under the title
    components.callout.border-widthNonnegative number or length — The callout rule’s weight
    components.header.border-topNonnegative number or length — The bar above the header
    components.header.border-bottomNonnegative number or length — The bar below the header
    components.rules.stylehairline, pencil — Hairline or pencil rules
    components.title.transformnone, uppercase — Letter case
    components.title.weightFont weight, 1–1000 or a weight name — Font weight
    components.title.letter-spacingnormal or signed length — Tracking
    components.title.fontdisplay, text, ui, mono — Which face role it uses
    components.heading.transformnone, uppercase — Letter case
    components.heading.weightFont weight, 1–1000 or a weight name — Font weight
    components.heading.letter-spacingnormal or signed length — Tracking
    components.heading.fontdisplay, text, ui, mono — Which face role it uses
    components.table-head.transformnone, uppercase — Letter case
    components.table-head.weightFont weight, 1–1000 or a weight name — Font weight
    components.table-head.letter-spacingnormal or signed length — Tracking
    components.table-head.fontdisplay, text, ui, mono — Which face role it uses
    components.source-label.transformnone, uppercase — Letter case
    components.source-label.weightFont weight, 1–1000 or a weight name — Font weight
    components.source-label.letter-spacingnormal or signed length — Tracking
    components.source-label.fontdisplay, text, ui, mono — Which face role it uses
    components.figure.framenone, shaded, outline, rule-above — How a chart’s figure is framed: nothing, a shaded panel, an outline or a rule above
    components.figure.titleabove, below — Where the chart title sits relative to the plot
    components.figure.descriptionabove, below, below-boxed — Where the chart description sits: above the plot, below it, or below it in a box
    chart.paletteBuiltin palette or 1–8 colours — Series colours
    chart.rampExactly 3 colours — Sequential ramp, low to high
    chart.negative-rampExactly 3 colours — Ramp for negative heatmap values
    chart.font-familyFont family stack — Face of all chart lettering
    chart.font-numericFont family stack — Tabular-figure face of ticks and readout values
    chart.bar-radiusNumber from 0 to 64 — Rounding of bar ends
    chart.decalstrue or false — Hatches and dashes that stand in for colour
    chart.curvelinear, monotone, step, step_before, step_after — Default line curve
    chart.curvatureNumber from 0 to 1 — How strongly a curve bends
    chart.sign-cuenone, hatch — How negative heatmap cells show their sign beyond colour
    chart.legendtop, bottom — Where the legend sits
    chart.line.smoothingstraight, monotone, current — Line smoothing (replaced by curve)
    densitycomfortable, loose, airmax — Space inside blocks: x1, x1.25, x1.5
    block-gapregular, tight, wide — Space between blocks: 4, 3 or 5 rem
    type-sizelarge, small, bigger — The whole type scale x1, x0.9, x1.1
    accentCSS colour, preferably OKLCH — The accent, first series and links
    paletteBuiltin palette or 1–8 colours — Series colours
    company.colorOpaque colour — The company’s primary colour
    company.secondaryOpaque colour — An optional second brand colour
    company.baseBuiltin style name — The builtin style underneath the brand
    motionon, off — off renders every chart settled
    colophonshow, hide — The ‘Made with RichView’ line
    fonts.displayBundled font stack or {family, file} with local WOFF2 — A bundled family or a brand font file
    fonts.textBundled font stack or {family, file} with local WOFF2 — A bundled family or a brand font file
    fonts.uiBundled font stack or {family, file} with local WOFF2 — A bundled family or a brand font file
    fonts.monoBundled font stack or {family, file} with local WOFF2 — A bundled family or a brand font file

    Experimental leaves

    PathAccepted value
    tokens.size-smallNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-small-phoneNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-baseNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-base-phoneNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-h3Nonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-h3-phoneNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-h2Nonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-h2-phoneNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-h1Nonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-h1-phoneNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-displayNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.size-display-phoneNonnegative number or length — One step of the type scale; type-size scales the whole scale
    tokens.line-baseNonnegative number or length — Line height of body text
    components.metric.stylerule, bracket, knockout, underline — How a metric is framed
    components.thumbnail.rulenone, hairline, ink-bars, pencil — The structural mark of the story’s link-preview thumbnail
    components.callout.stylerule, bracket — A callout under a rule, or beside a bracket
    company.nameNon-empty company name — The company name
    Report-relative image file — A report-relative raster logo
    company.logo-darkReport-relative image file — An optional logo for dark styles
    Was this page useful? Suggest an edit