rnk_style/lib.rs
1//! # rnk-style
2//!
3//! Standalone terminal styling library for Rust.
4//!
5//! Style your terminal output without the full TUI framework.
6//!
7//! ## Example
8//!
9//! ```
10//! use rnk_style::{Style, Color, BorderStyle};
11//!
12//! let style = Style::new()
13//! .fg(Color::Cyan)
14//! .bold()
15//! .padding(1, 2)
16//! .border(BorderStyle::Round);
17//!
18//! println!("{}", style.render("Hello, World!"));
19//! ```
20
21mod render;
22mod style;
23
24pub use rnk_style_core::{
25 AdaptiveColor, BorderStyle, Color, adaptive_colors, detect_background,
26 init_background_detection, is_dark_background, set_dark_background,
27};
28pub use style::Style;