Expand description
Core types for Terminal Colors Architecture (TCA)
This crate provides the foundational type definitions used across the TCA ecosystem for theme representation and manipulation.
Modules§
- base24
- Parser for the flat key: “value” YAML subset used by Base16/24 scheme files.
Structs§
- Ansi
- ANSI 16-color definitions, derived from base24 slots per the TCA spec.
- Base24
Slots - The raw base24 color slots (base00–base17) as
#rrggbbhex strings. - Meta
- Theme metadata.
- Semantic
- Semantic color roles (TOML section
[semantic]). - TcaConfig
- TCA configuration file.
- Theme
- A complete TCA theme definition.
- Theme
Cursor - A cycling cursor over a list of themes of type
T. - Ui
- UI element colors (TOML section
[ui]with nested sub-tables). - UiBg
- Background colors (nested under
[ui.bg]). - UiBorder
- Border colors (nested under
[ui.border]). - UiCursor
- Cursor colors (nested under
[ui.cursor]). - UiFg
- Foreground colors (nested under
[ui.fg]). - UiSelection
- Selection colors (nested under
[ui.selection]).
Enums§
- Builtin
Theme - Enum of built in themes.
- HexColor
Error - Errors that can occur when parsing a hex color string.
Functions§
- all_
from_ dir - Get all themes from a given directory.
- all_
themes - Get a vec of all available themes.
- all_
user_ themes - Get all local user themes.
- hex_
to_ rgb - Convert a hex color string to RGB components.
- load_
theme_ file - Finds a theme file by exact path or theme name and reads it into a String.
- user_
themes_ path - Get the themes directory path, creating it if it does not exist.