Skip to main content

Module style_helpers

Module style_helpers 

Source
Expand description

Re-exports from vtcode-commons for backward compatibility.

Structs§

ColorPalette
Standard color palette with semantic names
DiffColorPalette
Diff color palette for consistent git diff styling Uses standard ANSI colors without bold for accessibility and consistency.
Styles
Style presets for consistent UI theming.

Enums§

DiffColorLevel
Terminal color capability level for palette selection.
DiffTheme
Terminal background theme for diff rendering.

Functions§

bold_color
Create a bold colored style from AnsiColor
diff_add_bg
Get background color for addition lines based on theme and color level.
diff_add_word_bg
Stronger addition-chip background for word-level (intra-line) highlights.
diff_del_bg
Get background color for deletion lines based on theme and color level.
diff_del_word_bg
Stronger deletion-chip background for word-level (intra-line) highlights.
diff_gutter_bg_add_light
Get gutter background color for addition lines in light theme.
diff_gutter_bg_del_light
Get gutter background color for deletion lines in light theme.
diff_gutter_fg_light
Legacy light-theme gutter foreground retained for compatibility.
diff_hunk_bg
Get background color for hunk header (@@ -old +new @@) lines.
dimmed_color
Create a dimmed colored style from AnsiColor
render_styled
Render text with a single color and optional effects
style_from_color_name
Build style from CSS/terminal color name