enum

Hwaro::Logger::Role

Inherits Enum / Comparable / Value / Object

Semantic color roles for the unified "ember" terminal identity. Each role resolves to a truecolor RGB (when COLORTERM advertises it), a 256-color approximation (when TERM advertises 256 colors), a 16-color named fallback, or raw text when color is disabled. This is the single source of truth for brand color — callers name a role, never a raw colorize symbol, so the palette stays consistent across commands.

The palette is the "hearth" set: one warm ember accent plus status colors picked to sit apart from it on the hue wheel — jade for success (never olive, which reads muddy), amber for warnings, a cold crimson for errors (so errors never blur into the ember accent), and a neutral ash gray for recessive text.

Constants

Accent = 0_u8
Success = 1_u8
Warn = 2_u8
Error = 3_u8
Dim = 4_u8
Heading = 5_u8
Plain = 6_u8

Instance methods

accent?

Returns true if this enum value equals Accent

Source
dim?

Returns true if this enum value equals Dim

Source
error?

Returns true if this enum value equals Error

Source
heading?

Returns true if this enum value equals Heading

Source
plain?

Returns true if this enum value equals Plain

Source
success?

Returns true if this enum value equals Success

Source
warn?

Returns true if this enum value equals Warn

Source