Skip to content

resolveFontStack

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/app/p/[slugId]/components/fonts.ts

Resolve a stored fontFamily value ('inter' | … | 'custom:') to a CSS font stack, or null when unset/unknown (caller falls back to the viewer's default typography).

Signature

ts
function resolveFontStack(fontFamily: string | null | undefined): string | null

Parameters

NameType
fontFamily`string

Returns: string | null

Was this page helpful?

Download as PDF