Typograph Styling
Last updated
Last updated
Here are some guides for typograph styling. In this guide we will talking about css "Font" properties, as a Front-End Developer We need to know about font styling rules and the purpose of font property.
The font-size
property sets the size of the text.
don't set body text size below 16px, if we set below 16px it's not good in UX side. in our SOP the smallest font size is 16px (Except some special cases)
Make sure to check the font-size in responsive, because sometime the text looks so big in smaller resolution so we need to re-adjust the font size in responsive.
The font-weight
property sets how thick or thin characters in text should be displayed.
font-weight: 300;
font-weight: 400(normal);
font-weight: 600(semi-bold);
font-weight: 700(bold);
font-weight: 900(extra-bold);
The text-transform
property controls the capitalization of text.
Sometimes designer will make the Font design all letter capitalize (Uppercase) or vice versa. the text-transform
property will help you to make sure the text same like design.
text-transform: lowecase;
text-transform: uppercase;
text-transform: capitalize;