Function: fontFaceCss()
function fontFaceCss(assets, indent?): string;
Defined in: css.ts:178
Emits one @font-face per face that has a web source, in declaration
order. Faces with only a native source produce nothing: they are asset
names for expo-font, not URLs (fontAssets() is what reads those).
The rules are deliberately NOT wrapped in the token rule's cascade layer —
@font-face is not subject to the cascade, and a layered one is simply
harder to find in devtools.
Parameters
| Parameter | Type | Default value |
|---|---|---|
assets | | ThemeAssets | ResolvedTheme | undefined |
indent | string | '' |
Returns
string