feat: generate css from theme

This commit is contained in:
Jan-Bulthuis committed 2026-07-19 20:52:13 +02:00
1 parent 2b0c852e99
commit 2bb0a5c099
2 files changed
+93 -3

No files matched your search

+6
View File
@@ -30,6 +30,12 @@ impl TypstContext {
Value::Func(crate::syntax::highlight_func()),
);
}
if config.themes_root.is_some() {
inputs.insert(
"theme_css".into(),
Value::Func(crate::themes::theme_css_func()),
);
}
let library = Library::builder()
.with_inputs(inputs)
.with_features([typst::Feature::Html].into_iter().collect())