Expand description
Brand specification: single source of truth for palette, fonts, margins, and the auto-layout rules. v1 only models what the page-layout system needs; richer projection (palette → typst/CSS/reference docs) lands in Phase 4.
Type definitions only by default, so this crate stays free of
toml/anyhow. mdcast::brand::from_toml is the anyhow-wrapped loader
for mdcast consumers; a caller that must not compile mdcast (issue
#80) can instead enable this crate’s optional toml feature and call
[BrandSpec::from_toml] directly.
Structs§
- Auto
Layout - Auto
Rule - Brand
Spec - Logo
Spec - A brand logo to overlay on every reveal.js slide.
keyis anAssetProviderkey — the same namespace page-body image refs use — fetched by the pandoc backend and embedded as a data URI (seebackends/reveal_brand.rs). Typst layouts have their own logo mechanism (ResolvedDoc.assets+asset-path) and ignore this field.
Enums§
- Logo
Position - Which corner of the slide a logo overlay anchors to.
- Shape
Predicate - Closed predicate set in v1. Extending this is intentionally a code change, not a config knob — keeps the surface area small until a real need surfaces.