diffside 0.1.0

A CLI tool for side-by-side file diffs with themed highlighting.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use console::Style;

/// Holds styling for additions and deletions for the Dracula theme.
pub struct Theme {
    pub addition: Style,
    pub deletion: Style,
}

impl Theme {
    /// Returns the default Dracula theme.
    pub fn dracula() -> Self {
        Theme {
            addition: Style::new().on_color256(10).black(),  // Bright green bg, black text
            deletion: Style::new().on_color256(9).black(),   // Bright red bg, black text
        }
    }
}