chromata 1.0.0

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

/// Hacktober
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Hacktober"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x141414),
    fg: Color::from_hex(0xbfbdb7),
    cursor: Some(Color::from_hex(0xbfbdb7)),
    selection: Some(Color::from_hex(0x2c2b2a)),
    line_highlight: Some(Color::from_hex(0x191918)),
    gutter: Some(Color::from_hex(0x5d5b59)),
    statusbar_bg: Some(Color::from_hex(0x191918)),
    statusbar_fg: Some(Color::from_hex(0x8e8c88)),
    comment: Some(Color::from_hex(0x5d5b59)),
    keyword: Some(Color::from_hex(0x864651)),
    string: Some(Color::from_hex(0x587744)),
    function: Some(Color::from_hex(0x206ec5)),
    variable: Some(Color::from_hex(0xb34538)),
    r#type: Some(Color::from_hex(0x5389c5)),
    constant: Some(Color::from_hex(0xd08949)),
    operator: Some(Color::from_hex(0xbfbdb7)),
    tag: Some(Color::from_hex(0xb34538)),
    error: Some(Color::from_hex(0xb34538)),
    warning: Some(Color::from_hex(0x5389c5)),
    info: Some(Color::from_hex(0x206ec5)),
    success: Some(Color::from_hex(0x587744)),
    red: Some(Color::from_hex(0xb33323)),
    orange: Some(Color::from_hex(0xd08949)),
    yellow: Some(Color::from_hex(0xc75a22)),
    green: Some(Color::from_hex(0x42824a)),
    cyan: Some(Color::from_hex(0xac9166)),
    blue: Some(Color::from_hex(0xebc587)),
    purple: Some(Color::from_hex(0x5389c5)),
    magenta: Some(Color::from_hex(0xe795a5)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x141414),
        base01: Color::from_hex(0x191918),
        base02: Color::from_hex(0x2c2b2a),
        base03: Color::from_hex(0x5d5b59),
        base04: Color::from_hex(0x8e8c88),
        base05: Color::from_hex(0xbfbdb7),
        base06: Color::from_hex(0xf1eee7),
        base07: Color::from_hex(0xffffff),
        base08: Color::from_hex(0xb34538),
        base09: Color::from_hex(0xd08949),
        base0a: Color::from_hex(0x5389c5),
        base0b: Color::from_hex(0x587744),
        base0c: Color::from_hex(0xac9166),
        base0d: Color::from_hex(0x206ec5),
        base0e: Color::from_hex(0x864651),
        base0f: Color::from_hex(0x59221c),
    },
    base10: Color::from_hex(0x1d1c1c),
    base11: Color::from_hex(0x0e0e0e),
    base12: Color::from_hex(0xb33323),
    base13: Color::from_hex(0xc75a22),
    base14: Color::from_hex(0x42824a),
    base15: Color::from_hex(0xebc587),
    base16: Color::from_hex(0x5389c5),
    base17: Color::from_hex(0xe795a5),
};