Skip to content
Storybook

Typography

Poppins for Latin, an Arabic face for RTL. Sizes and line heights scale down on tablet and mobile.

Type scale

display-lg54px / 64px
The quick brown fox jumps over the lazy dog
display-md44px / 52px
The quick brown fox jumps over the lazy dog
display-sm36px / 44px
The quick brown fox jumps over the lazy dog
headline-lg24px / 32px
The quick brown fox jumps over the lazy dog
headline-md20px / 28px
The quick brown fox jumps over the lazy dog
headline-sm16px / 24px
The quick brown fox jumps over the lazy dog
label-lg16px / 24px
The quick brown fox jumps over the lazy dog
label-md14px / 20px
The quick brown fox jumps over the lazy dog
label-sm12px / 16px
The quick brown fox jumps over the lazy dog
body-lg16px / 24px
The quick brown fox jumps over the lazy dog
body-md14px / 20px
The quick brown fox jumps over the lazy dog
body-sm12px / 16px
The quick brown fox jumps over the lazy dog

Using the scale

CSS
.title {
  font-family: var(--px-font-family-sans);
  font-size: var(--px-typography-headline-lg-font-size);
  line-height: var(--px-typography-headline-lg-line-height);
  font-weight: var(--px-font-weight-semibold);
}

Responsive sizes

TokenDesktopTabletMobile
--px-font-size-headline-sm16px16px16px
--px-font-size-headline-md20px16px16px
--px-font-size-headline-lg24px20px18px
--px-font-size-display-sm36px28px24px
--px-font-size-display-md44px40px36px
--px-font-size-display-lg54px44px40px
--px-font-size-display-xl64px52px44px
--px-font-size-headline-xl30px26px24px

Weights

TokenValueSample
--px-font-weight-light300Pixels Design System
--px-font-weight-regular400Pixels Design System
--px-font-weight-medium500Pixels Design System
--px-font-weight-semibold600Pixels Design System
--px-font-weight-bold700Pixels Design System

Arabic

In RTL the Locale collection swaps the family and uses taller line heights.

نظام تصميم بكسلز