chromata 1.0.0

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

/// Chalkboard
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Chalkboard"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x29262f),
    fg: Color::from_hex(0xafafaf),
    cursor: Some(Color::from_hex(0xafafaf)),
    selection: Some(Color::from_hex(0x323232)),
    line_highlight: Some(Color::from_hex(0x000000)),
    gutter: Some(Color::from_hex(0x5b5b5b)),
    statusbar_bg: Some(Color::from_hex(0x000000)),
    statusbar_fg: Some(Color::from_hex(0x858585)),
    comment: Some(Color::from_hex(0x5b5b5b)),
    keyword: Some(Color::from_hex(0xc372c2)),
    string: Some(Color::from_hex(0x72c373)),
    function: Some(Color::from_hex(0x7372c3)),
    variable: Some(Color::from_hex(0xc37372)),
    r#type: Some(Color::from_hex(0xaaaadb)),
    constant: Some(Color::from_hex(0xc2c372)),
    operator: Some(Color::from_hex(0xafafaf)),
    tag: Some(Color::from_hex(0xc37372)),
    error: Some(Color::from_hex(0xc37372)),
    warning: Some(Color::from_hex(0xaaaadb)),
    info: Some(Color::from_hex(0x7372c3)),
    success: Some(Color::from_hex(0x72c373)),
    red: Some(Color::from_hex(0xdbaaaa)),
    orange: Some(Color::from_hex(0xc2c372)),
    yellow: Some(Color::from_hex(0xdadbaa)),
    green: Some(Color::from_hex(0xaadbaa)),
    cyan: Some(Color::from_hex(0x72c2c3)),
    blue: Some(Color::from_hex(0xaadadb)),
    purple: Some(Color::from_hex(0xaaaadb)),
    magenta: Some(Color::from_hex(0xdbaada)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x29262f),
        base01: Color::from_hex(0x000000),
        base02: Color::from_hex(0x323232),
        base03: Color::from_hex(0x5b5b5b),
        base04: Color::from_hex(0x858585),
        base05: Color::from_hex(0xafafaf),
        base06: Color::from_hex(0xd9d9d9),
        base07: Color::from_hex(0xffffff),
        base08: Color::from_hex(0xc37372),
        base09: Color::from_hex(0xc2c372),
        base0a: Color::from_hex(0xaaaadb),
        base0b: Color::from_hex(0x72c373),
        base0c: Color::from_hex(0x72c2c3),
        base0d: Color::from_hex(0x7372c3),
        base0e: Color::from_hex(0xc372c2),
        base0f: Color::from_hex(0x613939),
    },
    base10: Color::from_hex(0x212121),
    base11: Color::from_hex(0x101010),
    base12: Color::from_hex(0xdbaaaa),
    base13: Color::from_hex(0xdadbaa),
    base14: Color::from_hex(0xaadbaa),
    base15: Color::from_hex(0xaadadb),
    base16: Color::from_hex(0xaaaadb),
    base17: Color::from_hex(0xdbaada),
};