chromata 1.0.0

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

/// Firefox Dev
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Firefox Dev"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x0e1011),
    fg: Color::from_hex(0xa5acae),
    cursor: Some(Color::from_hex(0xa5acae)),
    selection: Some(Color::from_hex(0x001e26)),
    line_highlight: Some(Color::from_hex(0x002731)),
    gutter: Some(Color::from_hex(0x374d53)),
    statusbar_bg: Some(Color::from_hex(0x002731)),
    statusbar_fg: Some(Color::from_hex(0x6e7d81)),
    comment: Some(Color::from_hex(0x374d53)),
    keyword: Some(Color::from_hex(0xd75cff)),
    string: Some(Color::from_hex(0x5eb83c)),
    function: Some(Color::from_hex(0x359ddf)),
    variable: Some(Color::from_hex(0xe63853)),
    r#type: Some(Color::from_hex(0x006fc0)),
    constant: Some(Color::from_hex(0xa57705)),
    operator: Some(Color::from_hex(0xa5acae)),
    tag: Some(Color::from_hex(0xe63853)),
    error: Some(Color::from_hex(0xe63853)),
    warning: Some(Color::from_hex(0x006fc0)),
    info: Some(Color::from_hex(0x359ddf)),
    success: Some(Color::from_hex(0x5eb83c)),
    red: Some(Color::from_hex(0xe1003f)),
    orange: Some(Color::from_hex(0xa57705)),
    yellow: Some(Color::from_hex(0xcc9308)),
    green: Some(Color::from_hex(0x1d9000)),
    cyan: Some(Color::from_hex(0x4b73a2)),
    blue: Some(Color::from_hex(0x005794)),
    purple: Some(Color::from_hex(0x006fc0)),
    magenta: Some(Color::from_hex(0xa200da)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x0e1011),
        base01: Color::from_hex(0x002731),
        base02: Color::from_hex(0x001e26),
        base03: Color::from_hex(0x374d53),
        base04: Color::from_hex(0x6e7d81),
        base05: Color::from_hex(0xa5acae),
        base06: Color::from_hex(0xdcdcdc),
        base07: Color::from_hex(0xe2e2e2),
        base08: Color::from_hex(0xe63853),
        base09: Color::from_hex(0xa57705),
        base0a: Color::from_hex(0x006fc0),
        base0b: Color::from_hex(0x5eb83c),
        base0c: Color::from_hex(0x4b73a2),
        base0d: Color::from_hex(0x359ddf),
        base0e: Color::from_hex(0xd75cff),
        base0f: Color::from_hex(0x731c29),
    },
    base10: Color::from_hex(0x001419),
    base11: Color::from_hex(0x000a0c),
    base12: Color::from_hex(0xe1003f),
    base13: Color::from_hex(0xcc9308),
    base14: Color::from_hex(0x1d9000),
    base15: Color::from_hex(0x005794),
    base16: Color::from_hex(0x006fc0),
    base17: Color::from_hex(0xa200da),
};