Skip to main content

Module cli_style

Module cli_style 

Source
Expand description

CLI output discipline for Vela.

The rules:

  • Signal blue (#3B5BDB) is reserved for live state — the current step of a running audit or the active cursor. It is never used for success.
  • State chips use a muted engraved palette derived from ink, not a traffic-light green/red: moss for ok, brass for contested, dust for stale, madder for lost.
  • · (middle dot) is the only decorative separator.
  • Banners are a dim tick row and a mono eyebrow, never === or ---.
  • All ANSI is gated on a TTY stdout and NO_COLOR being unset.

Every styled string in cli.rs should route through a helper here so the discipline is enforced in one place.

Constants§

BRASS
DUST
MADDER
MOSS
SIGNAL

Functions§

brass
chip
Engraved state chip: · label in the state color. Lowercase, mono-ish.
dim
dust_color
err_prefix
An error prefix — err · in madder, lowercase.
header
A header block: dim mono eyebrow, bold title, dim tick row.
init
Initialize styling. Call once near the CLI entry point.
live
Signal-blue chip — reserved for live state only.
lost
madder
mono_eyebrow
moss
ok
progress_style
Progress-bar style for long-running work.
signal
stale
tick_row
A tick row — dim · characters of a given visual width.
warn