chromata 1.0.0

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

/// Zenburn
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Zenburn"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x3f3f3f),
    fg: Color::from_hex(0xc1c9b9),
    cursor: Some(Color::from_hex(0xc1c9b9)),
    selection: Some(Color::from_hex(0x709080)),
    line_highlight: Some(Color::from_hex(0x4d4d4d)),
    gutter: Some(Color::from_hex(0x8ba393)),
    statusbar_bg: Some(Color::from_hex(0x4d4d4d)),
    statusbar_fg: Some(Color::from_hex(0xa6b6a6)),
    comment: Some(Color::from_hex(0x8ba393)),
    keyword: Some(Color::from_hex(0xdc8cc3)),
    string: Some(Color::from_hex(0x60b48a)),
    function: Some(Color::from_hex(0x506070)),
    variable: Some(Color::from_hex(0x705050)),
    r#type: Some(Color::from_hex(0x94bff3)),
    constant: Some(Color::from_hex(0xf0dfaf)),
    operator: Some(Color::from_hex(0xc1c9b9)),
    tag: Some(Color::from_hex(0x705050)),
    error: Some(Color::from_hex(0x705050)),
    warning: Some(Color::from_hex(0x94bff3)),
    info: Some(Color::from_hex(0x506070)),
    success: Some(Color::from_hex(0x60b48a)),
    red: Some(Color::from_hex(0xdca3a3)),
    orange: Some(Color::from_hex(0xf0dfaf)),
    yellow: Some(Color::from_hex(0xe0cf9f)),
    green: Some(Color::from_hex(0xc3bf9f)),
    cyan: Some(Color::from_hex(0x8cd0d3)),
    blue: Some(Color::from_hex(0x93e0e3)),
    purple: Some(Color::from_hex(0x94bff3)),
    magenta: Some(Color::from_hex(0xec93d3)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x3f3f3f),
        base01: Color::from_hex(0x4d4d4d),
        base02: Color::from_hex(0x709080),
        base03: Color::from_hex(0x8ba393),
        base04: Color::from_hex(0xa6b6a6),
        base05: Color::from_hex(0xc1c9b9),
        base06: Color::from_hex(0xdcdccc),
        base07: Color::from_hex(0xffffff),
        base08: Color::from_hex(0x705050),
        base09: Color::from_hex(0xf0dfaf),
        base0a: Color::from_hex(0x94bff3),
        base0b: Color::from_hex(0x60b48a),
        base0c: Color::from_hex(0x8cd0d3),
        base0d: Color::from_hex(0x506070),
        base0e: Color::from_hex(0xdc8cc3),
        base0f: Color::from_hex(0x382828),
    },
    base10: Color::from_hex(0x4a6055),
    base11: Color::from_hex(0x25302a),
    base12: Color::from_hex(0xdca3a3),
    base13: Color::from_hex(0xe0cf9f),
    base14: Color::from_hex(0xc3bf9f),
    base15: Color::from_hex(0x93e0e3),
    base16: Color::from_hex(0x94bff3),
    base17: Color::from_hex(0xec93d3),
};