summaryrefslogtreecommitdiffstats
path: root/src/skin/cli_mad_skin.rs
blob: d32e45425ea7dfefd4da7ee2dd6c4c1cc2f15a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use {
    crokey::crossterm::style::Color,
    termimad::{gray, MadSkin},
};

/// build a termimad skin for cli output (mostly
/// for the install process)
pub fn make_cli_mad_skin() -> MadSkin {
    let mut skin = MadSkin::default();
    skin.set_headers_fg(Color::AnsiValue(178));
    skin.inline_code.set_bg(gray(2));
    skin.inline_code.set_fg(gray(18));
    skin.code_block.set_bg(gray(2));
    skin.code_block.set_fg(gray(18));
    skin.italic.set_fg(Color::Magenta);
    skin
}