chromata 1.0.0

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

/// Lavandula
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Low
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Lavandula"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Low,
    bg: Color::from_hex(0x050014),
    fg: Color::from_hex(0x645d6f),
    cursor: Some(Color::from_hex(0x645d6f)),
    selection: Some(Color::from_hex(0x372c46)),
    line_highlight: Some(Color::from_hex(0x230045)),
    gutter: Some(Color::from_hex(0x463c53)),
    statusbar_bg: Some(Color::from_hex(0x230045)),
    statusbar_fg: Some(Color::from_hex(0x554d61)),
    comment: Some(Color::from_hex(0x463c53)),
    keyword: Some(Color::from_hex(0x593f7e)),
    string: Some(Color::from_hex(0x337e6f)),
    function: Some(Color::from_hex(0x4f4a7f)),
    variable: Some(Color::from_hex(0x7c1525)),
    r#type: Some(Color::from_hex(0x8e86df)),
    constant: Some(Color::from_hex(0x7f6f49)),
    operator: Some(Color::from_hex(0x645d6f)),
    tag: Some(Color::from_hex(0x7c1525)),
    error: Some(Color::from_hex(0x7c1525)),
    warning: Some(Color::from_hex(0x8e86df)),
    info: Some(Color::from_hex(0x4f4a7f)),
    success: Some(Color::from_hex(0x337e6f)),
    red: Some(Color::from_hex(0xdf5066)),
    orange: Some(Color::from_hex(0x7f6f49)),
    yellow: Some(Color::from_hex(0xe0c286)),
    green: Some(Color::from_hex(0x52e0c4)),
    cyan: Some(Color::from_hex(0x57767f)),
    blue: Some(Color::from_hex(0x9ad3df)),
    purple: Some(Color::from_hex(0x8e86df)),
    magenta: Some(Color::from_hex(0xa675df)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x050014),
        base01: Color::from_hex(0x230045),
        base02: Color::from_hex(0x372c46),
        base03: Color::from_hex(0x463c53),
        base04: Color::from_hex(0x554d61),
        base05: Color::from_hex(0x645d6f),
        base06: Color::from_hex(0x736e7d),
        base07: Color::from_hex(0x8c91fa),
        base08: Color::from_hex(0x7c1525),
        base09: Color::from_hex(0x7f6f49),
        base0a: Color::from_hex(0x8e86df),
        base0b: Color::from_hex(0x337e6f),
        base0c: Color::from_hex(0x57767f),
        base0d: Color::from_hex(0x4f4a7f),
        base0e: Color::from_hex(0x593f7e),
        base0f: Color::from_hex(0x3e0a12),
    },
    base10: Color::from_hex(0x241d2e),
    base11: Color::from_hex(0x120e17),
    base12: Color::from_hex(0xdf5066),
    base13: Color::from_hex(0xe0c286),
    base14: Color::from_hex(0x52e0c4),
    base15: Color::from_hex(0x9ad3df),
    base16: Color::from_hex(0x8e86df),
    base17: Color::from_hex(0xa675df),
};