Expand description
caixa-theme — colors + semantic styles shared across the caixa
ecosystem.
Three tiers:
palette— Nord (the canonical pleme-io palette), exposed as#RRGGBBhex strings + 24-bit tuples.Semantic— the small set of named styles every tool maps to (Keyword, Symbol, String, Comment, Error, Warning, Info, Hint, Added, Removed, Caret, Muted).blackmatter— overlays that pick which Nord color a given Semantic renders as. The default overlay isblackmatter_dark, matching blackmatter-nvim + blackmatter-shell.
Consumers (caixa-fmt, caixa-lint, caixa-lsp, caixa.nvim) pick a
Theme at startup and ask theme.style(Semantic::Error) to get a
concrete RGB triple.
Re-exports§
pub use blackmatter::Theme;pub use palette::Nord;pub use palette::Rgb;pub use style::CAIXA_THEME_SEMANTIC_WIRE_ACCENT;pub use style::CAIXA_THEME_SEMANTIC_WIRE_ADDED;pub use style::CAIXA_THEME_SEMANTIC_WIRE_COMMENT;pub use style::CAIXA_THEME_SEMANTIC_WIRE_ERROR;pub use style::CAIXA_THEME_SEMANTIC_WIRE_HINT;pub use style::CAIXA_THEME_SEMANTIC_WIRE_INFO;pub use style::CAIXA_THEME_SEMANTIC_WIRE_KEYWORD;pub use style::CAIXA_THEME_SEMANTIC_WIRE_KEYWORD_ARG;pub use style::CAIXA_THEME_SEMANTIC_WIRE_LITERAL;pub use style::CAIXA_THEME_SEMANTIC_WIRE_MUTED;pub use style::CAIXA_THEME_SEMANTIC_WIRE_NUMBER;pub use style::CAIXA_THEME_SEMANTIC_WIRE_REMOVED;pub use style::CAIXA_THEME_SEMANTIC_WIRE_STRING;pub use style::CAIXA_THEME_SEMANTIC_WIRE_SYMBOL;pub use style::CAIXA_THEME_SEMANTIC_WIRE_UNCHANGED;pub use style::CAIXA_THEME_SEMANTIC_WIRE_WARNING;pub use style::Semantic;
Modules§
- blackmatter
- Blackmatter overlays — the chosen Nord→Semantic mapping.
- palette
- Nord — Arctic-themed palette. Reference: https://www.nordtheme.com/.
- style
- The small semantic-style enum every caixa tool agrees on.