Expand description
§Lacquer
Style definitions for gorgeous terminal layouts.
Lacquer is the Rust equivalent of lipgloss from Charmbracelet. It provides a declarative way to style and layout terminal output.
§Quick Start
use lacquer::{Style, Border, Position, Color};
let style = Style::new()
.padding(1, 2)
.border(Border::Rounded)
.foreground(Color::from_hex("#F97316"))
.bold();
println!("{}", style.render("Hello, Lacquer!"));§Features
- Box Model: Padding, margin, width, height constraints
- Borders: Multiple styles with per-side customization
- Colors: Full RGB/Hex support via sigil
- Layout: Horizontal/vertical joining, alignment
- Brand Integration: Optional molten_brand color support
Modules§
- prelude
- Prelude module for convenient imports.
Structs§
- Border
Style - Custom border characters.
- Style
- A style definition for rendering terminal content.