Module Hugin.Theme
Visual themes.
Visual themes.
A theme controls every non-data visual element: background color, typography, axes, grid, spacing, and default data palettes.
Themes separate two orthogonal concerns: style (aesthetic appearance) and context (scaling for the output medium). The paper, notebook, talk, and poster functions adjust scale_factor to uniformly scale all visual elements for the target medium.
Types
The type for font specifications. size is in points before scale_factor is applied.
The type for line styles. dash is a list of on/off lengths; empty means solid.
type t = {background : Color.t;palette : Color.t array;sequential : Cmap.t;diverging : Cmap.t;font_title : font;font_label : font;font_tick : font;axis : line;grid : line option;tick_length : float;padding : float;title_gap : float;label_gap : float;scale_factor : float;line_width : float;marker_size : float;
}The type for themes. All dimensional values (font sizes, line widths, gaps) are multiplied by scale_factor at render time.
Predefined themes
val default : tdefault is a light theme with subtle grid, Okabe-Ito categorical palette, and Tufte-informed defaults.
val dark : tdark is a dark-background theme.
val minimal : tminimal is a theme with no grid and thin axes.