method ThemeTokens.font
ThemeTokens.font(token: string): string

Returns the font stack of token, single-quoted for a style attribute. A family the site bundles as "X Variable" is named "X", as a mail client or Google Fonts knows it.

Parameters

token: string

Return Type

string

Usage

import { type ThemeTokens } from "api/mail/theme-tokens.ts";