chromata 1.0.0

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

/// Tokyo Night Dark
///
/// Author: Michaël Ball, based on Tokyo Night by enkia (https://github.com/enkia/tokyo-night-vscode-theme)
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Tokyo Night Dark"),
    author: Cow::Borrowed(
        "Michaël Ball, based on Tokyo Night by enkia (https://github.com/enkia/tokyo-night-vscode-theme)",
    ),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x1a1b26),
    fg: Color::from_hex(0xa9b1d6),
    cursor: Some(Color::from_hex(0xa9b1d6)),
    selection: Some(Color::from_hex(0x2f3549)),
    line_highlight: Some(Color::from_hex(0x16161e)),
    gutter: Some(Color::from_hex(0x444b6a)),
    statusbar_bg: Some(Color::from_hex(0x16161e)),
    statusbar_fg: Some(Color::from_hex(0x787c99)),
    comment: Some(Color::from_hex(0x444b6a)),
    keyword: Some(Color::from_hex(0xbb9af7)),
    string: Some(Color::from_hex(0x9ece6a)),
    function: Some(Color::from_hex(0x2ac3de)),
    variable: Some(Color::from_hex(0xc0caf5)),
    r#type: Some(Color::from_hex(0x0db9d7)),
    constant: Some(Color::from_hex(0xa9b1d6)),
    operator: Some(Color::from_hex(0xa9b1d6)),
    tag: Some(Color::from_hex(0xc0caf5)),
    error: Some(Color::from_hex(0xc0caf5)),
    warning: Some(Color::from_hex(0x0db9d7)),
    info: Some(Color::from_hex(0x2ac3de)),
    success: Some(Color::from_hex(0x9ece6a)),
    red: Some(Color::from_hex(0xff7a93)),
    orange: Some(Color::from_hex(0xa9b1d6)),
    yellow: Some(Color::from_hex(0xff9e64)),
    green: Some(Color::from_hex(0x73daca)),
    cyan: Some(Color::from_hex(0xb4f9f8)),
    blue: Some(Color::from_hex(0x7dcfff)),
    purple: Some(Color::from_hex(0x89ddff)),
    magenta: Some(Color::from_hex(0xbb9af7)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x1a1b26),
        base01: Color::from_hex(0x16161e),
        base02: Color::from_hex(0x2f3549),
        base03: Color::from_hex(0x444b6a),
        base04: Color::from_hex(0x787c99),
        base05: Color::from_hex(0xa9b1d6),
        base06: Color::from_hex(0xcbccd1),
        base07: Color::from_hex(0xd5d6db),
        base08: Color::from_hex(0xc0caf5),
        base09: Color::from_hex(0xa9b1d6),
        base0a: Color::from_hex(0x0db9d7),
        base0b: Color::from_hex(0x9ece6a),
        base0c: Color::from_hex(0xb4f9f8),
        base0d: Color::from_hex(0x2ac3de),
        base0e: Color::from_hex(0xbb9af7),
        base0f: Color::from_hex(0xf7768e),
    },
    base10: Color::from_hex(0x16161e),
    base11: Color::from_hex(0x0f0f14),
    base12: Color::from_hex(0xff7a93),
    base13: Color::from_hex(0xff9e64),
    base14: Color::from_hex(0x73daca),
    base15: Color::from_hex(0x7dcfff),
    base16: Color::from_hex(0x89ddff),
    base17: Color::from_hex(0xbb9af7),
};