41 stable releases
Uses new Rust 2024
| new 2.13.0 | Feb 9, 2026 |
|---|---|
| 2.12.4 | Jan 18, 2026 |
| 2.4.7 | Dec 30, 2025 |
| 1.3.0 | Dec 13, 2025 |
| 0.3.0 | Dec 8, 2025 |
#1820 in Text processing
5,413 downloads per month
Used in 115 crates
(4 directly)
200KB
4K
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: 32 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 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.
Dependencies
~210KB