Skip to main content

Module style

Module style 

Source
Expand description

Renderer style primitives.

CellStyle and Span are renderer-owned because wrapping, padding, truncation, cursor calculation, and snapshots operate on them directly. Color is Crossterm’s color type; keeping a separate mirror enum adds conversion code without buying backend independence today.

Structs§

CellStyle
Style attributes applied to a cell’s text and background.
Palette
Theme palette expressed in renderer-native colors.
Span
A styled run of text.

Enums§

Color
Represents a color.

Constants§

CATPPUCCIN_MOCHA
ELDRITCH_MINIMAL
ICEBERG_DARK

Functions§

palette
set_theme
spinner_frame
spinner_tick
Convert UI ticks to a spinner frame that advances about every 66 milliseconds.
status_color
status_icon