Artwork

Content provided by Adam Wathan. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Adam Wathan or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

134: Mark Dalgleish - You Should Be Using Layout Components

56:33
 
Share
 

Manage episode 253250379 series 1401837
Content provided by Adam Wathan. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Adam Wathan or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

Topics include:

  • What problems you run into when baking white space into components, and why your components should never contain any surrounding white space at all
  • Layout challenges you run into due to the way the browser includes line-height in the size of text elements
  • The trick Mark's team uses to remove surrounding white space from text elements, without removing the space between wrapping lines
  • Using a "stack" component to specify the space between sibling elements
  • Issues with naively just using margin on one side of an element to space elements
  • The upcoming "gap" property in CSS and how it proves layout components are a good idea
  • Using a "content block" component for horizontal spacing/sizing at the page level
  • Tricks for maintaining vertical rhythm despite 1px borders trying to ruin it all for you
  • Why tools like React are so important for being able to implement designs in a way that matches how designers think

Links:

Supporting the show:

I decided to stop taking sponsors for the show because I think advertisements are annoying and no one wants to listen to them.

If you do want to support the show, the best way to do it is to pick up one of my books or courses:

  • Refactoring UI, a book and video series I put together with Steve Schoger on designing beautiful user interfaces, without relying on a designer.
  • Advanced Vue Component Design, a course on designing simpler, more flexible Vue components that are both more powerful and easier to maintain.
  • Test-Driven Laravel, a massive video course on designing robust Laravel applications with TDD. Learn how to build a real-world application from scratch without writing a single line of untested code.
  • Refactoring to Collections, a book and video course that teaches you how to apply functional programming principles to break down ugly, complex code into simple transformations — free of loops, complex conditionals, and temporary variables.
  continue reading

153 episodes

Artwork
iconShare
 
Manage episode 253250379 series 1401837
Content provided by Adam Wathan. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Adam Wathan or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

Topics include:

  • What problems you run into when baking white space into components, and why your components should never contain any surrounding white space at all
  • Layout challenges you run into due to the way the browser includes line-height in the size of text elements
  • The trick Mark's team uses to remove surrounding white space from text elements, without removing the space between wrapping lines
  • Using a "stack" component to specify the space between sibling elements
  • Issues with naively just using margin on one side of an element to space elements
  • The upcoming "gap" property in CSS and how it proves layout components are a good idea
  • Using a "content block" component for horizontal spacing/sizing at the page level
  • Tricks for maintaining vertical rhythm despite 1px borders trying to ruin it all for you
  • Why tools like React are so important for being able to implement designs in a way that matches how designers think

Links:

Supporting the show:

I decided to stop taking sponsors for the show because I think advertisements are annoying and no one wants to listen to them.

If you do want to support the show, the best way to do it is to pick up one of my books or courses:

  • Refactoring UI, a book and video series I put together with Steve Schoger on designing beautiful user interfaces, without relying on a designer.
  • Advanced Vue Component Design, a course on designing simpler, more flexible Vue components that are both more powerful and easier to maintain.
  • Test-Driven Laravel, a massive video course on designing robust Laravel applications with TDD. Learn how to build a real-world application from scratch without writing a single line of untested code.
  • Refactoring to Collections, a book and video course that teaches you how to apply functional programming principles to break down ugly, complex code into simple transformations — free of loops, complex conditionals, and temporary variables.
  continue reading

153 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide

Copyright 2025 | Privacy Policy | Terms of Service | | Copyright
Listen to this show while you explore
Play