Skip to main content

foundation-utils.getfontmixin

Home > @genesislcap/foundation-utils > getFontMixin

getFontMixin() function​

Generates a CSS mixin for the specified font family, style, and weight.

Signature:

getFontMixin: (family: string, style?: FontStyle, weight?: FontWeight) => string

Parameters​

Parameter

Type

Description

family

string

The font family.

style

FontStyle

(Optional) Optional. The font style. Defaults to FontStyle.Normal.

weight

FontWeight

(Optional) Optional. The font weight. Defaults to FontWeight.Regular.

Returns:

string

The generated CSS mixin.