chromata 1.0.0

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

/// Violet Light
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Light
/// Contrast: Low
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Violet Light"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Light,
    contrast: Contrast::Low,
    bg: Color::from_hex(0xfcf4dc),
    fg: Color::from_hex(0xafaea9),
    cursor: Some(Color::from_hex(0xafaea9)),
    selection: Some(Color::from_hex(0x45484b)),
    line_highlight: Some(Color::from_hex(0x56595c)),
    gutter: Some(Color::from_hex(0x686a6a)),
    statusbar_bg: Some(Color::from_hex(0x56595c)),
    statusbar_fg: Some(Color::from_hex(0x8c8c8a)),
    comment: Some(Color::from_hex(0x686a6a)),
    keyword: Some(Color::from_hex(0xd13a82)),
    string: Some(Color::from_hex(0x85981c)),
    function: Some(Color::from_hex(0x2e8bce)),
    variable: Some(Color::from_hex(0xc94c22)),
    r#type: Some(Color::from_hex(0x2075c7)),
    constant: Some(Color::from_hex(0xb4881d)),
    operator: Some(Color::from_hex(0xafaea9)),
    tag: Some(Color::from_hex(0xc94c22)),
    error: Some(Color::from_hex(0xc94c22)),
    warning: Some(Color::from_hex(0x2075c7)),
    info: Some(Color::from_hex(0x2e8bce)),
    success: Some(Color::from_hex(0x85981c)),
    red: Some(Color::from_hex(0xbd3612)),
    orange: Some(Color::from_hex(0xb4881d)),
    yellow: Some(Color::from_hex(0xa57704)),
    green: Some(Color::from_hex(0x728903)),
    cyan: Some(Color::from_hex(0x32a198)),
    blue: Some(Color::from_hex(0x259185)),
    purple: Some(Color::from_hex(0x2075c7)),
    magenta: Some(Color::from_hex(0xc61b6e)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0xfcf4dc),
        base01: Color::from_hex(0x56595c),
        base02: Color::from_hex(0x45484b),
        base03: Color::from_hex(0x686a6a),
        base04: Color::from_hex(0x8c8c8a),
        base05: Color::from_hex(0xafaea9),
        base06: Color::from_hex(0xd3d0c9),
        base07: Color::from_hex(0xc8c5bd),
        base08: Color::from_hex(0xc94c22),
        base09: Color::from_hex(0xb4881d),
        base0a: Color::from_hex(0x2075c7),
        base0b: Color::from_hex(0x85981c),
        base0c: Color::from_hex(0x32a198),
        base0d: Color::from_hex(0x2e8bce),
        base0e: Color::from_hex(0xd13a82),
        base0f: Color::from_hex(0x642611),
    },
    base10: Color::from_hex(0x2e3032),
    base11: Color::from_hex(0x171819),
    base12: Color::from_hex(0xbd3612),
    base13: Color::from_hex(0xa57704),
    base14: Color::from_hex(0x728903),
    base15: Color::from_hex(0x259185),
    base16: Color::from_hex(0x2075c7),
    base17: Color::from_hex(0xc61b6e),
};