chromata 1.0.0

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

/// Catppuccin Latte
///
/// Author: https://github.com/catppuccin/catppuccin
/// Variant: Light
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Catppuccin Latte"),
    author: Cow::Borrowed("https://github.com/catppuccin/catppuccin"),
    variant: Variant::Light,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0xeff1f5),
    fg: Color::from_hex(0x4c4f69),
    cursor: Some(Color::from_hex(0x4c4f69)),
    selection: Some(Color::from_hex(0xccd0da)),
    line_highlight: Some(Color::from_hex(0xe6e9ef)),
    gutter: Some(Color::from_hex(0xbcc0cc)),
    statusbar_bg: Some(Color::from_hex(0xe6e9ef)),
    statusbar_fg: Some(Color::from_hex(0xacb0be)),
    comment: Some(Color::from_hex(0xbcc0cc)),
    keyword: Some(Color::from_hex(0x8839ef)),
    string: Some(Color::from_hex(0x40a02b)),
    function: Some(Color::from_hex(0x1e66f5)),
    variable: Some(Color::from_hex(0xd20f39)),
    r#type: Some(Color::from_hex(0xdf8e1d)),
    constant: Some(Color::from_hex(0xfe640b)),
    operator: Some(Color::from_hex(0x4c4f69)),
    tag: Some(Color::from_hex(0xd20f39)),
    error: Some(Color::from_hex(0xd20f39)),
    warning: Some(Color::from_hex(0xdf8e1d)),
    info: Some(Color::from_hex(0x1e66f5)),
    success: Some(Color::from_hex(0x40a02b)),
    red: Some(Color::from_hex(0xe64553)),
    orange: Some(Color::from_hex(0xfe640b)),
    yellow: Some(Color::from_hex(0xdc8a78)),
    green: Some(Color::from_hex(0x40a02b)),
    cyan: Some(Color::from_hex(0x179299)),
    blue: Some(Color::from_hex(0x04a5e5)),
    purple: Some(Color::from_hex(0x209fb5)),
    magenta: Some(Color::from_hex(0xea76cb)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0xeff1f5),
        base01: Color::from_hex(0xe6e9ef),
        base02: Color::from_hex(0xccd0da),
        base03: Color::from_hex(0xbcc0cc),
        base04: Color::from_hex(0xacb0be),
        base05: Color::from_hex(0x4c4f69),
        base06: Color::from_hex(0xdc8a78),
        base07: Color::from_hex(0x7287fd),
        base08: Color::from_hex(0xd20f39),
        base09: Color::from_hex(0xfe640b),
        base0a: Color::from_hex(0xdf8e1d),
        base0b: Color::from_hex(0x40a02b),
        base0c: Color::from_hex(0x179299),
        base0d: Color::from_hex(0x1e66f5),
        base0e: Color::from_hex(0x8839ef),
        base0f: Color::from_hex(0xdd7878),
    },
    base10: Color::from_hex(0xe6e9ef),
    base11: Color::from_hex(0xdce0e8),
    base12: Color::from_hex(0xe64553),
    base13: Color::from_hex(0xdc8a78),
    base14: Color::from_hex(0x40a02b),
    base15: Color::from_hex(0x04a5e5),
    base16: Color::from_hex(0x209fb5),
    base17: Color::from_hex(0xea76cb),
};