class RatatuiRuby::Style

Defines colors and text modifiers.

The terminal is traditionally monochrome, but efficient interfaces use color to convey meaning. Red for errors. Green for success. Bold for headers.

This value object encapsulates those choices. It applies foreground and background colors. It adds effects like italics or blinking.

Use it to theme your application or highlight critical data.

Examples

# Standard colors
Style.new(fg: :red, bg: :white, modifiers: [:bold])

# Hex colors
Style.new(fg: "#ff00ff")