0
0
Tailwindmarkup~5 mins

Font family utilities in Tailwind - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the Tailwind CSS utility font-sans do?
It applies a sans-serif font family to the text, making it look clean and modern, like Arial or Helvetica.
Click to reveal answer
beginner
How do you apply a monospace font using Tailwind CSS?
Use the utility font-mono. It changes the text to a monospace font, where each letter takes up the same space, like in code editors.
Click to reveal answer
beginner
What is the difference between font-serif and font-sans in Tailwind CSS?
font-serif applies a serif font with small decorative lines on letters, giving a traditional look. font-sans applies a clean, modern sans-serif font without those lines.
Click to reveal answer
intermediate
Can you combine Tailwind font family utilities like font-sans and font-mono on the same element?
No, only one font family utility should be used per element because they override each other. Choose the one that fits your design best.
Click to reveal answer
intermediate
Why is it important to use semantic font family utilities like font-serif instead of custom fonts everywhere?
Semantic utilities ensure consistent style and better accessibility. They use system fonts that load fast and are familiar to users, improving readability.
Click to reveal answer
Which Tailwind CSS utility applies a monospace font?
Afont-mono
Bfont-serif
Cfont-sans
Dfont-bold
What font style does font-serif apply?
ASerif font with decorative lines
BMonospace font
CBold font weight
DSans-serif font
If you want clean and modern text, which Tailwind utility should you use?
Afont-extrabold
Bfont-serif
Cfont-mono
Dfont-sans
Can you use font-sans and font-mono together on the same element?
AOnly if you use !important
BYes, they combine styles
CNo, one overrides the other
DOnly in Tailwind v3
Why prefer semantic font utilities like font-serif over custom fonts?
AThey only work on mobile
BThey load faster and improve readability
CThey are harder to use
DThey add animations
Explain the purpose of Tailwind CSS font family utilities and name the three main ones.
Think about the basic font categories you see in word processors.
You got /4 concepts.
    Describe why you should not combine multiple font family utilities on the same element in Tailwind CSS.
    Consider how CSS rules work when multiple conflicting styles are applied.
    You got /4 concepts.