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§
Structs§
- Color
- Resolved RGBA color (all channels 0–255).
- Modifiers
- Per-character text modifiers.
- Palette
- Resolved palette: name ->
Color. - Style
Spec - Foreground, background, and modifier flags for a syntax or UI element.
- UiStyles
- Resolved UI surface styles.
Enums§
- Theme
Error - Errors produced by theme parsing and resolution.