Typography
This topic contains information about the typography design tokens specified in the Allium palette. See the Typography component for detailed implementation and usage guidelines.
Typeface
Allium's primary typeface is Helvetica Now Text SA, an evolution of the typeface used in Legacy TDS. It provides the same simplicity and clarity as its predecessor, but has been designed to work just as well on modern high resolution digital devices as it always did in traditional media. It has been designed with precision and it commands respect, while remaining a friendly, sophisticated, and neutral typeface that never detracts from the content.
The quick brown fox jumps over the lazy dog.
Font weights
Weight is used to create proportional contrast throughout the various sizes of typography. It’s intentionally applied to specific sizes to enhance readability and legibility across devices and platforms. Smaller sizes make use of heavier weights and larger sizes use lighter weights.
300
The quick brown fox jumps over the lazy dog.
400
The quick brown fox jumps over the lazy dog.
500
The quick brown fox jumps over the lazy dog.
700
The quick brown fox jumps over the lazy dog.
Font sizes
Scale creates consistency in sizing across elements. All components in Allium use carefully considered values from this list. Body copy is 16px across all devices and screen sizes.
size12 / 0.75rem
The quick brown fox jumps over the lazy dog.
size14 / 0.875rem
The quick brown fox jumps over the lazy dog.
size16 / 1rem
The quick brown fox jumps over the lazy dog.
size20 / 1.25rem
The quick brown fox jumps over the lazy dog.
size24 / 1.5rem
The quick brown fox jumps over the lazy dog.
size28 / 1.75rem
The quick brown fox jumps over the lazy dog.
size36 / 2.25rem
The quick brown fox jumps over the lazy dog.
size40 / 2.5rem
The quick brown fox jumps over the lazy dog.
size56 / 3.5rem
The quick brown fox jumps over the lazy dog.
size64 / 4rem
The quick brown fox jumps over the lazy dog.
Note that if you would like to specify how the text-related components have to scale the fonts depending on the browser settings, you can use forceAbsoluteFontSize
flag available in the themeOptions
prop on the ThemeProvider
Line height
ratio10to7 / 1.42857142857
The quick brown fox jumps over the lazy dog.
ratio11to9 / 1.22222222222
The quick brown fox jumps over the lazy dog.
ratio1to1 / 1
The quick brown fox jumps over the lazy dog.
ratio3to2 / 1.5
The quick brown fox jumps over the lazy dog.
ratio4to3 / 1.33333333333
The quick brown fox jumps over the lazy dog.
ratio5to4 / 1.25
The quick brown fox jumps over the lazy dog.
ratio6to5 / 1.2
The quick brown fox jumps over the lazy dog.
ratio7to5 / 1.4
The quick brown fox jumps over the lazy dog.
ratio8to5 / 1.6
The quick brown fox jumps over the lazy dog.
ratio8to7 / 1.14285714286
The quick brown fox jumps over the lazy dog.
ratio9to7 / 1.28571428571
The quick brown fox jumps over the lazy dog.
ratio9to8 / 1.125
The quick brown fox jumps over the lazy dog.
Letter spacing
condensed / -0.039
The quick brown fox jumps over the lazy dog.
loose / -0.017
The quick brown fox jumps over the lazy dog.
medium / -0.035
The quick brown fox jumps over the lazy dog.
Subscript and superscript
Typography component can accept text containing subscript or superscript wrapped in corresponding tags (<sub>
or <sup>
) and will render those according to the main text variant used:
<>
<Typography block variant={{ size: 'h4' }} heading="h1">
Consider this: $0<sub>1</sub> first month<sup>1</sup>
</Typography>
<Typography block variant={{ size: 'display2' }} heading="h2">
Stream live TV<sub>2</sub> on any screen<sup>2</sup>
</Typography>
<Typography block variant={{ size: 'large' }}>
Stream live TV or On Demand shows and movies on any screen with TELUS Pik TV<sup>3</sup>. Get
Pik TV from just $10 a month, and get your first month for $0 when you sign up<sub>3</sub>.
</Typography>
</>
Note that sub
and sup
rely on default browser styling and sometimes CSS resets
can alter those styling rules. Teams that use CSS resets should make sure they add
their own global styling or provide alternative sup
and sub
components that
re-enable { font-size: smaller; vertical-align: sub/super }
.
Also, Helvetica Now Text SA font bundled with Allium contains all the most
popular special characters often used in superscript, e.g. ™, 🅪, 🅫, ®, etc.,
and they come already properly positioned, so you can just use those in your
text without superscripting:
<>
<Typography block variant={{ size: 'large' }}>
Get up to $660 off iPhone 13 family with Bring-It-Back™.
</Typography>
<Typography block variant={{ size: 'large' }}>
Économisez jusqu’à 660 $ sur la gamme iPhone 13 avec Option retour🅫.
</Typography>
<Typography block variant={{ size: 'large' }}>
At TELUS®, our approach to accessibility is about much more than ticking boxes and meeting
minimum standards. We want to give everyone equal access to the devices and services we all need
to work, play and stay connected.
</Typography>
</>