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 - Get the current styles cloned from the active theme.
- active_
theme_ id - Get the identifier of the active theme.
- active_
theme_ label - Get the human-readable label of the active theme.
- available_
theme_ suites - Enumerate built-in theme suites and their member theme ids.
- available_
themes - Enumerate available theme identifiers.
- banner_
color - Slightly adjusted accent color for banner-like copy.
- banner_
style - Slightly darkened accent style for banner-like copy.
- ensure_
theme - Validate a theme and return its label for messaging.
- get_
active_ syntax_ theme - Get the recommended syntax highlighting theme for the currently active UI theme.
Convenience wrapper around
get_syntax_theme_for_ui_theme. - get_
minimum_ contrast - Get the current minimum contrast ratio setting.
- get_
syntax_ theme_ for_ ui_ theme - Get the recommended syntax highlighting theme for a given UI theme. This ensures that code highlighting colors complement the UI theme’s background. Based on: https://github.com/openai/codex/pull/11447, https://github.com/openai/codex/pull/12581
- is_
bold_ bright_ mode - Check if bold-is-bright compatibility mode is enabled.
- is_
light_ theme - Determine if a theme is a light theme based on its background luminance.
- is_
safe_ colors_ only - Check if safe colors only mode is enabled.
- logo_
accent_ color - Accent color for the startup banner logo.
- rebuild_
active_ styles - Rebuild the active theme’s styles with current accessibility settings. Call this after updating color accessibility configuration.
- resolve_
theme - Resolve a theme identifier from configuration or CLI input.
- set_
active_ theme - Set the active theme by identifier.
- set_
color_ accessibility_ config - Update the global color accessibility configuration. Call this after loading vtcode.toml to apply user preferences.
- suggest_
theme_ for_ terminal - Get a suggested theme based on terminal color scheme detection. Returns a light or dark theme depending on detected terminal background.
- theme_
label - Look up a theme label for display.
- theme_
matches_ terminal_ scheme - Check if a theme is suitable for the detected terminal color scheme. Returns true if the theme matches (light theme for light terminal, dark for dark).
- theme_
suite_ id - Resolve the suite identifier for a theme id.
- theme_
suite_ label - Resolve the suite label for a theme id.
- validate_
theme_ contrast - Validate a theme’s color contrast ratios. Returns warnings for colors that don’t meet WCAG AA standards.