Skip to main content

max / alloy_tui

1.3 KB · 37 lines History Blame Raw
1 //! Alloy design system for ratatui.
2 //!
3 //! Consumes makeover `.toml` themes (the same schema every make-family app
4 //! reads) and renders them as ratatui `Color` / `Style`. Two Alloy-specific
5 //! tokens (`border-subtle`, `border-strong`) are derived locally so theme
6 //! files stay minimal — see `docs/TOKENS.md` for the storage format and
7 //! derivation math, `docs/CONSOLE.md` for the widget roster this crate
8 //! targets, and `docs/DESIGN-LANGUAGE.md` for the color-is-information rule
9 //! enforced here: chrome is tinted-greyscale, accents live on text via
10 //! `Severity`.
11 //!
12 //! Beyond the widgets, the crate carries the two things ratatui leaves to the
13 //! app and every Alloy TUI must agree on: the reserved keymap ([`keys`]) and
14 //! the focus ring ([`focus`]). Both descend from mountaineer-sysop's
15 //! `sysop-tui`, retinted from a const palette to the runtime [`Theme`].
16 //!
17 //! <!-- wiki: alloy-console -->
18
19 pub mod connector;
20 pub mod cursor;
21 pub mod focus;
22 pub mod keys;
23 pub mod layout;
24 pub mod selection;
25 pub mod text;
26 pub mod theme;
27 pub mod widgets;
28
29 pub use connector::AlloyConnector;
30 pub use cursor::Cursor;
31 pub use focus::FocusRing;
32 pub use keys::{Action, classify};
33 pub use layout::{ConsoleAreas, PaneAreas, console, panes};
34 pub use selection::{MARKER, selected_style};
35 pub use theme::{Mode, Theme, ThemeError};
36 pub use widgets::*;
37