Skip to content

Rule.io SDK


Rule.io SDK / rcml/src / EmailThemeFontStyle

Interface: EmailThemeFontStyle

Defined in: rcml/src/email/theme-types.ts:125

Fully-populated font-style for one of the six slots. Fields carry CSS values verbatim ('16px', '120%', '700', 'normal', 'none', etc.) — the renderer writes them onto the corresponding <rc-class name="rcml-{type}-style"> attributes without further interpretation.

Properties

color

color: string

Defined in: rcml/src/email/theme-types.ts:135

CSS hex colour including the leading #.


fallbackFontFamily

fallbackFontFamily: string

Defined in: rcml/src/email/theme-types.ts:131

CSS generic fallback, e.g. 'sans-serif', 'serif'.


fontFamily

fontFamily: string

Defined in: rcml/src/email/theme-types.ts:129

Main display family, e.g. 'Helvetica', 'Merriweather'.


fontSize

fontSize: string

Defined in: rcml/src/email/theme-types.ts:133

CSS font-size, e.g. '16px'.


fontStyle

fontStyle: string

Defined in: rcml/src/email/theme-types.ts:143

CSS font-style, e.g. 'normal', 'italic'.


fontWeight

fontWeight: string

Defined in: rcml/src/email/theme-types.ts:141

CSS font-weight as a string, e.g. '400', '700'.


letterSpacing

letterSpacing: string

Defined in: rcml/src/email/theme-types.ts:139

CSS letter-spacing, e.g. '0em'.


lineHeight

lineHeight: string

Defined in: rcml/src/email/theme-types.ts:137

CSS line-height, e.g. '120%'.


textDecoration

textDecoration: string

Defined in: rcml/src/email/theme-types.ts:145

CSS text-decoration, e.g. 'none', 'underline'.


type

type: EmailThemeFontStyleType

Defined in: rcml/src/email/theme-types.ts:127

Which of the six font-style slots this entry fills.