chromata 1.0.0

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

/// Ollie
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Low
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Ollie"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Low,
    bg: Color::from_hex(0x212024),
    fg: Color::from_hex(0x7e7789),
    cursor: Some(Color::from_hex(0x7e7789)),
    selection: Some(Color::from_hex(0x5a3625)),
    line_highlight: Some(Color::from_hex(0x000000)),
    gutter: Some(Color::from_hex(0x664b46)),
    statusbar_bg: Some(Color::from_hex(0x000000)),
    statusbar_fg: Some(Color::from_hex(0x726168)),
    comment: Some(Color::from_hex(0x664b46)),
    keyword: Some(Color::from_hex(0xaf8427)),
    string: Some(Color::from_hex(0x31ab60)),
    function: Some(Color::from_hex(0x2c56ab)),
    variable: Some(Color::from_hex(0xab2e30)),
    r#type: Some(Color::from_hex(0x4487ff)),
    constant: Some(Color::from_hex(0xab4200)),
    operator: Some(Color::from_hex(0x7e7789)),
    tag: Some(Color::from_hex(0xab2e30)),
    error: Some(Color::from_hex(0xab2e30)),
    warning: Some(Color::from_hex(0x4487ff)),
    info: Some(Color::from_hex(0x2c56ab)),
    success: Some(Color::from_hex(0x31ab60)),
    red: Some(Color::from_hex(0xff3d48)),
    orange: Some(Color::from_hex(0xab4200)),
    yellow: Some(Color::from_hex(0xff5e1e)),
    green: Some(Color::from_hex(0x3bff99)),
    cyan: Some(Color::from_hex(0x1fa5ab)),
    blue: Some(Color::from_hex(0x1efaff)),
    purple: Some(Color::from_hex(0x4487ff)),
    magenta: Some(Color::from_hex(0xffc21c)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x212024),
        base01: Color::from_hex(0x000000),
        base02: Color::from_hex(0x5a3625),
        base03: Color::from_hex(0x664b46),
        base04: Color::from_hex(0x726168),
        base05: Color::from_hex(0x7e7789),
        base06: Color::from_hex(0x8a8dab),
        base07: Color::from_hex(0x5b6da7),
        base08: Color::from_hex(0xab2e30),
        base09: Color::from_hex(0xab4200),
        base0a: Color::from_hex(0x4487ff),
        base0b: Color::from_hex(0x31ab60),
        base0c: Color::from_hex(0x1fa5ab),
        base0d: Color::from_hex(0x2c56ab),
        base0e: Color::from_hex(0xaf8427),
        base0f: Color::from_hex(0x551718),
    },
    base10: Color::from_hex(0x3c2418),
    base11: Color::from_hex(0x1e120c),
    base12: Color::from_hex(0xff3d48),
    base13: Color::from_hex(0xff5e1e),
    base14: Color::from_hex(0x3bff99),
    base15: Color::from_hex(0x1efaff),
    base16: Color::from_hex(0x4487ff),
    base17: Color::from_hex(0xffc21c),
};