arborium-theme
Theme and highlight definitions for arborium syntax highlighting.
This crate provides:
- Highlight definitions: Mapping from tree-sitter capture names to short HTML tags (e.g.,
keyword-><a-k>) - Theme types:
Theme,Color,Stylefor representing syntax highlighting themes - Built-in themes: 32 popular color schemes ready to use
Usage
use ;
// Use a built-in theme
let theme = catppuccin_mocha;
// Generate CSS for the theme
let css = theme.to_css;
// Access highlight definitions
for def in HIGHLIGHTS
Built-in Themes
This crate includes 32 themes from popular color schemes. We are grateful to the original theme authors:
License
This crate is licensed under MIT OR Apache-2.0.
The built-in themes are adaptations of color schemes from their respective projects. Please see each project's repository for their specific licensing terms.