Themes

Complete themes

  • theme-bw - Black-and-white theme: white panel, black axes, light grey grid.
  • theme-classic - Classic theme: white panel, axis borders, no gridlines.
  • theme-dark - Dark theme: dark grey panel, white grid, dark axis text.
  • theme-grey - Grey theme: light grey panel with white gridlines.
  • theme-light - Light theme: light grey panel, white grid, soft grey axes.
  • theme-linedraw - Linedraw theme: white panel, strong black axes, very faint grid.
  • theme-minimal - Minimal theme: white panel, light grey gridlines, no axis lines.
  • theme-void - Void theme: no axes, no grid, no panel background.

Modify a theme

  • theme - Build a custom theme from per-element overrides.
  • theme-get - Get the current global default theme.
  • theme-set - Set the global default theme for all subsequent plots.

Sub-theme accessors

Theme elements

  • element-blank - Blank element: hides the corresponding theme element.
  • element-geom - Layer-default aesthetics shared across geoms.
  • element-line - Line element: colour and thickness.
  • element-rect - Rectangle element: fill and stroke.
  • element-text - Text element: font size, weight, colour, and angle.
  • element-typst - Typst-markup text element: same fields as element-text plus automatic Typst-markup evaluation for plain strings reaching this surface.
  • margin - Plot-margin specification: padding on each side of the plot canvas.
Back to top