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!
26:06
forum Ask episode
web_stories AI Snips
view_agenda Chapters
auto_awesome Transcript
info_circle Episode notes
volunteer_activism ADVICE
CSS Organization
Create a typography.css file for global styles and custom typography values.
This keeps typography organized and prevents inconsistencies.
volunteer_activism 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.
volunteer_activism 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
In this Hasty Treat, Scott and Wes talk about CSS typography, and how to quickly get up and running with type systems.
Sanity - Sponsor
Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
05:00 - How do you define type at the start of a new project?
15:03 - How do media queries and screen sizes affect your system?