Skip to main content

tca_types/
lib.rs

1//! Core types for Terminal Colors Architecture (TCA)
2//!
3//! This crate provides the foundational type definitions used across
4//! the TCA ecosystem for theme representation and manipulation.
5
6#![warn(missing_docs)]
7
8pub mod base24;
9mod builtin;
10mod cursor;
11mod theme;
12mod util;
13
14pub use builtin::BuiltinTheme;
15pub use cursor::ThemeCursor;
16pub use theme::{
17    hex_to_rgb, Ansi, Base24Slots, HexColorError, Meta, Semantic, Theme, Ui, UiBg, UiBorder,
18    UiCursor, UiFg, UiSelection,
19};
20
21#[cfg(feature = "fs")]
22mod config;
23#[cfg(feature = "fs")]
24pub use config::TcaConfig;
25#[cfg(feature = "fs")]
26pub use util::{all_from_dir, all_themes, all_user_themes, load_theme_file, user_themes_path};