Syntax - Tasty Web Development Treats

Hasty Treat - CSS Typography and Systems

Jan 18, 2021
Discover the essentials of CSS typography and why a solid type system is crucial for web design. Learn how media queries and screen sizes impact typographic choices. Get insights into best practices for managing typography, ensuring accessibility, and maintaining consistency across devices. The hosts share personal anecdotes and useful tools like type-scale.com to streamline font sizing decisions. Plus, they hint at future discussions about integrating color systems and shadows into your designs!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

CSS Organization

  • Create a typography.css file for global styles and custom typography values.
  • This keeps typography organized and prevents inconsistencies.
ADVICE

Base Font Size

  • Set the base font size on the HTML tag to 10px for easier rem calculations.
  • 1.5rem then equals 15px, simplifying mental math.
ADVICE

Font Size on Divs

  • Avoid setting font sizes on div elements.
  • Apply font sizes only to specific text-based elements like paragraphs or headings.
Get the Snipd Podcast app to discover more snips from this episode
Get the app