css • Typography and fonts - martindubenet/wed-dev-design GitHub Wiki

Designing fonts  ][  Coding fonts  ]

CSS shorthand cheatsheet

body {
  font:  font-style  font-variant  font-weight  font-size/line-height  font-family;
  font:  italic      small-caps    normal       13px/1.5               Arial, sans-serif;
}

 

Web fonts providers

  1. https://fonts.google.com/
  2. https://fontsource.org/

 

CSS visual lexicon

4x Technical typography spacing references

Reference CSS property English printing terms French printing terms
A line-height Leading Interligne
B font-size Font size Corps du charactères
C vertical-align Baseline shift Ligne de base
D letter-spacing Tracking
Kerning
Crénage
margin-bottom Buttom gutter Justification de paragraphe
text-align: left/right
flex-direction: flex-start/flex-end
justify-content: flex-start/flex-end
Left or Right justified. Justifié à gauche ou à droite.

What is em !?

1em typography reference
This is a relative length unit that dynamically adapts to the font size. A value in em is relative to the width of the capital letter M in the assigned font family.

Differentiating rem from em

While the em size value is based on the last font-size value inherited from its parent, the rem (Relative em) value is relative to the base font size value assigned to the root <body> tag of an HTML document. The latter offers the advantage of not being affected by the laborious cascade of complex stylesheets, thus providing better adherence to original approved mockups.

More
To learn more about typography read my designer oriented documentation here.

 

 

⚠️ **GitHub.com Fallback** ⚠️