Skip to content

Rule.io SDK


Rule.io SDK / rcml/src / EmailThemeFontStyle

Interface: EmailThemeFontStyle

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

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:136

CSS hex colour including the leading #.


fallbackFontFamily ​

fallbackFontFamily: string

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

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


fontFamily ​

fontFamily: string

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

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


fontSize ​

fontSize: string

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

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


fontStyle ​

fontStyle: string

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

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


fontWeight ​

fontWeight: string

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

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


letterSpacing ​

letterSpacing: string

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

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


lineHeight ​

lineHeight: string

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

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


textDecoration ​

textDecoration: string

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

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


type ​

type: EmailThemeFontStyleType

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

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