chromata 1.0.0

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

/// Brogrammer
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Brogrammer"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x131313),
    fg: Color::from_hex(0xc1c8d7),
    cursor: Some(Color::from_hex(0xc1c8d7)),
    selection: Some(Color::from_hex(0x2a3141)),
    line_highlight: Some(Color::from_hex(0x1f1f1f)),
    gutter: Some(Color::from_hex(0x343d50)),
    statusbar_bg: Some(Color::from_hex(0x1f1f1f)),
    statusbar_fg: Some(Color::from_hex(0xd6dae4)),
    comment: Some(Color::from_hex(0x343d50)),
    keyword: Some(Color::from_hex(0x4e59b7)),
    string: Some(Color::from_hex(0x2cc55d)),
    function: Some(Color::from_hex(0x2a84d2)),
    variable: Some(Color::from_hex(0xf71118)),
    r#type: Some(Color::from_hex(0x0f80d5)),
    constant: Some(Color::from_hex(0xecb90f)),
    operator: Some(Color::from_hex(0xc1c8d7)),
    tag: Some(Color::from_hex(0xf71118)),
    error: Some(Color::from_hex(0xf71118)),
    warning: Some(Color::from_hex(0x0f80d5)),
    info: Some(Color::from_hex(0x2a84d2)),
    success: Some(Color::from_hex(0x2cc55d)),
    red: Some(Color::from_hex(0xde342e)),
    orange: Some(Color::from_hex(0xecb90f)),
    yellow: Some(Color::from_hex(0xf2bd09)),
    green: Some(Color::from_hex(0x1dd260)),
    cyan: Some(Color::from_hex(0x0f80d5)),
    blue: Some(Color::from_hex(0x289af0)),
    purple: Some(Color::from_hex(0x509bdc)),
    magenta: Some(Color::from_hex(0x524fb9)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x131313),
        base01: Color::from_hex(0x1f1f1f),
        base02: Color::from_hex(0x2a3141),
        base03: Color::from_hex(0x343d50),
        base04: Color::from_hex(0xd6dae4),
        base05: Color::from_hex(0xc1c8d7),
        base06: Color::from_hex(0xe3e6ed),
        base07: Color::from_hex(0xffffff),
        base08: Color::from_hex(0xf71118),
        base09: Color::from_hex(0xecb90f),
        base0a: Color::from_hex(0x0f80d5),
        base0b: Color::from_hex(0x2cc55d),
        base0c: Color::from_hex(0x0f80d5),
        base0d: Color::from_hex(0x2a84d2),
        base0e: Color::from_hex(0x4e59b7),
        base0f: Color::from_hex(0x7b080c),
    },
    base10: Color::from_hex(0x0a0a0a),
    base11: Color::from_hex(0x020202),
    base12: Color::from_hex(0xde342e),
    base13: Color::from_hex(0xf2bd09),
    base14: Color::from_hex(0x1dd260),
    base15: Color::from_hex(0x289af0),
    base16: Color::from_hex(0x509bdc),
    base17: Color::from_hex(0x524fb9),
};