chromata 1.0.0

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

/// PaperColor Dark
///
/// Author: Nguyen Nguyen (https://github.com/NLKNguyen/papercolor-theme)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("PaperColor Dark"),
    author: Cow::Borrowed("Nguyen Nguyen (https://github.com/NLKNguyen/papercolor-theme)"),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x1c1c1c),
    fg: Color::from_hex(0xd0d0d0),
    cursor: Some(Color::from_hex(0xd0d0d0)),
    selection: Some(Color::from_hex(0x3a3a3a)),
    line_highlight: Some(Color::from_hex(0x303030)),
    gutter: Some(Color::from_hex(0x808080)),
    statusbar_bg: Some(Color::from_hex(0x303030)),
    statusbar_fg: Some(Color::from_hex(0x585858)),
    comment: Some(Color::from_hex(0x808080)),
    keyword: Some(Color::from_hex(0xaf87d7)),
    string: Some(Color::from_hex(0x5faf00)),
    function: Some(Color::from_hex(0x5fafd7)),
    variable: Some(Color::from_hex(0xaf005f)),
    r#type: Some(Color::from_hex(0xd7af5f)),
    constant: Some(Color::from_hex(0x5faf5f)),
    operator: Some(Color::from_hex(0xd0d0d0)),
    tag: Some(Color::from_hex(0xaf005f)),
    error: Some(Color::from_hex(0xaf005f)),
    warning: Some(Color::from_hex(0xd7af5f)),
    info: Some(Color::from_hex(0x5fafd7)),
    success: Some(Color::from_hex(0x5faf00)),
    red: Some(Color::from_hex(0xd7005f)),
    orange: Some(Color::from_hex(0x5faf5f)),
    yellow: Some(Color::from_hex(0x87d75f)),
    green: Some(Color::from_hex(0xffd75f)),
    cyan: Some(Color::from_hex(0xffaf00)),
    blue: Some(Color::from_hex(0x87d700)),
    purple: Some(Color::from_hex(0xffd700)),
    magenta: Some(Color::from_hex(0x87d7ff)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x1c1c1c),
        base01: Color::from_hex(0x303030),
        base02: Color::from_hex(0x3a3a3a),
        base03: Color::from_hex(0x808080),
        base04: Color::from_hex(0x585858),
        base05: Color::from_hex(0xd0d0d0),
        base06: Color::from_hex(0xbcbcbc),
        base07: Color::from_hex(0xc6c6c6),
        base08: Color::from_hex(0xaf005f),
        base09: Color::from_hex(0x5faf5f),
        base0a: Color::from_hex(0xd7af5f),
        base0b: Color::from_hex(0x5faf00),
        base0c: Color::from_hex(0xffaf00),
        base0d: Color::from_hex(0x5fafd7),
        base0e: Color::from_hex(0xaf87d7),
        base0f: Color::from_hex(0xff5faf),
    },
    base10: Color::from_hex(0x121212),
    base11: Color::from_hex(0x080808),
    base12: Color::from_hex(0xd7005f),
    base13: Color::from_hex(0x87d75f),
    base14: Color::from_hex(0xffd75f),
    base15: Color::from_hex(0x87d700),
    base16: Color::from_hex(0xffd700),
    base17: Color::from_hex(0x87d7ff),
};