chromata 1.0.0

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

/// Spacedust
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Spacedust"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x0a1e24),
    fg: Color::from_hex(0xcdc7a6),
    cursor: Some(Color::from_hex(0xcdc7a6)),
    selection: Some(Color::from_hex(0x674c31)),
    line_highlight: Some(Color::from_hex(0x6e5246)),
    gutter: Some(Color::from_hex(0x897558)),
    statusbar_bg: Some(Color::from_hex(0x6e5246)),
    statusbar_fg: Some(Color::from_hex(0xab9e7f)),
    comment: Some(Color::from_hex(0x897558)),
    keyword: Some(Color::from_hex(0xe35a00)),
    string: Some(Color::from_hex(0x5cab96)),
    function: Some(Color::from_hex(0x0e548b)),
    variable: Some(Color::from_hex(0xe35a00)),
    r#type: Some(Color::from_hex(0x67a0cd)),
    constant: Some(Color::from_hex(0xe3cd7b)),
    operator: Some(Color::from_hex(0xcdc7a6)),
    tag: Some(Color::from_hex(0xe35a00)),
    error: Some(Color::from_hex(0xe35a00)),
    warning: Some(Color::from_hex(0x67a0cd)),
    info: Some(Color::from_hex(0x0e548b)),
    success: Some(Color::from_hex(0x5cab96)),
    red: Some(Color::from_hex(0xff8a39)),
    orange: Some(Color::from_hex(0xe3cd7b)),
    yellow: Some(Color::from_hex(0xffc777)),
    green: Some(Color::from_hex(0xadcab8)),
    cyan: Some(Color::from_hex(0x06afc7)),
    blue: Some(Color::from_hex(0x83a6b3)),
    purple: Some(Color::from_hex(0x67a0cd)),
    magenta: Some(Color::from_hex(0xff8a39)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x0a1e24),
        base01: Color::from_hex(0x6e5246),
        base02: Color::from_hex(0x674c31),
        base03: Color::from_hex(0x897558),
        base04: Color::from_hex(0xab9e7f),
        base05: Color::from_hex(0xcdc7a6),
        base06: Color::from_hex(0xf0f1ce),
        base07: Color::from_hex(0xfefff0),
        base08: Color::from_hex(0xe35a00),
        base09: Color::from_hex(0xe3cd7b),
        base0a: Color::from_hex(0x67a0cd),
        base0b: Color::from_hex(0x5cab96),
        base0c: Color::from_hex(0x06afc7),
        base0d: Color::from_hex(0x0e548b),
        base0e: Color::from_hex(0xe35a00),
        base0f: Color::from_hex(0x712d00),
    },
    base10: Color::from_hex(0x443220),
    base11: Color::from_hex(0x221910),
    base12: Color::from_hex(0xff8a39),
    base13: Color::from_hex(0xffc777),
    base14: Color::from_hex(0xadcab8),
    base15: Color::from_hex(0x83a6b3),
    base16: Color::from_hex(0x67a0cd),
    base17: Color::from_hex(0xff8a39),
};