Skip to main content

textVariants

@shopify/shop-minis-platform-sdk / theme/gravity/text/textVariants

FontVariant

Properties

fontFamily

fontFamily: string

fontSize

fontSize: SizeVariant

fontWeight?

optional fontWeight: string

includeFontPadding?

optional includeFontPadding: boolean

letterSpacing?

optional letterSpacing: number

lineHeight?

optional lineHeight: SizeVariant

textAlignVertical?

optional textAlignVertical: string

textTransform?

optional textTransform: string


TextVariants

const TextVariants: object

Type declaration

badge

badge: FontVariant

badgeBold

badgeBold: FontVariant

bodyLarge

bodyLarge: FontVariant

bodyLargeBold

bodyLargeBold: FontVariant

bodySmall

bodySmall: FontVariant

bodySmallBold

bodySmallBold: FontVariant

bodyTitleLarge

bodyTitleLarge: FontVariant

bodyTitleSmall

bodyTitleSmall: FontVariant

buttonLarge

buttonLarge: FontVariant

buttonMedium

buttonMedium: FontVariant

buttonSmall

buttonSmall: FontVariant

caption

caption: FontVariant

captionBold

captionBold: FontVariant

captionMedium

captionMedium: FontVariant

compactShopCashBadge

compactShopCashBadge: FontVariant

displayBold

displayBold: FontVariant

headerBold

headerBold: FontVariant

headerNormal

headerNormal: FontVariant

heroBold

heroBold: FontVariant

heroNormal

heroNormal: FontVariant

label

label: FontVariant

navigationTitle: FontVariant

posterLarge

posterLarge: FontVariant

posterLargeWeightMedium

posterLargeWeightMedium: FontVariant

posterMedium

posterMedium: FontVariant

posterSmall

posterSmall: FontVariant

posterSmallWeightMedium

posterSmallWeightMedium: FontVariant

posterXS

posterXS: FontVariant

posterXSWeightMedium

posterXSWeightMedium: FontVariant

sectionTitle

sectionTitle: FontVariant

subtitle

subtitle: FontVariant

subtitleSmall

subtitleSmall: FontVariant