DefineGoogleFontsInput
The input with Google Fonts: the families to fetch, and local families next to them.
The input with Google Fonts: the families to fetch, and local families next to them. Google families are
resolved at build time (see GoogleFontsOptions), so defineFonts returns a promise for this input.
Import#
ts
import type { DefineGoogleFontsInput } from "@shadow-js/dusk/vite";
Signature#
ts
interface DefineGoogleFontsInput {
/** The families to take from Google Fonts. */
readonly google: readonly GoogleFont[];
/** Local families (vendored under `public/`), written into the same stylesheet. */
readonly local?: Readonly<Record<string, FontDefinition>>;
}
Members#
| Name | Type | Description |
|---|---|---|
google |
readonly google: readonly GoogleFont[] |
The families to take from Google Fonts. |
local? |
readonly local?: Readonly<Record<string, FontDefinition>> |
Local families (vendored under public/), written into the same stylesheet. |