DalaDev.Tui.Theme (dala_dev v0.4.0)

Copy Markdown View Source

Color, style, and rich-text constants for the dala_dev TUI.

Provides a consistent visual palette. All functions are pure.

Summary

Functions

Border style based on focus state.

Branded header title.

Cornflower blue for focused borders.

Dala brand orange.

Dim span for descriptions.

Dim text style.

Focused panel border style.

Footer line with key hints.

Gold for highlights.

Gold text style.

Green for success/connected status.

Green text style.

Highlight style for selected items.

Key pill for footer/help.

Red for errors/disconnected status.

Red text style.

Section title.

Unfocused panel border style.

Functions

border_style(focused?)

@spec border_style(boolean()) :: ExRatatui.Style.t()

Border style based on focus state.

brand_title(breadcrumb)

@spec brand_title(String.t()) :: ExRatatui.Text.Line.t()

Branded header title.

cornflower()

@spec cornflower() :: ExRatatui.Style.color()

Cornflower blue for focused borders.

dala_orange()

@spec dala_orange() :: ExRatatui.Style.color()

Dala brand orange.

dim_span(text)

@spec dim_span(String.t()) :: ExRatatui.Text.Span.t()

Dim span for descriptions.

dim_text_style()

@spec dim_text_style() :: ExRatatui.Style.t()

Dim text style.

focused_border_style()

@spec focused_border_style() :: ExRatatui.Style.t()

Focused panel border style.

gold()

@spec gold() :: ExRatatui.Style.color()

Gold for highlights.

gold_style()

@spec gold_style() :: ExRatatui.Style.t()

Gold text style.

green()

@spec green() :: ExRatatui.Style.color()

Green for success/connected status.

green_style()

@spec green_style() :: ExRatatui.Style.t()

Green text style.

highlight_style()

@spec highlight_style() :: ExRatatui.Style.t()

Highlight style for selected items.

key_pill(label)

@spec key_pill(String.t()) :: ExRatatui.Text.Span.t()

Key pill for footer/help.

red()

@spec red() :: ExRatatui.Style.color()

Red for errors/disconnected status.

red_style()

@spec red_style() :: ExRatatui.Style.t()

Red text style.

section_title(content)

@spec section_title(String.t()) :: ExRatatui.Text.Line.t()

Section title.

unfocused_border_style()

@spec unfocused_border_style() :: ExRatatui.Style.t()

Unfocused panel border style.