Skip to main content

Module brand

Module brand 

Source
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§

AutoLayout
AutoRule
BrandSpec
LogoSpec
A brand logo to overlay on every reveal.js slide. key is an AssetProvider key — the same namespace page-body image refs use — fetched by the pandoc backend and embedded as a data URI (see backends/reveal_brand.rs). Typst layouts have their own logo mechanism (ResolvedDoc.assets + asset-path) and ignore this field.

Enums§

LogoPosition
Which corner of the slide a logo overlay anchors to.
ShapePredicate
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.