chromata 1.0.0

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

/// Red Planet
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Red Planet"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x222222),
    fg: Color::from_hex(0xa4998c),
    cursor: Some(Color::from_hex(0xa4998c)),
    selection: Some(Color::from_hex(0x676767)),
    line_highlight: Some(Color::from_hex(0x201f1f)),
    gutter: Some(Color::from_hex(0x7b7773)),
    statusbar_bg: Some(Color::from_hex(0x201f1f)),
    statusbar_fg: Some(Color::from_hex(0x908880)),
    comment: Some(Color::from_hex(0x7b7773)),
    keyword: Some(Color::from_hex(0x896492)),
    string: Some(Color::from_hex(0x728271)),
    function: Some(Color::from_hex(0x69809e)),
    variable: Some(Color::from_hex(0x8c3432)),
    r#type: Some(Color::from_hex(0x60827e)),
    constant: Some(Color::from_hex(0xe8bf6a)),
    operator: Some(Color::from_hex(0xa4998c)),
    tag: Some(Color::from_hex(0x8c3432)),
    error: Some(Color::from_hex(0x8c3432)),
    warning: Some(Color::from_hex(0x60827e)),
    info: Some(Color::from_hex(0x69809e)),
    success: Some(Color::from_hex(0x728271)),
    red: Some(Color::from_hex(0xb55242)),
    orange: Some(Color::from_hex(0xe8bf6a)),
    yellow: Some(Color::from_hex(0xebeb91)),
    green: Some(Color::from_hex(0x869985)),
    cyan: Some(Color::from_hex(0x5b8390)),
    blue: Some(Color::from_hex(0x38add8)),
    purple: Some(Color::from_hex(0x60827e)),
    magenta: Some(Color::from_hex(0xde4873)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x222222),
        base01: Color::from_hex(0x201f1f),
        base02: Color::from_hex(0x676767),
        base03: Color::from_hex(0x7b7773),
        base04: Color::from_hex(0x908880),
        base05: Color::from_hex(0xa4998c),
        base06: Color::from_hex(0xb9aa99),
        base07: Color::from_hex(0xd6bfb8),
        base08: Color::from_hex(0x8c3432),
        base09: Color::from_hex(0xe8bf6a),
        base0a: Color::from_hex(0x60827e),
        base0b: Color::from_hex(0x728271),
        base0c: Color::from_hex(0x5b8390),
        base0d: Color::from_hex(0x69809e),
        base0e: Color::from_hex(0x896492),
        base0f: Color::from_hex(0x461a19),
    },
    base10: Color::from_hex(0x444444),
    base11: Color::from_hex(0x222222),
    base12: Color::from_hex(0xb55242),
    base13: Color::from_hex(0xebeb91),
    base14: Color::from_hex(0x869985),
    base15: Color::from_hex(0x38add8),
    base16: Color::from_hex(0x60827e),
    base17: Color::from_hex(0xde4873),
};