Expand description
§rnk-style
Standalone terminal styling library for Rust.
Style your terminal output without the full TUI framework.
§Example
use rnk_style::{Style, Color, BorderStyle};
let style = Style::new()
.fg(Color::Cyan)
.bold()
.padding(1, 2)
.border(BorderStyle::Round);
println!("{}", style.render("Hello, World!"));Modules§
- adaptive_
colors - Convenience adaptive colors
Structs§
- Adaptive
Color - Adaptive color that depends on terminal background
- Style
- Style for terminal text rendering
Enums§
- Border
Style - Border style
- Color
- Color type supporting various color formats
Functions§
- detect_
background - Detect terminal background from environment
- init_
background_ detection - Initialize background detection
- is_
dark_ background - Check if the terminal has a dark background
- set_
dark_ background - Set whether the terminal has a dark background