chromata 1.0.0

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

/// Fun Forrest
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Fun Forrest"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x241200),
    fg: Color::from_hex(0xc5ab60),
    cursor: Some(Color::from_hex(0xc5ab60)),
    selection: Some(Color::from_hex(0x7e6954)),
    line_highlight: Some(Color::from_hex(0x000000)),
    gutter: Some(Color::from_hex(0x957f58)),
    statusbar_bg: Some(Color::from_hex(0x000000)),
    statusbar_fg: Some(Color::from_hex(0xad955c)),
    comment: Some(Color::from_hex(0x957f58)),
    keyword: Some(Color::from_hex(0x8c4231)),
    string: Some(Color::from_hex(0x909b00)),
    function: Some(Color::from_hex(0x4698a2)),
    variable: Some(Color::from_hex(0xd5252b)),
    r#type: Some(Color::from_hex(0x7cc9ce)),
    constant: Some(Color::from_hex(0xbd8a13)),
    operator: Some(Color::from_hex(0xc5ab60)),
    tag: Some(Color::from_hex(0xd5252b)),
    error: Some(Color::from_hex(0xd5252b)),
    warning: Some(Color::from_hex(0x7cc9ce)),
    info: Some(Color::from_hex(0x4698a2)),
    success: Some(Color::from_hex(0x909b00)),
    red: Some(Color::from_hex(0xe4591b)),
    orange: Some(Color::from_hex(0xbd8a13)),
    yellow: Some(Color::from_hex(0xffca1b)),
    green: Some(Color::from_hex(0xbfc659)),
    cyan: Some(Color::from_hex(0xd98112)),
    blue: Some(Color::from_hex(0xe6a96b)),
    purple: Some(Color::from_hex(0x7cc9ce)),
    magenta: Some(Color::from_hex(0xd16349)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x241200),
        base01: Color::from_hex(0x000000),
        base02: Color::from_hex(0x7e6954),
        base03: Color::from_hex(0x957f58),
        base04: Color::from_hex(0xad955c),
        base05: Color::from_hex(0xc5ab60),
        base06: Color::from_hex(0xddc165),
        base07: Color::from_hex(0xffe9a3),
        base08: Color::from_hex(0xd5252b),
        base09: Color::from_hex(0xbd8a13),
        base0a: Color::from_hex(0x7cc9ce),
        base0b: Color::from_hex(0x909b00),
        base0c: Color::from_hex(0xd98112),
        base0d: Color::from_hex(0x4698a2),
        base0e: Color::from_hex(0x8c4231),
        base0f: Color::from_hex(0x6a1215),
    },
    base10: Color::from_hex(0x544638),
    base11: Color::from_hex(0x2a231c),
    base12: Color::from_hex(0xe4591b),
    base13: Color::from_hex(0xffca1b),
    base14: Color::from_hex(0xbfc659),
    base15: Color::from_hex(0xe6a96b),
    base16: Color::from_hex(0x7cc9ce),
    base17: Color::from_hex(0xd16349),
};