Fonts
Font size and scaling
Avoid these typo errors
Regular or bold
Regular
Regular/ light
Font weight
Headlines 20px +
Pharagraph 16px
Secondary text 13/ 14px
Font size
30 +
24
19,5/ 21
Line height

Example: if the font size is 16px, then the line height is 1.5 × 16 = 24px.

Sans serif fonts

Sans serif fonts are those without markings at the end of the letters. Sans serif fonts
are usually simple in design, which makes them versatile in terms of placement and use.
They go well in the body of a page or in header text. They can also be used to tame an
otherwise unique-looking website design.

Serif fonts

Serif fonts are similar to sans serif fonts in terms of a stable and predictable structure, except
that they have markings at the end of the letters. Serifs have a long history in typography,
which is why the style of these typefaces often appears more traditional and sophisticated than
others. In terms of usage, serif fonts designed for web can be used either in body text or in the
header of a web page.

Slab serif fonts
Contrast checker
18 Weights
Inter
Download here
06 Weights
Work Sans
Download here
18 Weights
Roboto
Download here
07 Weights
Rockwell
Download here
06 Weights
Bona Nova
Download here
Typography is a vital component of user interface design. Good typography will establish a strong visual hierarchy, provide a graphic balance to the website, and set the product’s overall tone. Typography should guide and inform your users, optimize readability and accessibility, and ensure an excellent user experience.

Use online contrast checkers to ensure that there is proper
contrast between font and background in your designs to
guarantee accessibility.

Colorable
04 Weights
Sans-serif
Download here
03 Weights
Garamond
Download here
06 Weights
Roboto Slab
Download here
04 Weights
Arvo
Download here

Slab serifs are a high contrast, horizontally based type style that is not only very legible, but also produces well defined lines of text that reinforce the baseline grid. The biggest advantage of slab serifs is the high contrast between the typeface
and the page, which is created by the minimal contrast between the typeface and
the serifs.

When it comes to the usage of fonts there are certain aspects that should be taken into consideration. Following these aspects can greatly improve accessibility and readability for the user. Here are a few errors you should avoid when using fonts.

The line height is best calculated together with the font size using em. Since em is a relative measure, it refers to the value of the parent element. 1.5em is the most common line height, it means that this paragraph has a line height of 150% of the current font size.

When you align text to the center, you have a rag on both sides of your copy. But with left aligned text, a rag only exists on the right. This makes the whole layout easier to read.
And when reading centered type, our eyes have difficulty on picking up where the next line starts. But with left aligned type, our eyes know where
to jump increasing readability. The same as for center aligned texts applies to right aligned texts.

Text alignment
01

Texts should always be set in a readable font.
Better use sans serif fonts or serif fonts that have been created for digital texts are suitable. Avoid using ornate and decorated fonts.

Choice of font
02

Never mix more than three fonts. If you do, try to use a font from the font family or font superfamily.

Here an example for the font Roboto:

Font superfamily
Font family
Roboto
Light
Roboto Slab
Regular
Roboto Mono
Medium
Font mix
03

Never write longer texts in italics! This limits the readability. This is a bad habit that is far too common. Use it only to emphasize something in the text

Font style italic
04

Don’t use bold font style to emphasize words in a text. Depending on whether it is an active emphasis, use the font style medium, or as a passive emphasis use the font style italic.
Always choose italic or other font styles from the font menu. Never artificially create them.

Emphasis
05

Left aligned text is nice, but not very easy to use.
Rounding must be avoided, as well as a variation between a long then short and again long line.
The text should flutter balanced.

Left alignment
07
Justified Text

If possible, do not use justified text, as this distorts the word spacing. You must make sure that the line length is long enough, otherwise unsightly holes may appear. It is better to align your text to the left.

06