chromata 1.0.0

1000+ editor color themes as compile-time Rust constants
Documentation
//! Elementary 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;

/// Elementary
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Elementary"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x181818),
    fg: Color::from_hex(0xc5c5c5),
    cursor: Some(Color::from_hex(0xc5c5c5)),
    selection: Some(Color::from_hex(0x4a4a4a)),
    line_highlight: Some(Color::from_hex(0x242424)),
    gutter: Some(Color::from_hex(0x737373)),
    statusbar_bg: Some(Color::from_hex(0x242424)),
    statusbar_fg: Some(Color::from_hex(0x9c9c9c)),
    comment: Some(Color::from_hex(0x737373)),
    keyword: Some(Color::from_hex(0xe40038)),
    string: Some(Color::from_hex(0x59a413)),
    function: Some(Color::from_hex(0x053a8c)),
    variable: Some(Color::from_hex(0xd61b15)),
    r#type: Some(Color::from_hex(0x0855fe)),
    constant: Some(Color::from_hex(0xfdb40b)),
    operator: Some(Color::from_hex(0xc5c5c5)),
    tag: Some(Color::from_hex(0xd61b15)),
    error: Some(Color::from_hex(0xd61b15)),
    warning: Some(Color::from_hex(0x0855fe)),
    info: Some(Color::from_hex(0x053a8c)),
    success: Some(Color::from_hex(0x59a413)),
    red: Some(Color::from_hex(0xfb1b18)),
    orange: Some(Color::from_hex(0xfdb40b)),
    yellow: Some(Color::from_hex(0xfdc70e)),
    green: Some(Color::from_hex(0x6ac118)),
    cyan: Some(Color::from_hex(0x2594e0)),
    blue: Some(Color::from_hex(0x3ea7fc)),
    purple: Some(Color::from_hex(0x0855fe)),
    magenta: Some(Color::from_hex(0xfb004f)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x181818),
        base01: Color::from_hex(0x242424),
        base02: Color::from_hex(0x4a4a4a),
        base03: Color::from_hex(0x737373),
        base04: Color::from_hex(0x9c9c9c),
        base05: Color::from_hex(0xc5c5c5),
        base06: Color::from_hex(0xeeeeee),
        base07: Color::from_hex(0x8c00eb),
        base08: Color::from_hex(0xd61b15),
        base09: Color::from_hex(0xfdb40b),
        base0a: Color::from_hex(0x0855fe),
        base0b: Color::from_hex(0x59a413),
        base0c: Color::from_hex(0x2594e0),
        base0d: Color::from_hex(0x053a8c),
        base0e: Color::from_hex(0xe40038),
        base0f: Color::from_hex(0x6b0d0a),
    },
    base10: Color::from_hex(0x313131),
    base11: Color::from_hex(0x181818),
    base12: Color::from_hex(0xfb1b18),
    base13: Color::from_hex(0xfdc70e),
    base14: Color::from_hex(0x6ac118),
    base15: Color::from_hex(0x3ea7fc),
    base16: Color::from_hex(0x0855fe),
    base17: Color::from_hex(0xfb004f),
};