base16-palettes 0.1.0

A representation of the Base16 palettes in Rust
Documentation
use enum_dispatch::enum_dispatch;

use super::create_palette;

#[enum_dispatch(Base16Palette)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum WindowsPalette {
    Windows95,
    WindowsHighContrastLight,
    Windows10Light,
    Windows95Light,
    WindowsNTLight,
    WindowsHighContrast,
    WindowsNT,
    Windows10,
}
create_palette! {
    Windows95,
    "000000",
    "1C1C1C",
    "383838",
    "545454",
    "7e7e7e",
    "a8a8a8",
    "d2d2d2",
    "fcfcfc",
    "fc5454",
    "a85400",
    "fcfc54",
    "54fc54",
    "54fcfc",
    "5454fc",
    "fc54fc",
    "00a800",
}
create_palette! {
    WindowsHighContrastLight,
    "fcfcfc",
    "e8e8e8",
    "d4d4d4",
    "c0c0c0",
    "7e7e7e",
    "545454",
    "2a2a2a",
    "000000",
    "800000",
    "fcfc54",
    "808000",
    "008000",
    "008080",
    "000080",
    "800080",
    "54fc54",
}
create_palette! {
    Windows10Light,
    "f2f2f2",
    "e5e5e5",
    "d9d9d9",
    "cccccc",
    "ababab",
    "767676",
    "414141",
    "0c0c0c",
    "c50f1f",
    "f9f1a5",
    "c19c00",
    "13a10e",
    "3a96dd",
    "0037da",
    "881798",
    "16c60c",
}
create_palette! {
    Windows95Light,
    "fcfcfc",
    "e0e0e0",
    "c4c4c4",
    "a8a8a8",
    "7e7e7e",
    "545454",
    "2a2a2a",
    "000000",
    "a80000",
    "fcfc54",
    "a85400",
    "00a800",
    "00a8a8",
    "0000a8",
    "a800a8",
    "54fc54",
}
create_palette! {
    WindowsNTLight,
    "ffffff",
    "eaeaea",
    "d5d5d5",
    "c0c0c0",
    "a0a0a0",
    "808080",
    "404040",
    "000000",
    "800000",
    "ffff00",
    "808000",
    "008000",
    "008080",
    "000080",
    "800080",
    "00ff00",
}
create_palette! {
    WindowsHighContrast,
    "000000",
    "1C1C1C",
    "383838",
    "545454",
    "a2a2a2",
    "c0c0c0",
    "dedede",
    "fcfcfc",
    "fc5454",
    "808000",
    "fcfc54",
    "54fc54",
    "54fcfc",
    "5454fc",
    "fc54fc",
    "008000",
}
create_palette! {
    WindowsNT,
    "000000",
    "2a2a2a",
    "555555",
    "808080",
    "a1a1a1",
    "c0c0c0",
    "e0e0e0",
    "ffffff",
    "ff0000",
    "808000",
    "ffff00",
    "00ff00",
    "00ffff",
    "0000ff",
    "ff00ff",
    "008000",
}
create_palette! {
    Windows10,
    "0c0c0c",
    "2f2f2f",
    "535353",
    "767676",
    "b9b9b9",
    "cccccc",
    "dfdfdf",
    "f2f2f2",
    "e74856",
    "c19c00",
    "f9f1a5",
    "16c60c",
    "61d6d6",
    "3b78ff",
    "b4009e",
    "13a10e",
}