chromata 1.0.0

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

/// Jet Brains Darcula
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Jet Brains Darcula"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x202020),
    fg: Color::from_hex(0x979797),
    cursor: Some(Color::from_hex(0x979797)),
    selection: Some(Color::from_hex(0x555555)),
    line_highlight: Some(Color::from_hex(0x000000)),
    gutter: Some(Color::from_hex(0x6b6b6b)),
    statusbar_bg: Some(Color::from_hex(0x000000)),
    statusbar_fg: Some(Color::from_hex(0x818181)),
    comment: Some(Color::from_hex(0x6b6b6b)),
    keyword: Some(Color::from_hex(0xfa54ff)),
    string: Some(Color::from_hex(0x126e00)),
    function: Some(Color::from_hex(0x4581eb)),
    variable: Some(Color::from_hex(0xfa5355)),
    r#type: Some(Color::from_hex(0x6d9df1)),
    constant: Some(Color::from_hex(0xc2c300)),
    operator: Some(Color::from_hex(0x979797)),
    tag: Some(Color::from_hex(0xfa5355)),
    error: Some(Color::from_hex(0xfa5355)),
    warning: Some(Color::from_hex(0x6d9df1)),
    info: Some(Color::from_hex(0x4581eb)),
    success: Some(Color::from_hex(0x126e00)),
    red: Some(Color::from_hex(0xfb7172)),
    orange: Some(Color::from_hex(0xc2c300)),
    yellow: Some(Color::from_hex(0xffff00)),
    green: Some(Color::from_hex(0x67ff4f)),
    cyan: Some(Color::from_hex(0x33c2c1)),
    blue: Some(Color::from_hex(0x60d3d1)),
    purple: Some(Color::from_hex(0x6d9df1)),
    magenta: Some(Color::from_hex(0xfb82ff)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x202020),
        base01: Color::from_hex(0x000000),
        base02: Color::from_hex(0x555555),
        base03: Color::from_hex(0x6b6b6b),
        base04: Color::from_hex(0x818181),
        base05: Color::from_hex(0x979797),
        base06: Color::from_hex(0xadadad),
        base07: Color::from_hex(0xeeeeee),
        base08: Color::from_hex(0xfa5355),
        base09: Color::from_hex(0xc2c300),
        base0a: Color::from_hex(0x6d9df1),
        base0b: Color::from_hex(0x126e00),
        base0c: Color::from_hex(0x33c2c1),
        base0d: Color::from_hex(0x4581eb),
        base0e: Color::from_hex(0xfa54ff),
        base0f: Color::from_hex(0x7d292a),
    },
    base10: Color::from_hex(0x383838),
    base11: Color::from_hex(0x1c1c1c),
    base12: Color::from_hex(0xfb7172),
    base13: Color::from_hex(0xffff00),
    base14: Color::from_hex(0x67ff4f),
    base15: Color::from_hex(0x60d3d1),
    base16: Color::from_hex(0x6d9df1),
    base17: Color::from_hex(0xfb82ff),
};