max / alloy_tui
| 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 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | pub use AlloyConnector; |
| 30 | pub use Cursor; |
| 31 | pub use FocusRing; |
| 32 | pub use ; |
| 33 | pub use ; |
| 34 | pub use ; |
| 35 | pub use ; |
| 36 | pub use *; |
| 37 |