chromata 1.0.0

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

/// Hivacruz
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Hivacruz"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x132537),
    fg: Color::from_hex(0x8c92ac),
    cursor: Some(Color::from_hex(0x8c92ac)),
    selection: Some(Color::from_hex(0x6b7394)),
    line_highlight: Some(Color::from_hex(0x202746)),
    gutter: Some(Color::from_hex(0x767d9c)),
    statusbar_bg: Some(Color::from_hex(0x202746)),
    statusbar_fg: Some(Color::from_hex(0x8188a4)),
    comment: Some(Color::from_hex(0x767d9c)),
    keyword: Some(Color::from_hex(0x6679cc)),
    string: Some(Color::from_hex(0xac9739)),
    function: Some(Color::from_hex(0x3d8fd1)),
    variable: Some(Color::from_hex(0xc94922)),
    r#type: Some(Color::from_hex(0x898ea4)),
    constant: Some(Color::from_hex(0xc08b30)),
    operator: Some(Color::from_hex(0x8c92ac)),
    tag: Some(Color::from_hex(0xc94922)),
    error: Some(Color::from_hex(0xc94922)),
    warning: Some(Color::from_hex(0x898ea4)),
    info: Some(Color::from_hex(0x3d8fd1)),
    success: Some(Color::from_hex(0xac9739)),
    red: Some(Color::from_hex(0xc76b29)),
    orange: Some(Color::from_hex(0xc08b30)),
    yellow: Some(Color::from_hex(0x5e6687)),
    green: Some(Color::from_hex(0x73ad43)),
    cyan: Some(Color::from_hex(0x22a2c9)),
    blue: Some(Color::from_hex(0x9c637a)),
    purple: Some(Color::from_hex(0x898ea4)),
    magenta: Some(Color::from_hex(0xdfe2f1)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x132537),
        base01: Color::from_hex(0x202746),
        base02: Color::from_hex(0x6b7394),
        base03: Color::from_hex(0x767d9c),
        base04: Color::from_hex(0x8188a4),
        base05: Color::from_hex(0x8c92ac),
        base06: Color::from_hex(0x979db4),
        base07: Color::from_hex(0xf5f7ff),
        base08: Color::from_hex(0xc94922),
        base09: Color::from_hex(0xc08b30),
        base0a: Color::from_hex(0x898ea4),
        base0b: Color::from_hex(0xac9739),
        base0c: Color::from_hex(0x22a2c9),
        base0d: Color::from_hex(0x3d8fd1),
        base0e: Color::from_hex(0x6679cc),
        base0f: Color::from_hex(0x642411),
    },
    base10: Color::from_hex(0x474c62),
    base11: Color::from_hex(0x232631),
    base12: Color::from_hex(0xc76b29),
    base13: Color::from_hex(0x5e6687),
    base14: Color::from_hex(0x73ad43),
    base15: Color::from_hex(0x9c637a),
    base16: Color::from_hex(0x898ea4),
    base17: Color::from_hex(0xdfe2f1),
};