oxipdf-theme 0.1.0-beta.10

Semantic role → resolved style theme system for the oxipdf PDF engine
Documentation
//! `oxipdf-theme` — Semantic role → resolved style theme system.
//!
//! Maps `SemanticRole` variants to `ResolvedStyle` values, providing a
//! reusable appearance layer between semantic markup and the oxipdf engine.
//!
//! # Built-in themes
//!
//! - [`Theme::default()`] — Clean sans-serif document (Noto Sans)
//! - [`Theme::academic()`] — Serif-based academic document (Noto Serif)
//! - [`Theme::technical()`] — Monospace-heavy technical document
//!
//! # Custom themes via TOML
//!
//! ```toml
//! [theme]
//! name = "My Theme"
//! base_fonts = ["Noto Sans"]
//! mono_fonts = ["Noto Sans Mono"]
//!
//! [paragraph]
//! font_size = 11.0
//! line_height_multiplier = 1.4
//! margin_bottom = 6.0
//! ```
//!
//! Load with [`Theme::from_toml()`] or [`Theme::load()`].

mod builtin;
mod theme;
mod toml_loader;

pub use theme::{Theme, ThemedBuilder};
pub use toml_loader::ThemeLoadError;