chromata 1.0.0

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

/// Flexoki Light
///
/// Author: Steph Ango (https://github.com/kepano/flexoki)
/// Variant: Light
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Flexoki Light"),
    author: Cow::Borrowed("Steph Ango (https://github.com/kepano/flexoki)"),
    variant: Variant::Light,
    contrast: Contrast::High,
    bg: Color::from_hex(0xfffcf0),
    fg: Color::from_hex(0x403e3c),
    cursor: Some(Color::from_hex(0x403e3c)),
    selection: Some(Color::from_hex(0xe6e4d9)),
    line_highlight: Some(Color::from_hex(0xf2f0e5)),
    gutter: Some(Color::from_hex(0xcecdc3)),
    statusbar_bg: Some(Color::from_hex(0xf2f0e5)),
    statusbar_fg: Some(Color::from_hex(0x9f9d96)),
    comment: Some(Color::from_hex(0xcecdc3)),
    keyword: Some(Color::from_hex(0x5e409d)),
    string: Some(Color::from_hex(0x66800b)),
    function: Some(Color::from_hex(0x205ea6)),
    variable: Some(Color::from_hex(0xaf3029)),
    r#type: Some(Color::from_hex(0xad8301)),
    constant: Some(Color::from_hex(0xbc5215)),
    operator: Some(Color::from_hex(0x403e3c)),
    tag: Some(Color::from_hex(0xaf3029)),
    error: Some(Color::from_hex(0xaf3029)),
    warning: Some(Color::from_hex(0xad8301)),
    info: Some(Color::from_hex(0x205ea6)),
    success: Some(Color::from_hex(0x66800b)),
    red: Some(Color::from_hex(0xd14d41)),
    orange: Some(Color::from_hex(0xbc5215)),
    yellow: Some(Color::from_hex(0xda702c)),
    green: Some(Color::from_hex(0xd0a215)),
    cyan: Some(Color::from_hex(0x24837b)),
    blue: Some(Color::from_hex(0x879a39)),
    purple: Some(Color::from_hex(0x3aa99f)),
    magenta: Some(Color::from_hex(0x4385be)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0xfffcf0),
        base01: Color::from_hex(0xf2f0e5),
        base02: Color::from_hex(0xe6e4d9),
        base03: Color::from_hex(0xcecdc3),
        base04: Color::from_hex(0x9f9d96),
        base05: Color::from_hex(0x403e3c),
        base06: Color::from_hex(0x282726),
        base07: Color::from_hex(0x100f0f),
        base08: Color::from_hex(0xaf3029),
        base09: Color::from_hex(0xbc5215),
        base0a: Color::from_hex(0xad8301),
        base0b: Color::from_hex(0x66800b),
        base0c: Color::from_hex(0x24837b),
        base0d: Color::from_hex(0x205ea6),
        base0e: Color::from_hex(0x5e409d),
        base0f: Color::from_hex(0xa02f6f),
    },
    base10: Color::from_hex(0xf2f0e5),
    base11: Color::from_hex(0xffffff),
    base12: Color::from_hex(0xd14d41),
    base13: Color::from_hex(0xda702c),
    base14: Color::from_hex(0xd0a215),
    base15: Color::from_hex(0x879a39),
    base16: Color::from_hex(0x3aa99f),
    base17: Color::from_hex(0x4385be),
};