Skip to content

Typography Tokens

All typography values are available as SCSS variables.

scss
@use '@yellowcard/b2b-design-system/scss/typography' as *;

Font Sizes

Display

TokenSize
$font-size-display-2xs24px
$font-size-display-xs28px
$font-size-display-sm32px
$font-size-display-md36px
$font-size-display-lg40px
$font-size-display-xl48px
$font-size-display-2xl56px
$font-size-display-3xl64px

Heading

TokenSize
$font-size-heading-3xs12px
$font-size-heading-2xs14px
$font-size-heading-xs16px
$font-size-heading-sm18px
$font-size-heading-md20px
$font-size-heading-lg24px
$font-size-heading-xl28px
$font-size-heading-2xl32px
$font-size-heading-3xl36px
$font-size-heading-4xl40px

Body

TokenSize
$font-size-body-xs12px
$font-size-body-sm14px
$font-size-body-md16px
$font-size-body-lg18px
$font-size-body-xl20px
$font-size-body-2xl24px

Label

TokenSize
$font-size-label-3xs8px
$font-size-label-2xs10px
$font-size-label-xs12px
$font-size-label-sm14px
$font-size-label-md16px
$font-size-label-lg18px
$font-size-label-xl20px
$font-size-label-2xl24px
$font-size-label-3xl28px

Font Weights

TokenValue
$font-weight-regular400
$font-weight-medium500
$font-weight-semibold600
$font-weight-bold700

Usage Example

scss
@use '@yellowcard/b2b-design-system/scss/typography' as *;

.page-title {
  font-size: $font-size-heading-xl;
  font-weight: $font-weight-semibold;
  line-height: $line-height-heading-xl;
}

.card-body {
  font-size: $font-size-body-md;
  font-weight: $font-weight-regular;
  line-height: $line-height-body-md;
}