chromata 1.0.0

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

/// Toy Chest
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Toy Chest"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x23364a),
    fg: Color::from_hex(0x27b684),
    cursor: Some(Color::from_hex(0x27b684)),
    selection: Some(Color::from_hex(0x326889)),
    line_highlight: Some(Color::from_hex(0x2c3f57)),
    gutter: Some(Color::from_hex(0x2f8288)),
    statusbar_bg: Some(Color::from_hex(0x2c3f57)),
    statusbar_fg: Some(Color::from_hex(0x2b9c86)),
    comment: Some(Color::from_hex(0x2f8288)),
    keyword: Some(Color::from_hex(0x8a5ddb)),
    string: Some(Color::from_hex(0x199171)),
    function: Some(Color::from_hex(0x325d96)),
    variable: Some(Color::from_hex(0xbe2d26)),
    r#type: Some(Color::from_hex(0x33a5d9)),
    constant: Some(Color::from_hex(0xda8e26)),
    operator: Some(Color::from_hex(0x27b684)),
    tag: Some(Color::from_hex(0xbe2d26)),
    error: Some(Color::from_hex(0xbe2d26)),
    warning: Some(Color::from_hex(0x33a5d9)),
    info: Some(Color::from_hex(0x325d96)),
    success: Some(Color::from_hex(0x199171)),
    red: Some(Color::from_hex(0xdd5943)),
    orange: Some(Color::from_hex(0xda8e26)),
    yellow: Some(Color::from_hex(0xe7d74b)),
    green: Some(Color::from_hex(0x30cf7b)),
    cyan: Some(Color::from_hex(0x35a08f)),
    blue: Some(Color::from_hex(0x41c3ad)),
    purple: Some(Color::from_hex(0x33a5d9)),
    magenta: Some(Color::from_hex(0xad6bdc)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x23364a),
        base01: Color::from_hex(0x2c3f57),
        base02: Color::from_hex(0x326889),
        base03: Color::from_hex(0x2f8288),
        base04: Color::from_hex(0x2b9c86),
        base05: Color::from_hex(0x27b684),
        base06: Color::from_hex(0x23d082),
        base07: Color::from_hex(0xd4d4d4),
        base08: Color::from_hex(0xbe2d26),
        base09: Color::from_hex(0xda8e26),
        base0a: Color::from_hex(0x33a5d9),
        base0b: Color::from_hex(0x199171),
        base0c: Color::from_hex(0x35a08f),
        base0d: Color::from_hex(0x325d96),
        base0e: Color::from_hex(0x8a5ddb),
        base0f: Color::from_hex(0x5f1613),
    },
    base10: Color::from_hex(0x21455b),
    base11: Color::from_hex(0x10222d),
    base12: Color::from_hex(0xdd5943),
    base13: Color::from_hex(0xe7d74b),
    base14: Color::from_hex(0x30cf7b),
    base15: Color::from_hex(0x41c3ad),
    base16: Color::from_hex(0x33a5d9),
    base17: Color::from_hex(0xad6bdc),
};