UNPKG

@maizzle/framework

Version:

Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.

15 lines (14 loc) 752 B
import { FontRegistration } from "../composables/renderContext.js"; import { ChildNode } from "domhandler"; //#region src/render/injectFonts.d.ts /** * Inject font `<link>` tags into `<head>` and merge `@theme` declarations * into the template's existing Tailwind `<style>` block (so the * `font-{slug}` utilities are generated in the same compilation unit * as the Tailwind import). Without a Tailwind import, emits plain * `.font-{slug}` class rules so the utility still works. */ declare function injectFonts(dom: ChildNode[], fonts: FontRegistration[], parseDom: (html: string) => ChildNode[], walk: (ast: ChildNode[], cb: (n: ChildNode) => void) => void): void; //#endregion export { injectFonts }; //# sourceMappingURL=injectFonts.d.ts.map