chromata 1.0.0

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

/// Lovelace
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Lovelace"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x1d1f28),
    fg: Color::from_hex(0xceced3),
    cursor: Some(Color::from_hex(0xceced3)),
    selection: Some(Color::from_hex(0x414458)),
    line_highlight: Some(Color::from_hex(0x282a36)),
    gutter: Some(Color::from_hex(0x707281)),
    statusbar_bg: Some(Color::from_hex(0x282a36)),
    statusbar_fg: Some(Color::from_hex(0x9fa0aa)),
    comment: Some(Color::from_hex(0x707281)),
    keyword: Some(Color::from_hex(0xc574dd)),
    string: Some(Color::from_hex(0x5adecd)),
    function: Some(Color::from_hex(0x8897f4)),
    variable: Some(Color::from_hex(0xf37f97)),
    r#type: Some(Color::from_hex(0x556fff)),
    constant: Some(Color::from_hex(0xf2a272)),
    operator: Some(Color::from_hex(0xceced3)),
    tag: Some(Color::from_hex(0xf37f97)),
    error: Some(Color::from_hex(0xf37f97)),
    warning: Some(Color::from_hex(0x556fff)),
    info: Some(Color::from_hex(0x8897f4)),
    success: Some(Color::from_hex(0x5adecd)),
    red: Some(Color::from_hex(0xff4971)),
    orange: Some(Color::from_hex(0xf2a272)),
    yellow: Some(Color::from_hex(0xff8037)),
    green: Some(Color::from_hex(0x18e3c8)),
    cyan: Some(Color::from_hex(0x79e6f3)),
    blue: Some(Color::from_hex(0x3fdcee)),
    purple: Some(Color::from_hex(0x556fff)),
    magenta: Some(Color::from_hex(0xb043d1)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x1d1f28),
        base01: Color::from_hex(0x282a36),
        base02: Color::from_hex(0x414458),
        base03: Color::from_hex(0x707281),
        base04: Color::from_hex(0x9fa0aa),
        base05: Color::from_hex(0xceced3),
        base06: Color::from_hex(0xfdfdfd),
        base07: Color::from_hex(0xbebec1),
        base08: Color::from_hex(0xf37f97),
        base09: Color::from_hex(0xf2a272),
        base0a: Color::from_hex(0x556fff),
        base0b: Color::from_hex(0x5adecd),
        base0c: Color::from_hex(0x79e6f3),
        base0d: Color::from_hex(0x8897f4),
        base0e: Color::from_hex(0xc574dd),
        base0f: Color::from_hex(0x793f4b),
    },
    base10: Color::from_hex(0x2b2d3a),
    base11: Color::from_hex(0x15161d),
    base12: Color::from_hex(0xff4971),
    base13: Color::from_hex(0xff8037),
    base14: Color::from_hex(0x18e3c8),
    base15: Color::from_hex(0x3fdcee),
    base16: Color::from_hex(0x556fff),
    base17: Color::from_hex(0xb043d1),
};