chromata 1.0.0

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

/// Purplepeter
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Purplepeter"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x2a1a4a),
    fg: Color::from_hex(0xc38e69),
    cursor: Some(Color::from_hex(0xc38e69)),
    selection: Some(Color::from_hex(0x100b22)),
    line_highlight: Some(Color::from_hex(0x0a041f)),
    gutter: Some(Color::from_hex(0x4b3639)),
    statusbar_bg: Some(Color::from_hex(0x0a041f)),
    statusbar_fg: Some(Color::from_hex(0x876251)),
    comment: Some(Color::from_hex(0x4b3639)),
    keyword: Some(Color::from_hex(0xe68ecd)),
    string: Some(Color::from_hex(0x98b481)),
    function: Some(Color::from_hex(0x66d9ef)),
    variable: Some(Color::from_hex(0xff786c)),
    r#type: Some(Color::from_hex(0x79daed)),
    constant: Some(Color::from_hex(0xefdeab)),
    operator: Some(Color::from_hex(0xc38e69)),
    tag: Some(Color::from_hex(0xff786c)),
    error: Some(Color::from_hex(0xff786c)),
    warning: Some(Color::from_hex(0x79daed)),
    info: Some(Color::from_hex(0x66d9ef)),
    success: Some(Color::from_hex(0x98b481)),
    red: Some(Color::from_hex(0xf89f92)),
    orange: Some(Color::from_hex(0xefdeab)),
    yellow: Some(Color::from_hex(0xf1e9bf)),
    green: Some(Color::from_hex(0xb4bd8e)),
    cyan: Some(Color::from_hex(0xb98cff)),
    blue: Some(Color::from_hex(0xa0a0d6)),
    purple: Some(Color::from_hex(0x79daed)),
    magenta: Some(Color::from_hex(0xb991d4)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x2a1a4a),
        base01: Color::from_hex(0x0a041f),
        base02: Color::from_hex(0x100b22),
        base03: Color::from_hex(0x4b3639),
        base04: Color::from_hex(0x876251),
        base05: Color::from_hex(0xc38e69),
        base06: Color::from_hex(0xffba81),
        base07: Color::from_hex(0xb9aed3),
        base08: Color::from_hex(0xff786c),
        base09: Color::from_hex(0xefdeab),
        base0a: Color::from_hex(0x79daed),
        base0b: Color::from_hex(0x98b481),
        base0c: Color::from_hex(0xb98cff),
        base0d: Color::from_hex(0x66d9ef),
        base0e: Color::from_hex(0xe68ecd),
        base0f: Color::from_hex(0x7f3c36),
    },
    base10: Color::from_hex(0x0a0716),
    base11: Color::from_hex(0x05030b),
    base12: Color::from_hex(0xf89f92),
    base13: Color::from_hex(0xf1e9bf),
    base14: Color::from_hex(0xb4bd8e),
    base15: Color::from_hex(0xa0a0d6),
    base16: Color::from_hex(0x79daed),
    base17: Color::from_hex(0xb991d4),
};