Crate arborium_theme

Crate arborium_theme 

Source
Expand description

Theme support for arborium syntax highlighting.

This crate provides:

  • Highlight category definitions (the canonical list of syntax categories)
  • Capture name to theme slot mapping
  • Theme parsing from Helix-style TOML files
  • CSS and ANSI output generation
  • Built-in themes (catppuccin, dracula, tokyo-night, etc.)

§Capture Name Mapping

The crate provides a unified system for mapping the many capture names from various sources (nvim-treesitter, helix, etc.) to a small set of theme slots. See highlights::capture_to_slot and highlights::tag_for_capture for details.

Re-exports§

pub use highlights::capture_to_slot;
pub use highlights::tag_for_capture;
pub use highlights::ThemeSlot;
pub use highlights::CAPTURE_NAMES;
pub use highlights::COUNT;
pub use highlights::HIGHLIGHTS;
pub use highlights::HighlightDef;
pub use theme::builtin;
pub use theme::Color;
pub use theme::Modifiers;
pub use theme::Style;
pub use theme::Theme;
pub use theme::ThemeError;

Modules§

highlights
Highlight category definitions - single source of truth.
theme
Theme support for syntax highlighting.