Expand description
Layout presets. A layout controls typography — heading hierarchy, section decoration, vertical rhythm — independently of the color theme.
Two presets ship:
minimal(default): understated. H1 = bold + thin rule underneath; H2–H6 differ only by weight and dim. Best for long prose where you want the text, not the chrome, to do the work.vivid: leans hard on hierarchy. H1 is ALL-CAPS, banded by heavy rules above and below. H2 is prefixed with§, H3 with▸, H4 with›. Indentation grows slightly at H4/H5/H6. Best for reference docs where you’re scanning for section boundaries.
Structs§
- Heading
Decor - Decorations a layout wants drawn around a heading. The renderer consumes
these to produce the actual
Lines; this indirection keeps the render pipeline a dumb consumer of layout-specific choices. - Rule
Spec - A full-width horizontal rule: a single repeat character plus the style used to color it.
Enums§
- Layout
Name - Name of a typographic layout preset. Toggle at runtime with
L.
Functions§
- decorate_
heading - Look up heading decorations for the given layout, level (1–6), and
theme. The returned
HeadingDecorfully describes the visual treatment; the renderer only has to execute it.