chromata 1.0.0

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

/// Sparky
///
/// Author: Leila Sother (https://github.com/mixcoac)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Sparky"),
    author: Cow::Borrowed("Leila Sother (https://github.com/mixcoac)"),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x072b31),
    fg: Color::from_hex(0xf4f5f0),
    cursor: Some(Color::from_hex(0xf4f5f0)),
    selection: Some(Color::from_hex(0x003c46)),
    line_highlight: Some(Color::from_hex(0x00313c)),
    gutter: Some(Color::from_hex(0x003b49)),
    statusbar_bg: Some(Color::from_hex(0x00313c)),
    statusbar_fg: Some(Color::from_hex(0x00778b)),
    comment: Some(Color::from_hex(0x003b49)),
    keyword: Some(Color::from_hex(0xd59ed7)),
    string: Some(Color::from_hex(0x78d64b)),
    function: Some(Color::from_hex(0x4698cb)),
    variable: Some(Color::from_hex(0xff585d)),
    r#type: Some(Color::from_hex(0xfbdd40)),
    constant: Some(Color::from_hex(0xff8f1c)),
    operator: Some(Color::from_hex(0xf4f5f0)),
    tag: Some(Color::from_hex(0xff585d)),
    error: Some(Color::from_hex(0xff585d)),
    warning: Some(Color::from_hex(0xfbdd40)),
    info: Some(Color::from_hex(0x4698cb)),
    success: Some(Color::from_hex(0x78d64b)),
    red: Some(Color::from_hex(0xff7276)),
    orange: Some(Color::from_hex(0xff8f1c)),
    yellow: Some(Color::from_hex(0xf6eb61)),
    green: Some(Color::from_hex(0x8edd65)),
    cyan: Some(Color::from_hex(0x2dccd3)),
    blue: Some(Color::from_hex(0x00c1d5)),
    purple: Some(Color::from_hex(0x69b3e7)),
    magenta: Some(Color::from_hex(0xf99fc9)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x072b31),
        base01: Color::from_hex(0x00313c),
        base02: Color::from_hex(0x003c46),
        base03: Color::from_hex(0x003b49),
        base04: Color::from_hex(0x00778b),
        base05: Color::from_hex(0xf4f5f0),
        base06: Color::from_hex(0xf5f5f1),
        base07: Color::from_hex(0xffffff),
        base08: Color::from_hex(0xff585d),
        base09: Color::from_hex(0xff8f1c),
        base0a: Color::from_hex(0xfbdd40),
        base0b: Color::from_hex(0x78d64b),
        base0c: Color::from_hex(0x2dccd3),
        base0d: Color::from_hex(0x4698cb),
        base0e: Color::from_hex(0xd59ed7),
        base0f: Color::from_hex(0x9b704d),
    },
    base10: Color::from_hex(0x4b4f54),
    base11: Color::from_hex(0x212322),
    base12: Color::from_hex(0xff7276),
    base13: Color::from_hex(0xf6eb61),
    base14: Color::from_hex(0x8edd65),
    base15: Color::from_hex(0x00c1d5),
    base16: Color::from_hex(0x69b3e7),
    base17: Color::from_hex(0xf99fc9),
};