Skip to main content

Module styling

Module styling 

Source
Expand description

Unified message styles and their logical mappings

Re-exports§

pub use crate::diff_theme::DiffColorLevel;
pub use crate::diff_theme::DiffTheme;
pub use crate::diff_theme::diff_add_bg;
pub use crate::diff_theme::diff_del_bg;
pub use crate::diff_theme::diff_gutter_bg_add_light;
pub use crate::diff_theme::diff_gutter_bg_del_light;
pub use crate::diff_theme::diff_gutter_fg_light;

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.

Functions§

bold_color
Create a bold colored style from AnsiColor
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