1use stylic::{lazy_format, Styleable};
2
3fn main() {
4 let hello = "Hello".styled().bold().red().on_blue();
5
6 println!("{}", lazy_format!("{:b}", 12));
7
8 let world = lazy_format!("Wor{}ld", lazy_format!("he{}he", "haha").styled().blue())
9 .styled()
10 .cyan()
11 .inverted();
12
13 println!("{hello}, {world}!");
14
15 println!("{:?}", world.style);
16 println!("{:?}", world.to_string());
17
18 println!("{}", "strikethrough".styled().strikethrough());
19
20 println!(
21 "{}",
22 "Google".styled().bold().green().link("https://google.com")
23 );
24
25 println!("{}", "Hello".styled().underline_colored(48.into()));
26}