chromata 1.0.0

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

/// Ubuntu
///
/// Author: FredHappyface (https://github.com/fredHappyface)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Ubuntu"),
    author: Cow::Borrowed("FredHappyface (https://github.com/fredHappyface)"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x300a24),
    fg: Color::from_hex(0xb3b7b0),
    cursor: Some(Color::from_hex(0xb3b7b0)),
    selection: Some(Color::from_hex(0x555753)),
    line_highlight: Some(Color::from_hex(0x2e3436)),
    gutter: Some(Color::from_hex(0x747772)),
    statusbar_bg: Some(Color::from_hex(0x2e3436)),
    statusbar_fg: Some(Color::from_hex(0x949791)),
    comment: Some(Color::from_hex(0x747772)),
    keyword: Some(Color::from_hex(0x75507b)),
    string: Some(Color::from_hex(0x4e9a06)),
    function: Some(Color::from_hex(0x3465a4)),
    variable: Some(Color::from_hex(0xcc0000)),
    r#type: Some(Color::from_hex(0x729fcf)),
    constant: Some(Color::from_hex(0xc4a000)),
    operator: Some(Color::from_hex(0xb3b7b0)),
    tag: Some(Color::from_hex(0xcc0000)),
    error: Some(Color::from_hex(0xcc0000)),
    warning: Some(Color::from_hex(0x729fcf)),
    info: Some(Color::from_hex(0x3465a4)),
    success: Some(Color::from_hex(0x4e9a06)),
    red: Some(Color::from_hex(0xef2929)),
    orange: Some(Color::from_hex(0xc4a000)),
    yellow: Some(Color::from_hex(0xfce94f)),
    green: Some(Color::from_hex(0x8ae234)),
    cyan: Some(Color::from_hex(0x06989a)),
    blue: Some(Color::from_hex(0x34e2e2)),
    purple: Some(Color::from_hex(0x729fcf)),
    magenta: Some(Color::from_hex(0xad7fa8)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x300a24),
        base01: Color::from_hex(0x2e3436),
        base02: Color::from_hex(0x555753),
        base03: Color::from_hex(0x747772),
        base04: Color::from_hex(0x949791),
        base05: Color::from_hex(0xb3b7b0),
        base06: Color::from_hex(0xd3d7cf),
        base07: Color::from_hex(0xeeeeec),
        base08: Color::from_hex(0xcc0000),
        base09: Color::from_hex(0xc4a000),
        base0a: Color::from_hex(0x729fcf),
        base0b: Color::from_hex(0x4e9a06),
        base0c: Color::from_hex(0x06989a),
        base0d: Color::from_hex(0x3465a4),
        base0e: Color::from_hex(0x75507b),
        base0f: Color::from_hex(0x660000),
    },
    base10: Color::from_hex(0x383a37),
    base11: Color::from_hex(0x1c1d1b),
    base12: Color::from_hex(0xef2929),
    base13: Color::from_hex(0xfce94f),
    base14: Color::from_hex(0x8ae234),
    base15: Color::from_hex(0x34e2e2),
    base16: Color::from_hex(0x729fcf),
    base17: Color::from_hex(0xad7fa8),
};