返回 CodeWhale
lib.rs
根目录 / crates / palette / src / lib.rs
1 //! Codewhale color palette and semantic roles.
2 //!
3 //! This crate defines the color system for the TUI in three layers:
4 //!
5 //! 1. **RGB tuples** (`*_RGB` constants) — raw color values used by theme
6 //! generation and runtime palette construction.
7 //! 2. **Semantic `Color` constants** — pre-computed `ratatui::style::Color`
8 //! values mapped to UI roles (surface, text, accent, status, mode).
9 //! 3. **Backward-compatible aliases** (`DEEPSEEK_*`) — legacy names that
10 //! delegate to the current Whale palette constants.
11
12 mod adapt;
13 mod contrast;
14 mod detect;
15 pub mod grammar;
16 pub mod osc11;
17 mod themes;
18 mod tokens;
19 mod user_theme;
20
21 #[cfg(test)]
22 mod tests;
23
24 #[allow(unused_imports)]
25 pub use adapt::*;
26 #[allow(unused_imports)]
27 pub use contrast::*;
28 #[allow(unused_imports)]
29 pub use detect::*;
30 #[allow(unused_imports)]
31 pub use grammar::{ChromeInk, SemanticFamily, chrome_style};
32 #[allow(unused_imports)]
33 pub use osc11::*;
34 #[allow(unused_imports)]
35 pub use themes::*;
36 pub use tokens::*;
37 pub use user_theme::*;
38
38 lines RUST