chromata 1.0.0

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

/// Blazer
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Blazer"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x0d1926),
    fg: Color::from_hex(0xacacac),
    cursor: Some(Color::from_hex(0xacacac)),
    selection: Some(Color::from_hex(0x262626)),
    line_highlight: Some(Color::from_hex(0x000000)),
    gutter: Some(Color::from_hex(0x525252)),
    statusbar_bg: Some(Color::from_hex(0x000000)),
    statusbar_fg: Some(Color::from_hex(0x7f7f7f)),
    comment: Some(Color::from_hex(0x525252)),
    keyword: Some(Color::from_hex(0xb87ab8)),
    string: Some(Color::from_hex(0x7ab87a)),
    function: Some(Color::from_hex(0x7a7ab8)),
    variable: Some(Color::from_hex(0xb87a7a)),
    r#type: Some(Color::from_hex(0xbdbddb)),
    constant: Some(Color::from_hex(0xb8b87a)),
    operator: Some(Color::from_hex(0xacacac)),
    tag: Some(Color::from_hex(0xb87a7a)),
    error: Some(Color::from_hex(0xb87a7a)),
    warning: Some(Color::from_hex(0xbdbddb)),
    info: Some(Color::from_hex(0x7a7ab8)),
    success: Some(Color::from_hex(0x7ab87a)),
    red: Some(Color::from_hex(0xdbbdbd)),
    orange: Some(Color::from_hex(0xb8b87a)),
    yellow: Some(Color::from_hex(0xdbdbbd)),
    green: Some(Color::from_hex(0xbddbbd)),
    cyan: Some(Color::from_hex(0x7ab8b8)),
    blue: Some(Color::from_hex(0xbddbdb)),
    purple: Some(Color::from_hex(0xbdbddb)),
    magenta: Some(Color::from_hex(0xdbbddb)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x0d1926),
        base01: Color::from_hex(0x000000),
        base02: Color::from_hex(0x262626),
        base03: Color::from_hex(0x525252),
        base04: Color::from_hex(0x7f7f7f),
        base05: Color::from_hex(0xacacac),
        base06: Color::from_hex(0xd9d9d9),
        base07: Color::from_hex(0xffffff),
        base08: Color::from_hex(0xb87a7a),
        base09: Color::from_hex(0xb8b87a),
        base0a: Color::from_hex(0xbdbddb),
        base0b: Color::from_hex(0x7ab87a),
        base0c: Color::from_hex(0x7ab8b8),
        base0d: Color::from_hex(0x7a7ab8),
        base0e: Color::from_hex(0xb87ab8),
        base0f: Color::from_hex(0x5c3d3d),
    },
    base10: Color::from_hex(0x191919),
    base11: Color::from_hex(0x0c0c0c),
    base12: Color::from_hex(0xdbbdbd),
    base13: Color::from_hex(0xdbdbbd),
    base14: Color::from_hex(0xbddbbd),
    base15: Color::from_hex(0xbddbdb),
    base16: Color::from_hex(0xbdbddb),
    base17: Color::from_hex(0xdbbddb),
};