chromata 1.0.0

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

/// Twilight
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Twilight"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x141414),
    fg: Color::from_hex(0xc8c8a7),
    cursor: Some(Color::from_hex(0xc8c8a7)),
    selection: Some(Color::from_hex(0x262626)),
    line_highlight: Some(Color::from_hex(0x141414)),
    gutter: Some(Color::from_hex(0x5c5c51)),
    statusbar_bg: Some(Color::from_hex(0x141414)),
    statusbar_fg: Some(Color::from_hex(0x92927c)),
    comment: Some(Color::from_hex(0x5c5c51)),
    keyword: Some(Color::from_hex(0xb4be7b)),
    string: Some(Color::from_hex(0xafb979)),
    function: Some(Color::from_hex(0x444649)),
    variable: Some(Color::from_hex(0xc06c43)),
    r#type: Some(Color::from_hex(0x5a5d61)),
    constant: Some(Color::from_hex(0xc2a86c)),
    operator: Some(Color::from_hex(0xc8c8a7)),
    tag: Some(Color::from_hex(0xc06c43)),
    error: Some(Color::from_hex(0xc06c43)),
    warning: Some(Color::from_hex(0x5a5d61)),
    info: Some(Color::from_hex(0x444649)),
    success: Some(Color::from_hex(0xafb979)),
    red: Some(Color::from_hex(0xdd7c4c)),
    orange: Some(Color::from_hex(0xc2a86c)),
    yellow: Some(Color::from_hex(0xe1c47d)),
    green: Some(Color::from_hex(0xcbd88c)),
    cyan: Some(Color::from_hex(0x778284)),
    blue: Some(Color::from_hex(0x8a989a)),
    purple: Some(Color::from_hex(0x5a5d61)),
    magenta: Some(Color::from_hex(0xd0db8e)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x141414),
        base01: Color::from_hex(0x141414),
        base02: Color::from_hex(0x262626),
        base03: Color::from_hex(0x5c5c51),
        base04: Color::from_hex(0x92927c),
        base05: Color::from_hex(0xc8c8a7),
        base06: Color::from_hex(0xfeffd3),
        base07: Color::from_hex(0xfeffd3),
        base08: Color::from_hex(0xc06c43),
        base09: Color::from_hex(0xc2a86c),
        base0a: Color::from_hex(0x5a5d61),
        base0b: Color::from_hex(0xafb979),
        base0c: Color::from_hex(0x778284),
        base0d: Color::from_hex(0x444649),
        base0e: Color::from_hex(0xb4be7b),
        base0f: Color::from_hex(0x603621),
    },
    base10: Color::from_hex(0x191919),
    base11: Color::from_hex(0x0c0c0c),
    base12: Color::from_hex(0xdd7c4c),
    base13: Color::from_hex(0xe1c47d),
    base14: Color::from_hex(0xcbd88c),
    base15: Color::from_hex(0x8a989a),
    base16: Color::from_hex(0x5a5d61),
    base17: Color::from_hex(0xd0db8e),
};