@motion-script/core / Typography
Type Alias: Typography
Typography =
object&Record<string,TypographyPreset>
Defined in: project/config.ts:29
Named typography presets, keyed by variant name (e.g. header, body).
The default key is reserved: if present, it's applied to every Text/
RichText as a project-wide base style — no variant prop or
<DefaultTextStyle> wrapper needed — for any style key a more specific
source (explicit prop, variant, inherited <DefaultTextStyle>) doesn't
set. Declared as an explicit property (rather than folded into the index
signature) so editors offer it in autocomplete.
Type Declaration
default?
optionaldefault?:TypographyPreset