chromata 1.0.0

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

/// Challenger Deep
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Challenger Deep"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x1e1c31),
    fg: Color::from_hex(0x929bb6),
    cursor: Some(Color::from_hex(0x929bb6)),
    selection: Some(Color::from_hex(0x565575)),
    line_highlight: Some(Color::from_hex(0x141127)),
    gutter: Some(Color::from_hex(0x6a6c8a)),
    statusbar_bg: Some(Color::from_hex(0x141127)),
    statusbar_fg: Some(Color::from_hex(0x7e84a0)),
    comment: Some(Color::from_hex(0x6a6c8a)),
    keyword: Some(Color::from_hex(0x906cff)),
    string: Some(Color::from_hex(0x62d196)),
    function: Some(Color::from_hex(0x65b2ff)),
    variable: Some(Color::from_hex(0xff5458)),
    r#type: Some(Color::from_hex(0x91ddff)),
    constant: Some(Color::from_hex(0xffb378)),
    operator: Some(Color::from_hex(0x929bb6)),
    tag: Some(Color::from_hex(0xff5458)),
    error: Some(Color::from_hex(0xff5458)),
    warning: Some(Color::from_hex(0x91ddff)),
    info: Some(Color::from_hex(0x65b2ff)),
    success: Some(Color::from_hex(0x62d196)),
    red: Some(Color::from_hex(0xff8080)),
    orange: Some(Color::from_hex(0xffb378)),
    yellow: Some(Color::from_hex(0xffe9aa)),
    green: Some(Color::from_hex(0x95ffa4)),
    cyan: Some(Color::from_hex(0x63f2f1)),
    blue: Some(Color::from_hex(0xaaffe4)),
    purple: Some(Color::from_hex(0x91ddff)),
    magenta: Some(Color::from_hex(0xc991e1)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x1e1c31),
        base01: Color::from_hex(0x141127),
        base02: Color::from_hex(0x565575),
        base03: Color::from_hex(0x6a6c8a),
        base04: Color::from_hex(0x7e84a0),
        base05: Color::from_hex(0x929bb6),
        base06: Color::from_hex(0xa6b3cc),
        base07: Color::from_hex(0xcbe3e7),
        base08: Color::from_hex(0xff5458),
        base09: Color::from_hex(0xffb378),
        base0a: Color::from_hex(0x91ddff),
        base0b: Color::from_hex(0x62d196),
        base0c: Color::from_hex(0x63f2f1),
        base0d: Color::from_hex(0x65b2ff),
        base0e: Color::from_hex(0x906cff),
        base0f: Color::from_hex(0x7f2a2c),
    },
    base10: Color::from_hex(0x39384e),
    base11: Color::from_hex(0x1c1c27),
    base12: Color::from_hex(0xff8080),
    base13: Color::from_hex(0xffe9aa),
    base14: Color::from_hex(0x95ffa4),
    base15: Color::from_hex(0xaaffe4),
    base16: Color::from_hex(0x91ddff),
    base17: Color::from_hex(0xc991e1),
};