Skip to main content

Module presets

Module presets 

Source
Expand description

Curated WispTextStyle presets for common screen-recording captions (M-TEXT.12 / AUT-86).

Each preset is a const fn returning a WispTextStyle — no allocation, no GPU dependency. Pick one with TextPreset::style or by calling the named accessor directly.

Presets are tuned for a 16:9 export at the storybook default viewport (256×256 / 640×360). Resize them by chaining WispTextStyle::with_size if you need a different scale.

Enums§

TextPreset
Named text style — pick one and .style() to a WispTextStyle.

Functions§

callout
Callout — italic, medium-bold, tighter spacing.
caption
Body caption — left-aligned, medium weight, ample line height.
keyboard_shortcut
Keyboard shortcut chip — small, tight, monospace-feel.
section_title
Headline style — large, bold, centered.
step_badge
Step / hint badge — bold, tight, slightly wider spacing.
warning_privacy_label
Warning / privacy label — bold, wide spacing, signal-red.
watermark
Watermark — small, italic, low-contrast.