chromata 1.0.0

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

/// Mona Lisa
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Mona Lisa"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x110b0d),
    fg: Color::from_hex(0xdab14e),
    cursor: Some(Color::from_hex(0xdab14e)),
    selection: Some(Color::from_hex(0x874227)),
    line_highlight: Some(Color::from_hex(0x341a0d)),
    gutter: Some(Color::from_hex(0xa26734)),
    statusbar_bg: Some(Color::from_hex(0x341a0d)),
    statusbar_fg: Some(Color::from_hex(0xbe8c41)),
    comment: Some(Color::from_hex(0xa26734)),
    keyword: Some(Color::from_hex(0x9b1d29)),
    string: Some(Color::from_hex(0x626132)),
    function: Some(Color::from_hex(0x515b5c)),
    variable: Some(Color::from_hex(0x9b281b)),
    r#type: Some(Color::from_hex(0x9eb2b3)),
    constant: Some(Color::from_hex(0xc26e27)),
    operator: Some(Color::from_hex(0xdab14e)),
    tag: Some(Color::from_hex(0x9b281b)),
    error: Some(Color::from_hex(0x9b281b)),
    warning: Some(Color::from_hex(0x9eb2b3)),
    info: Some(Color::from_hex(0x515b5c)),
    success: Some(Color::from_hex(0x626132)),
    red: Some(Color::from_hex(0xff4230)),
    orange: Some(Color::from_hex(0xc26e27)),
    yellow: Some(Color::from_hex(0xff9565)),
    green: Some(Color::from_hex(0xb3b163)),
    cyan: Some(Color::from_hex(0x588056)),
    blue: Some(Color::from_hex(0x89cc8e)),
    purple: Some(Color::from_hex(0x9eb2b3)),
    magenta: Some(Color::from_hex(0xff5b6a)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x110b0d),
        base01: Color::from_hex(0x341a0d),
        base02: Color::from_hex(0x874227),
        base03: Color::from_hex(0xa26734),
        base04: Color::from_hex(0xbe8c41),
        base05: Color::from_hex(0xdab14e),
        base06: Color::from_hex(0xf6d75c),
        base07: Color::from_hex(0xffe597),
        base08: Color::from_hex(0x9b281b),
        base09: Color::from_hex(0xc26e27),
        base0a: Color::from_hex(0x9eb2b3),
        base0b: Color::from_hex(0x626132),
        base0c: Color::from_hex(0x588056),
        base0d: Color::from_hex(0x515b5c),
        base0e: Color::from_hex(0x9b1d29),
        base0f: Color::from_hex(0x4d140d),
    },
    base10: Color::from_hex(0x5a2c1a),
    base11: Color::from_hex(0x2d160d),
    base12: Color::from_hex(0xff4230),
    base13: Color::from_hex(0xff9565),
    base14: Color::from_hex(0xb3b163),
    base15: Color::from_hex(0x89cc8e),
    base16: Color::from_hex(0x9eb2b3),
    base17: Color::from_hex(0xff5b6a),
};