//! Alloy design system for ratatui. //! //! Consumes makeover `.toml` themes (the same schema every make-family app //! reads) and renders them as ratatui `Color` / `Style`. Two Alloy-specific //! tokens (`border-subtle`, `border-strong`) are derived locally so theme //! files stay minimal — see `docs/TOKENS.md` for the storage format and //! derivation math, `docs/CONSOLE.md` for the widget roster this crate //! targets, and `docs/DESIGN-LANGUAGE.md` for the color-is-information rule //! enforced here: chrome is tinted-greyscale, accents live on text via //! `Severity`. //! //! Beyond the widgets, the crate carries the two things ratatui leaves to the //! app and every Alloy TUI must agree on: the reserved keymap ([`keys`]) and //! the focus ring ([`focus`]). Both descend from mountaineer-sysop's //! `sysop-tui`, retinted from a const palette to the runtime [`Theme`]. //! //! pub mod connector; pub mod cursor; pub mod focus; pub mod input; pub mod keys; pub mod layout; pub mod selection; pub mod text; pub mod theme; pub mod widgets; pub use connector::AlloyConnector; pub use cursor::Cursor; pub use focus::FocusRing; pub use input::TextField; pub use keys::{Action, classify}; pub use layout::{ConsoleAreas, PaneAreas, console, panes}; pub use selection::{MARKER, selected_style}; pub use theme::{ColorDepth, Mode, Theme, ThemeError, detect_color_depth}; pub use widgets::*;