chromata 1.0.0

1000+ editor color themes as compile-time Rust constants
Documentation
//! Batman color theme (base24).
//!
//! Auto-generated by `cargo xtask generate base24` — do not edit.

use crate::{Base16Palette, Base24Palette, Color, Contrast, Theme, Variant};
use alloc::borrow::Cow;

/// Batman
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Batman"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x1b1d1e),
    fg: Color::from_hex(0xa7a8a3),
    cursor: Some(Color::from_hex(0xa7a8a3)),
    selection: Some(Color::from_hex(0x505354)),
    line_highlight: Some(Color::from_hex(0x1b1d1e)),
    gutter: Some(Color::from_hex(0x6d6f6e)),
    statusbar_bg: Some(Color::from_hex(0x1b1d1e)),
    statusbar_fg: Some(Color::from_hex(0x8a8c89)),
    comment: Some(Color::from_hex(0x6d6f6e)),
    keyword: Some(Color::from_hex(0x737271)),
    string: Some(Color::from_hex(0xc8be46)),
    function: Some(Color::from_hex(0x737074)),
    variable: Some(Color::from_hex(0xe6db43)),
    r#type: Some(Color::from_hex(0x909495)),
    constant: Some(Color::from_hex(0xf3fd21)),
    operator: Some(Color::from_hex(0xa7a8a3)),
    tag: Some(Color::from_hex(0xe6db43)),
    error: Some(Color::from_hex(0xe6db43)),
    warning: Some(Color::from_hex(0x909495)),
    info: Some(Color::from_hex(0x737074)),
    success: Some(Color::from_hex(0xc8be46)),
    red: Some(Color::from_hex(0xfff68d)),
    orange: Some(Color::from_hex(0xf3fd21)),
    yellow: Some(Color::from_hex(0xfeed6c)),
    green: Some(Color::from_hex(0xfff27c)),
    cyan: Some(Color::from_hex(0x615f5e)),
    blue: Some(Color::from_hex(0xa2a2a5)),
    purple: Some(Color::from_hex(0x909495)),
    magenta: Some(Color::from_hex(0x9a999d)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x1b1d1e),
        base01: Color::from_hex(0x1b1d1e),
        base02: Color::from_hex(0x505354),
        base03: Color::from_hex(0x6d6f6e),
        base04: Color::from_hex(0x8a8c89),
        base05: Color::from_hex(0xa7a8a3),
        base06: Color::from_hex(0xc5c5be),
        base07: Color::from_hex(0xdadad5),
        base08: Color::from_hex(0xe6db43),
        base09: Color::from_hex(0xf3fd21),
        base0a: Color::from_hex(0x909495),
        base0b: Color::from_hex(0xc8be46),
        base0c: Color::from_hex(0x615f5e),
        base0d: Color::from_hex(0x737074),
        base0e: Color::from_hex(0x737271),
        base0f: Color::from_hex(0x736d21),
    },
    base10: Color::from_hex(0x353738),
    base11: Color::from_hex(0x1a1b1c),
    base12: Color::from_hex(0xfff68d),
    base13: Color::from_hex(0xfeed6c),
    base14: Color::from_hex(0xfff27c),
    base15: Color::from_hex(0xa2a2a5),
    base16: Color::from_hex(0x909495),
    base17: Color::from_hex(0x9a999d),
};