feat: generate css from theme
This commit is contained in:
1 parent
2b0c852e99
commit
2bb0a5c099
2 files changed
+93
-3
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user