| Crates.io | arborium-theme |
| lib.rs | arborium-theme |
| version | 2.12.4 |
| created_at | 2025-12-08 20:30:32.026858+00 |
| updated_at | 2026-01-18 11:08:37.90083+00 |
| description | Theme support for arborium syntax highlighting |
| homepage | https://github.com/bearcove/arborium |
| repository | https://github.com/bearcove/arborium |
| max_upload_size | |
| id | 1974354 |
| size | 260,287 |
Theme and highlight definitions for arborium syntax highlighting.
This crate provides:
keyword -> <a-k>)Theme, Color, Style for representing syntax highlighting themesuse 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);
}
This crate includes 32 themes from popular color schemes. We are grateful to the original theme authors:
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.