Skip to main content

SiteFontInput

One reusable font for setSiteFonts, using a system family, Google font, or external HTTPS resource.

input SiteFontInput {
family: String!
source: String!
resourceType: String
url: String
onLoadCallback: String
}

Fields​

SiteFontInput.family ● String! non-null scalar​

Font family trimmed to 1-100 characters; system fonts must be a supported family.

SiteFontInput.source ● String! non-null scalar​

system, google, or external, case-insensitive; normalized to lowercase.

SiteFontInput.resourceType ● String scalar​

For external fonts: stylesheet, javascript, or font; inferred from the URL extension if absent or unrecognized.

SiteFontInput.url ● String scalar​

HTTPS resource URL for external fonts; font files need a path, and scripts must use a supported provider or the site's domain.

SiteFontInput.onLoadCallback ● String scalar​

Optional JavaScript function path for external scripts, such as WebFont.load; a trailing () is stripped. Typekit uses Typekit.load.

Member Of​

setSiteFonts mutation