chromata 1.0.0

1000+ editor color themes as compile-time Rust constants
Documentation
//! Catppuccin Frappe 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 Frappe
///
/// Author: https://github.com/catppuccin/catppuccin
/// Variant: Dark
/// Contrast: Normal
/// Source: base24 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Catppuccin Frappe"),
    author: Cow::Borrowed("https://github.com/catppuccin/catppuccin"),
    variant: Variant::Dark,
    contrast: Contrast::Normal,
    bg: Color::from_hex(0x303446),
    fg: Color::from_hex(0xc6d0f5),
    cursor: Some(Color::from_hex(0xc6d0f5)),
    selection: Some(Color::from_hex(0x414559)),
    line_highlight: Some(Color::from_hex(0x292c3c)),
    gutter: Some(Color::from_hex(0x51576d)),
    statusbar_bg: Some(Color::from_hex(0x292c3c)),
    statusbar_fg: Some(Color::from_hex(0x626880)),
    comment: Some(Color::from_hex(0x51576d)),
    keyword: Some(Color::from_hex(0xca9ee6)),
    string: Some(Color::from_hex(0xa6d189)),
    function: Some(Color::from_hex(0x8caaee)),
    variable: Some(Color::from_hex(0xe78284)),
    r#type: Some(Color::from_hex(0xe5c890)),
    constant: Some(Color::from_hex(0xef9f76)),
    operator: Some(Color::from_hex(0xc6d0f5)),
    tag: Some(Color::from_hex(0xe78284)),
    error: Some(Color::from_hex(0xe78284)),
    warning: Some(Color::from_hex(0xe5c890)),
    info: Some(Color::from_hex(0x8caaee)),
    success: Some(Color::from_hex(0xa6d189)),
    red: Some(Color::from_hex(0xea999c)),
    orange: Some(Color::from_hex(0xef9f76)),
    yellow: Some(Color::from_hex(0xf2d5cf)),
    green: Some(Color::from_hex(0xa6d189)),
    cyan: Some(Color::from_hex(0x81c8be)),
    blue: Some(Color::from_hex(0x99d1db)),
    purple: Some(Color::from_hex(0x85c1dc)),
    magenta: Some(Color::from_hex(0xf4b8e4)),
};

/// Full base24 palette with all 24 color slots.
pub const PALETTE: Base24Palette = Base24Palette {
    base: Base16Palette {
        base00: Color::from_hex(0x303446),
        base01: Color::from_hex(0x292c3c),
        base02: Color::from_hex(0x414559),
        base03: Color::from_hex(0x51576d),
        base04: Color::from_hex(0x626880),
        base05: Color::from_hex(0xc6d0f5),
        base06: Color::from_hex(0xf2d5cf),
        base07: Color::from_hex(0xbabbf1),
        base08: Color::from_hex(0xe78284),
        base09: Color::from_hex(0xef9f76),
        base0a: Color::from_hex(0xe5c890),
        base0b: Color::from_hex(0xa6d189),
        base0c: Color::from_hex(0x81c8be),
        base0d: Color::from_hex(0x8caaee),
        base0e: Color::from_hex(0xca9ee6),
        base0f: Color::from_hex(0xeebebe),
    },
    base10: Color::from_hex(0x292c3c),
    base11: Color::from_hex(0x232634),
    base12: Color::from_hex(0xea999c),
    base13: Color::from_hex(0xf2d5cf),
    base14: Color::from_hex(0xa6d189),
    base15: Color::from_hex(0x99d1db),
    base16: Color::from_hex(0x85c1dc),
    base17: Color::from_hex(0xf4b8e4),
};