1use owo_colors::*;
2
3pub struct Theme {
11 pub bare: Style,
13
14 pub number: Style,
16
17 pub string: Style,
19
20 pub name: Style,
22
23 pub meta: Style,
25
26 pub error: Style,
28
29 pub heading: Style,
31
32 pub delimiter: Style,
34}
35
36impl Theme {
37 pub fn plain() -> Self {
39 Self {
40 bare: Style::new(),
41 number: Style::new(),
42 string: Style::new(),
43 name: Style::new(),
44 meta: Style::new(),
45 error: Style::new(),
46 heading: Style::new(),
47 delimiter: Style::new(),
48 }
49 }
50}
51
52impl Default for Theme {
53 fn default() -> Self {
54 Self {
55 bare: Style::new().yellow(),
56 number: Style::new().magenta(),
57 string: Style::new().cyan(),
58 name: Style::new().green(),
59 meta: Style::new().blue().italic(),
60 error: Style::new().red().bold(),
61 heading: Style::new().green().bold().underline(),
62 delimiter: Style::new().dimmed(),
63 }
64 }
65}