MotionScript

@motion-script/core


@motion-script/core / TextStyle

Interface: TextStyle

Defined in: runtime/builtin-context.ts:25

A text node's style vocabulary — every field a <DefaultTextStyle> can supply, a Text/RichText variant preset can set, and theme.typography can default. Each field is the loose author-facing type (matching the corresponding Text @property) and is optional: only the keys a given source explicitly sets are present, so a descendant inherits exactly those and keeps its own defaults for the rest.

Properties

fill?

optional fill?: Fill

Defined in: runtime/builtin-context.ts:33


fontFamily?

optional fontFamily?: string

Defined in: runtime/builtin-context.ts:26


fontSize?

optional fontSize?: number | "autofit"

Defined in: runtime/builtin-context.ts:27


fontStyle?

optional fontStyle?: FontStyle

Defined in: runtime/builtin-context.ts:29


fontWeight?

optional fontWeight?: number

Defined in: runtime/builtin-context.ts:28


letterSpacing?

optional letterSpacing?: number

Defined in: runtime/builtin-context.ts:30


lineHeight?

optional lineHeight?: number

Defined in: runtime/builtin-context.ts:31


shadow?

optional shadow?: Shadow

Defined in: runtime/builtin-context.ts:35


stroke?

optional stroke?: Stroke

Defined in: runtime/builtin-context.ts:34


textAlign?

optional textAlign?: TextAlign

Defined in: runtime/builtin-context.ts:32