chromata 1.0.0

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

/// Flatland
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Flatland"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x1c1e20),
    fg: Color::from_hex(0xc5c6c4),
    cursor: Some(Color::from_hex(0xc5c6c4)),
    selection: Some(Color::from_hex(0x1c1d19)),
    line_highlight: Some(Color::from_hex(0x1c1d19)),
    gutter: Some(Color::from_hex(0x545552)),
    statusbar_bg: Some(Color::from_hex(0x1c1d19)),
    statusbar_fg: Some(Color::from_hex(0x8d8e8b)),
    comment: Some(Color::from_hex(0x545552)),
    keyword: Some(Color::from_hex(0x695abb)),
    string: Some(Color::from_hex(0x9ed264)),
    function: Some(Color::from_hex(0x4f96be)),
    variable: Some(Color::from_hex(0xf18238)),
    r#type: Some(Color::from_hex(0x61b8d0)),
    constant: Some(Color::from_hex(0xf3ef6d)),
    operator: Some(Color::from_hex(0xc5c6c4)),
    tag: Some(Color::from_hex(0xf18238)),
    error: Some(Color::from_hex(0xf18238)),
    warning: Some(Color::from_hex(0x61b8d0)),
    info: Some(Color::from_hex(0x4f96be)),
    success: Some(Color::from_hex(0x9ed264)),
    red: Some(Color::from_hex(0xd12a24)),
    orange: Some(Color::from_hex(0xf3ef6d)),
    yellow: Some(Color::from_hex(0xff8948)),
    green: Some(Color::from_hex(0xa7d32c)),
    cyan: Some(Color::from_hex(0xd53864)),
    blue: Some(Color::from_hex(0xd53864)),
    purple: Some(Color::from_hex(0x61b8d0)),
    magenta: Some(Color::from_hex(0x695abb)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x1c1e20),
        base01: Color::from_hex(0x1c1d19),
        base02: Color::from_hex(0x1c1d19),
        base03: Color::from_hex(0x545552),
        base04: Color::from_hex(0x8d8e8b),
        base05: Color::from_hex(0xc5c6c4),
        base06: Color::from_hex(0xfefffe),
        base07: Color::from_hex(0xfefffe),
        base08: Color::from_hex(0xf18238),
        base09: Color::from_hex(0xf3ef6d),
        base0a: Color::from_hex(0x61b8d0),
        base0b: Color::from_hex(0x9ed264),
        base0c: Color::from_hex(0xd53864),
        base0d: Color::from_hex(0x4f96be),
        base0e: Color::from_hex(0x695abb),
        base0f: Color::from_hex(0x78411c),
    },
    base10: Color::from_hex(0x121310),
    base11: Color::from_hex(0x090908),
    base12: Color::from_hex(0xd12a24),
    base13: Color::from_hex(0xff8948),
    base14: Color::from_hex(0xa7d32c),
    base15: Color::from_hex(0xd53864),
    base16: Color::from_hex(0x61b8d0),
    base17: Color::from_hex(0x695abb),
};