Return to Sky UI homepage

The Text component allows for the ability to write content with a consistent typographic scale. It supports different font sizes and variants to suit various use cases, for more information on when to use each visit our Text Usage section.

Headline Display 1Headline Display 2Headline Display 3Headline Display 4Headline Display 5Display 1Display 2Display 3Display 4Display 5Display 6Display 7Body LargeBodyBody SmallLegal

Usage

import { typography } from '@sky-uk/ui-core'
${typography('body')}
// returns
{
fontSize: '18px',
lineHeight: '28px'
},

Default Typography

The default typography styles use the Sky Text font family.

${typography('display-1')}
${typography('display-1', 'default')}

Available Sizes

NamefontSizelineHeight
display-180px104px
display-264px84px
display-348px64px
display-440px52px
display-528px40px
display-620px24px
display-716px20px
body-lg20px32px
body18px28px
body-sm16px24px
legal14px24px

display-6 and display-7 are primarily intended for single line headings in smaller components such as cards where a tighter line height is beneficial.

Headline Typography

The headline typography styles use the Sky Headline font family using the second parameter to headline.

${typography('display-1', 'headline')}

Available Sizes

NamefontSizelineHeight
display-156px64px
display-244px52px
display-332px40px
display-428px36px
display-524px28px