theming: Token-Based Theming

themingR Documentation

Token-Based Theming

Description

A theme is set with design tokens: a small set of named values (font, colours, spacing, sizes) that cascade through the whole plot, much like CSS custom properties.

Details

Tokens cascade: setting bg changes the background, but also automatically adjusts text color for contrast, grid line opacity, and tooltip styling. You override only what you want; everything else adapts.


glyph documentation built on Oct. 21, 2026, 5:12 p.m.