Add ratatui, crossterm, and tui-textarea as optional dependencies behind the `tui` feature flag. Create the `src/tui/` module with ActiveTab enum, TuiApp struct with event loop, and placeholder tab renderers. Wire up the `zeroclaw tui` CLI subcommand (cfg-gated) in main.rs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
847 B
Rust
34 lines
847 B
Rust
//! ZeroClaw TUI color theme (Lobster palette).
|
|
|
|
use ratatui::style::Color;
|
|
|
|
/// Primary accent color (lobster red)
|
|
pub const ACCENT: Color = Color::Rgb(220, 50, 47);
|
|
|
|
/// Secondary accent
|
|
pub const ACCENT_SECONDARY: Color = Color::Rgb(38, 139, 210);
|
|
|
|
/// Success / healthy
|
|
pub const SUCCESS: Color = Color::Rgb(133, 153, 0);
|
|
|
|
/// Warning
|
|
pub const WARNING: Color = Color::Rgb(181, 137, 0);
|
|
|
|
/// Error / danger
|
|
pub const ERROR: Color = Color::Rgb(220, 50, 47);
|
|
|
|
/// Primary foreground
|
|
pub const FG: Color = Color::Rgb(253, 246, 227);
|
|
|
|
/// Dimmed foreground
|
|
pub const FG_DIM: Color = Color::Rgb(147, 161, 161);
|
|
|
|
/// Primary background
|
|
pub const BG: Color = Color::Rgb(0, 43, 54);
|
|
|
|
/// Surface (slightly lighter than background)
|
|
pub const SURFACE: Color = Color::Rgb(7, 54, 66);
|
|
|
|
/// Border color
|
|
pub const BORDER: Color = Color::Rgb(88, 110, 117);
|