45 stable releases
Uses new Rust 2024
| 2.17.0 | May 9, 2026 |
|---|---|
| 2.16.0 | Mar 11, 2026 |
| 2.13.0 | Feb 9, 2026 |
| 2.4.7 | Dec 30, 2025 |
| 0.901.0 | Dec 9, 2025 |
#2141 in Text processing
28,288 downloads per month
Used in 135 crates
(8 directly)
205KB
4.5K
SLoC
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: 33 popular color schemes ready to use
Usage
use arborium_theme::{Theme, builtin, HIGHLIGHTS};
// Use a built-in theme
let theme = builtin::catppuccin_mocha();
// Generate CSS for the theme
let css = theme.to_css("[data-theme=\"mocha\"]");
// Access highlight definitions
for def in HIGHLIGHTS {
println!("{} -> <a-{}>", def.name, def.tag);
}
Built-in Themes
This crate includes 33 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.
Dependencies
~195KB