chromata 1.0.0

1000+ editor color themes as compile-time Rust constants
Documentation
//! Snazzy color theme.
//!
//! Auto-generated by `cargo xtask generate base16` — do not edit.

use crate::{Color, Contrast, Theme, Variant};
use alloc::borrow::Cow;

/// Snazzy
///
/// Author: Chawye Hsu (https://github.com/chawyehsu), based on Hyper Snazzy Theme (https://github.com/sindresorhus/hyper-snazzy)
/// Variant: Dark
/// Contrast: High
/// Source: base16 (tinted-theming/schemes)
pub const THEME: Theme = Theme {
    name: Cow::Borrowed("Snazzy"),
    author: Cow::Borrowed(
        "Chawye Hsu (https://github.com/chawyehsu), based on Hyper Snazzy Theme (https://github.com/sindresorhus/hyper-snazzy)",
    ),
    variant: Variant::Dark,
    contrast: Contrast::High,
    bg: Color::from_hex(0x282a36),
    fg: Color::from_hex(0xe2e4e5),
    cursor: Some(Color::from_hex(0xe2e4e5)),
    selection: Some(Color::from_hex(0x43454f)),
    line_highlight: Some(Color::from_hex(0x34353e)),
    gutter: Some(Color::from_hex(0x78787e)),
    statusbar_bg: Some(Color::from_hex(0x34353e)),
    statusbar_fg: Some(Color::from_hex(0xa5a5a9)),
    comment: Some(Color::from_hex(0x78787e)),
    keyword: Some(Color::from_hex(0xff6ac1)),
    string: Some(Color::from_hex(0x5af78e)),
    function: Some(Color::from_hex(0x57c7ff)),
    variable: Some(Color::from_hex(0xff5c57)),
    r#type: Some(Color::from_hex(0xf3f99d)),
    constant: Some(Color::from_hex(0xff9f43)),
    operator: Some(Color::from_hex(0xe2e4e5)),
    tag: Some(Color::from_hex(0xff5c57)),
    error: Some(Color::from_hex(0xff5c57)),
    warning: Some(Color::from_hex(0xf3f99d)),
    info: Some(Color::from_hex(0x57c7ff)),
    success: Some(Color::from_hex(0x5af78e)),
    red: Some(Color::from_hex(0xff5c57)),
    orange: Some(Color::from_hex(0xff9f43)),
    yellow: Some(Color::from_hex(0xf3f99d)),
    green: Some(Color::from_hex(0x5af78e)),
    cyan: Some(Color::from_hex(0x9aedfe)),
    blue: Some(Color::from_hex(0x57c7ff)),
    purple: Some(Color::from_hex(0xff6ac1)),
    magenta: Some(Color::from_hex(0xb2643c)),
};