spl_forge/common/
theme.rs1use colored::{ColoredString, Colorize};
2
3pub fn app_name(text: &str) -> ColoredString {
4 text.truecolor(102, 178, 255).bold()
5}
6
7pub fn heading(text: &str) -> ColoredString {
8 text.truecolor(125, 211, 252).bold()
9}
10
11pub fn label(text: &str) -> ColoredString {
12 text.truecolor(148, 223, 255)
13}
14
15pub fn command(text: &str) -> ColoredString {
16 text.truecolor(94, 234, 212).bold()
17}
18
19pub fn action(text: &str) -> ColoredString {
20 text.truecolor(255, 201, 107).bold()
21}
22
23pub fn success(text: &str) -> ColoredString {
24 text.truecolor(110, 231, 183).bold()
25}
26
27pub fn warning(text: &str) -> ColoredString {
28 text.truecolor(251, 191, 114).bold()
29}
30
31pub fn error(text: &str) -> ColoredString {
32 text.truecolor(248, 113, 113).bold()
33}
34
35pub fn muted(text: &str) -> ColoredString {
36 text.truecolor(148, 163, 184)
37}
38
39pub fn tip(text: &str) -> ColoredString {
40 text.truecolor(196, 181, 253).italic()
41}