chromata 1.0.0

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

/// Mathias
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Mathias"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x000000),
    fg: Color::from_hex(0xcacaca),
    cursor: Some(Color::from_hex(0xcacaca)),
    selection: Some(Color::from_hex(0x555555)),
    line_highlight: Some(Color::from_hex(0x000000)),
    gutter: Some(Color::from_hex(0x7c7c7c)),
    statusbar_bg: Some(Color::from_hex(0x000000)),
    statusbar_fg: Some(Color::from_hex(0xa3a3a3)),
    comment: Some(Color::from_hex(0x7c7c7c)),
    keyword: Some(Color::from_hex(0xfa2573)),
    string: Some(Color::from_hex(0xa6e32d)),
    function: Some(Color::from_hex(0xc48dff)),
    variable: Some(Color::from_hex(0xe52222)),
    r#type: Some(Color::from_hex(0x5555ff)),
    constant: Some(Color::from_hex(0xfc951e)),
    operator: Some(Color::from_hex(0xcacaca)),
    tag: Some(Color::from_hex(0xe52222)),
    error: Some(Color::from_hex(0xe52222)),
    warning: Some(Color::from_hex(0x5555ff)),
    info: Some(Color::from_hex(0xc48dff)),
    success: Some(Color::from_hex(0xa6e32d)),
    red: Some(Color::from_hex(0xff5555)),
    orange: Some(Color::from_hex(0xfc951e)),
    yellow: Some(Color::from_hex(0xffff55)),
    green: Some(Color::from_hex(0x55ff55)),
    cyan: Some(Color::from_hex(0x67d9f0)),
    blue: Some(Color::from_hex(0x55ffff)),
    purple: Some(Color::from_hex(0x5555ff)),
    magenta: Some(Color::from_hex(0xff55ff)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x000000),
        base01: Color::from_hex(0x000000),
        base02: Color::from_hex(0x555555),
        base03: Color::from_hex(0x7c7c7c),
        base04: Color::from_hex(0xa3a3a3),
        base05: Color::from_hex(0xcacaca),
        base06: Color::from_hex(0xf2f2f2),
        base07: Color::from_hex(0xffffff),
        base08: Color::from_hex(0xe52222),
        base09: Color::from_hex(0xfc951e),
        base0a: Color::from_hex(0x5555ff),
        base0b: Color::from_hex(0xa6e32d),
        base0c: Color::from_hex(0x67d9f0),
        base0d: Color::from_hex(0xc48dff),
        base0e: Color::from_hex(0xfa2573),
        base0f: Color::from_hex(0x721111),
    },
    base10: Color::from_hex(0x383838),
    base11: Color::from_hex(0x1c1c1c),
    base12: Color::from_hex(0xff5555),
    base13: Color::from_hex(0xffff55),
    base14: Color::from_hex(0x55ff55),
    base15: Color::from_hex(0x55ffff),
    base16: Color::from_hex(0x5555ff),
    base17: Color::from_hex(0xff55ff),
};