| Crates.io | beautify |
| lib.rs | beautify |
| version | 0.2.0 |
| created_at | 2025-01-19 08:08:21.36391+00 |
| updated_at | 2025-02-04 11:14:50.825139+00 |
| description | beautify your terminal |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1522659 |
| size | 48,130 |
A simple Rust crate for beautifying your terminal output with colors, gradients, and text effects with more then 300 methods.
cargo add beautify
use beautify::Colors;
// Basic colors
println!("{}", "Hello".text_blue());
println!("{}", "World".bg_red());
// Accent colors (with shades 50-950)
println!("{}", "Modern".text_blue_600());
println!("{}", "Design".bg_purple_200());
// Multiple styles
println!("{}", "Stylish Text".text_pink_400().bg_black());
use beautify::Colors;
// Text gradients
println!("{}", "Rainbow Text".text_gradient(&["#ff0000", "#00ff00", "#0000ff"]));
// Background gradients
println!("{}", "Sunset".bg_gradient(&["#ff7e5f", "#feb47b"]));
use beautify::Colors;
// Basic formatting
println!("{}", "Bold Text".bold());
println!("{}", "Italic Text".italic());
println!("{}", "Underlined".underline());
// Animations
println!("{}", "Blinking".blink());
println!("{}", "Fast Blink".blink_fast());
println!("{}", "Slow Blink".blink_slow());
// Fading effects
println!("{}", "Fade In".fade_in());
println!("{}", "Fade Out".fade_out());
use beautify::Colors;
// Padding and alignment
println!("{}", "Centered".center(20));
println!("{}", "Right Aligned".pad_left(20));
println!("{}", "Left Aligned".pad_right(20));
// Borders
println!("{}", "Boxed Text".box_it());
println!("{}", "Single Border".border());
println!("{}", "Double Border".double_border());
text_red_50() to text_red_950()text_blue_50() to text_blue_950()text_green_50() to text_green_950()text_yellow_50() to text_yellow_950()text_purple_50() to text_purple_950()text_pink_50() to text_pink_950()text_black_50() to text_black_950()All colors are available as both text colors (text_*) and background colors (bg_*).
Contributions are welcome! Feel free to open issues and pull requests.
This project is licensed under the MIT License.