Expand description
Compatibility facade for shared theme APIs.
Structs§
- Color
Accessibility Config - Color accessibility configuration loaded from vtcode.toml.
- Theme
Definition - Theme
Palette - Palette describing UI colors for the terminal experience.
- Theme
Styles - Styles computed from palette colors.
- Theme
Suite - Logical grouping of built-in themes.
- Theme
Validation Result - Theme validation result.
Constants§
- DEFAULT_
THEME_ ID - Identifier for the default theme.
Functions§
- active_
styles - Return a clone of the active style set.
- active_
theme_ id - Return the active theme identifier.
- active_
theme_ label - Return the active theme label.
- available_
theme_ suites - Return the built-in theme suites and their member theme identifiers.
- available_
themes - Return the list of built-in theme identifiers in sorted order.
- banner_
color - Return a readable accent color for banner-like copy.
- banner_
style - Return a bold banner style derived from the active theme.
- ensure_
theme - Validate that a theme exists and return its label.
- get_
active_ syntax_ theme - get_
minimum_ contrast - Return the currently configured minimum contrast ratio.
- get_
syntax_ theme_ for_ ui_ theme - Get the recommended syntax highlighting theme for a given UI theme.
- is_
bold_ bright_ mode - Report whether bold text should avoid terminal bright-color behavior.
- is_
light_ theme - Report whether a built-in theme should be treated as a light theme.
- is_
safe_ colors_ only - Report whether the UI should restrict itself to safe ANSI colors.
- logo_
accent_ color - Return the raw logo accent color from the active theme.
- rebuild_
active_ styles - Rebuild the active styles after accessibility settings change.
- resolve_
theme - Resolve a requested theme to a valid built-in identifier or the default.
- set_
active_ theme - Activate a built-in theme by identifier.
- set_
color_ accessibility_ config - Update the runtime color accessibility configuration.
- suggest_
theme_ for_ terminal - Suggest a built-in theme that matches the current terminal scheme.
- theme_
label - Return the display label for a built-in theme.
- theme_
matches_ terminal_ scheme - Report whether a theme matches the detected terminal light/dark scheme.
- theme_
suite_ id - Return the logical theme suite identifier for a built-in theme.
- theme_
suite_ label - Return the logical theme suite label for a built-in theme.
- validate_
theme_ contrast - Validate a theme’s base palette contrast ratios.