open-agreements
Version:
Open-source legal template filling CLI and library
21 lines • 1.21 kB
TypeScript
/**
* word/theme/theme1.xml emitter.
*
* Emitted on every package. Word-authored documents always reference a theme
* (default fonts/colors resolve through it); shipping the canonical Office theme
* keeps generated output part-for-part comparable to genuine Word output and
* removes a suspected Word-for-Mac repair trigger (issue #482). The body is the
* complete, static Office default theme — a truncated fmtScheme is itself a repair
* trigger, so the full color/font/format scheme is emitted verbatim. Static body →
* determinism holds.
*
* The root is the DrawingML `a:theme` element carrying themeElements
* (clrScheme + fontScheme + fmtScheme). Optional generation theme input applies
* partial color/font overrides to that canonical template before serialization.
*/
import type { CompileContext } from '../context.js';
import type { DocumentThemeSpec, ThemeColorSlot } from '../types.js';
/** Maps each authoring slot to its `clrScheme` child element name in theme1.xml. */
export declare const THEME_SLOT_TO_CLR_SCHEME: Record<ThemeColorSlot, string>;
export declare function emitThemePart(ctx: CompileContext, theme?: DocumentThemeSpec): void;
//# sourceMappingURL=theme-part.d.ts.map