chromata 1.0.0

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

/// Kanagawa Dragon
///
/// Author: Stefan Weigl-Bosker (https://github.com/sweiglbosker), Tommaso Laurenzi (https://github.com/rebelot/kanagawa.nvim)
/// Variant: Dark
/// Contrast: High
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Kanagawa Dragon"),
    author: Cow::Borrowed(
        "Stefan Weigl-Bosker (https://github.com/sweiglbosker), Tommaso Laurenzi (https://github.com/rebelot/kanagawa.nvim)",
    ),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x181616),
    fg: Color::from_hex(0xc5c9c5),
    cursor: Some(Color::from_hex(0xc5c9c5)),
    selection: Some(Color::from_hex(0x393836)),
    line_highlight: Some(Color::from_hex(0x282727)),
    gutter: Some(Color::from_hex(0x625e5a)),
    statusbar_bg: Some(Color::from_hex(0x282727)),
    statusbar_fg: Some(Color::from_hex(0x737c73)),
    comment: Some(Color::from_hex(0x625e5a)),
    keyword: Some(Color::from_hex(0xa292a3)),
    string: Some(Color::from_hex(0x8a9a7b)),
    function: Some(Color::from_hex(0x8ba4b0)),
    variable: Some(Color::from_hex(0xc4746e)),
    r#type: Some(Color::from_hex(0xc4b28a)),
    constant: Some(Color::from_hex(0xb6927b)),
    operator: Some(Color::from_hex(0xc5c9c5)),
    tag: Some(Color::from_hex(0xc4746e)),
    error: Some(Color::from_hex(0xc4746e)),
    warning: Some(Color::from_hex(0xc4b28a)),
    info: Some(Color::from_hex(0x8ba4b0)),
    success: Some(Color::from_hex(0x8a9a7b)),
    red: Some(Color::from_hex(0xe46876)),
    orange: Some(Color::from_hex(0xb6927b)),
    yellow: Some(Color::from_hex(0xe6c384)),
    green: Some(Color::from_hex(0x87a987)),
    cyan: Some(Color::from_hex(0x8ea4a2)),
    blue: Some(Color::from_hex(0x7aa89f)),
    purple: Some(Color::from_hex(0x7fb4ca)),
    magenta: Some(Color::from_hex(0x938aa9)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x181616),
        base01: Color::from_hex(0x282727),
        base02: Color::from_hex(0x393836),
        base03: Color::from_hex(0x625e5a),
        base04: Color::from_hex(0x737c73),
        base05: Color::from_hex(0xc5c9c5),
        base06: Color::from_hex(0xc8c093),
        base07: Color::from_hex(0xc5c9c5),
        base08: Color::from_hex(0xc4746e),
        base09: Color::from_hex(0xb6927b),
        base0a: Color::from_hex(0xc4b28a),
        base0b: Color::from_hex(0x8a9a7b),
        base0c: Color::from_hex(0x8ea4a2),
        base0d: Color::from_hex(0x8ba4b0),
        base0e: Color::from_hex(0xa292a3),
        base0f: Color::from_hex(0xb98d7b),
    },
    base10: Color::from_hex(0x12120f),
    base11: Color::from_hex(0x0d0c0c),
    base12: Color::from_hex(0xe46876),
    base13: Color::from_hex(0xe6c384),
    base14: Color::from_hex(0x87a987),
    base15: Color::from_hex(0x7aa89f),
    base16: Color::from_hex(0x7fb4ca),
    base17: Color::from_hex(0x938aa9),
};