Skip to main content

Crate hjkl_theme

Crate hjkl_theme 

Source
Expand description

Unified theme schema for the hjkl editor stack.

Phase 1: TOML parse, palette interning, capture fallback chain. No rendering backends in this phase.

§Quick start

use hjkl_theme::loader;

// Load from a file path:
// let theme = loader::load_from_path(std::path::Path::new("my-theme.toml")).unwrap();

// Parse from a TOML string:
let theme = loader::parse_toml("\"@keyword\" = \"#cba6f7\"").unwrap();

// Fall back to the built-in dark theme:
let theme = loader::default_theme();

Re-exports§

pub use captures::CaptureMap;
pub use theme::Theme;

Modules§

captures
loader
Free-function loader API for Theme.
theme

Structs§

Color
Resolved RGBA color (all channels 0–255).
Modifiers
Per-character text modifiers.
Palette
Resolved palette: name -> Color.
StyleSpec
Foreground, background, and modifier flags for a syntax or UI element.
UiStyles
Resolved UI surface styles.

Enums§

ThemeError
Errors produced by theme parsing and resolution.