hjkl-theme 0.1.0

Unified theme schema: TOML parse, palette interning, capture fallback chain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Errors produced by theme parsing and resolution.
#[derive(Debug, thiserror::Error)]
pub enum ThemeError {
    #[error("io: {0}")]
    Io(#[from] std::io::Error),
    #[error("toml parse: {0}")]
    Toml(#[from] toml::de::Error),
    #[error("invalid hex color: {0:?}")]
    BadHex(String),
    #[error("unresolved palette ref: ${0}")]
    UnresolvedPalette(String),
    #[error("invalid modifier: {0:?}")]
    BadModifier(String),
}