The Secret Science of Perfect Spacing — Transcript
Full transcript
- 0:02hi welcome back to chainlift let me ask
- 0:04you a question how much space should I
- 0:06put between this heading in this
- 0:08paragraph you might say that it could be
- 0:10like just equal to however tall The
- 0:12Heading is that would be one unit or
- 0:14maybe 1.15 or0 25 but if it gets much
- 0:18further away then it stops really
- 0:21seeming like they're connected it gets
- 0:22absurd right like we know that the
- 0:25heading in the paragraph need to stay
- 0:27within this sort of comfort zone that's
- 0:29straight forward enough right well what
- 0:32about when we get a subheading in the
- 0:34mix now this is a little bit more
- 0:36complicated should this be closer to The
- 0:38Heading closer to the paragraph or
- 0:41exactly in between what if we put this
- 0:44in a card and add an image or an action
- 0:48bar Suddenly It's Not So straightforward
- 0:50we haven't even talked about other
- 0:52factors like the Border radius yet but a
- 0:55properly spaced out card should look
- 0:56like this when we compare it to what we
- 0:58started with you can see that the one on
- 1:00the right feels much more balanced but
- 1:02is it really let's zoom in and find out
- 1:05which one of these has symmetrical
- 1:07padding many of you might think that
- 1:09it's the one on the right but it's
- 1:11actually the one on the left the one on
- 1:13the right feels better due to something
- 1:15called Optical Corrections and to better
- 1:17illustrate what I mean by that let's
- 1:19zoom in on the other one you see
- 1:22mathematically the padding on this card
- 1:24is symmetrical the left and the top
- 1:26padding are equal they're the same
- 1:27number of pixels but it doesn't really
- 1:30feel symmetrical we want it to feel like
- 1:33the text would slide perfectly up into
- 1:35that top left corner but when the
- 1:37padding is actually symmetrical you wind
- 1:39up with a little bit too much on top
- 1:41there's extra space and if I correct it
- 1:44you can see how the extra space would
- 1:46bleed over outside of the card now it
- 1:48turns out this extra space is actually
- 1:51derived from the difference between the
- 1:53bounding box height and the actual
- 1:55literal rendered pixel height of the
- 1:58text shapes themselves they're
- 2:00equivalent so when we offset by that
- 2:03exact same amount we wind up with
- 2:05something symmetrical that answers one
- 2:07question mark and this just gives us an
- 2:09idea for how complicated spacing can
- 2:11really be when you dig into the details
- 2:13but what about all these other ones how
- 2:15far away should everything be from
- 2:17everything else how to find the perfect
- 2:19spacing for our purposes there are three
- 2:22laws of spacing the first is that every
- 2:25element is related to every other
- 2:27element even if it's just because
- 2:29they're in the same viewport some
- 2:31relationships are stronger than others
- 2:33though this is where your information
- 2:34hierarchy comes from and the stronger
- 2:37the relationship is the closer the
- 2:39elements should be together generally
- 2:41speaking let's talk about relationship
- 2:43strength and we'll do it by looking at
- 2:45this mockup of Apple's desktop nail app
- 2:47by Austin coniff on figma community an
- 2:50example of strongly related elements
- 2:52would be the heading and subject line
- 2:54within each list item here they're part
- 2:56of the same informational unit the email
- 2:59but by by contrast we would say that
- 3:02this specific heading and this sidebar
- 3:04menu item have a very weak relationship
- 3:07The Heading is tied to the email but the
- 3:09sidebar item is tied to the app's
- 3:12overall navigation some elements are
- 3:14strongly related like this heading and
- 3:16subheading and a weekly related pair
- 3:18would be the heading and the weather
- 3:20icon they're farther apart and they're
- 3:22less visually similar we're still just
- 3:25looking at Laura msum though if we
- 3:26replace this with actual content then we
- 3:29add new layer of complexity to the
- 3:31environment suddenly the relationships
- 3:33have shifted the strong and weak
- 3:35relationships are reversed the heading
- 3:37and the icon are telling us about the
- 3:40weather so now they have something in
- 3:41common but the subheading is telling us
- 3:43what city we're in to fix this card will
- 3:46move the icon to the left and make it a
- 3:48little bit
- 3:49bigger now looking at them side by side
- 3:52you can see how the one on the right
- 3:53more accurately reflects the
- 3:55relationships between the
- 3:57elements how much space do you to use
- 4:00and when do we just eyeball it no don't
- 4:04eyeball it instead we're going to use
- 4:07preset spacing values from a scaling
- 4:09system and for this demonstration we're
- 4:12going to use the lift kit system here
- 4:15we're designing an employee handbook we
- 4:17need to break up the spacing to make it
- 4:19a little bit easier to read now uh the
- 4:22first thing we're going to do is apply
- 4:23some color grading to just make it
- 4:25easier to spot different levels in this
- 4:27type hierarchy now we're going to look
- 4:29for relations we'll scan through the
- 4:31document and group elements together
- 4:33into pairs for example title and
- 4:37subtitle that's easy heading and
- 4:39subheading still pretty easy but what
- 4:42about this paragraph the paragraph
- 4:44complicates things but we'll take it one
- 4:46step at a time we have three text
- 4:48elements here that are technically part
- 4:50of the same informational group so it
- 4:52really comes down to the one in the
- 4:53middle the subtitle is it more closely
- 4:56related to the title or to the paragraph
- 5:00I think it's more of a subtitle right so
- 5:02that relation is stronger meaning they
- 5:04are going to be closer together than the
- 5:06subtitle in the
- 5:08paragraph we're going to go to our list
- 5:10of variables and figure out which one of
- 5:12our presets we want to choose from and
- 5:14we'll apply extra small so when we zoom
- 5:17in we do want to remember that the
- 5:20margin is always derived from the larger
- 5:22text element always apply the margin to
- 5:24the bigger
- 5:25one now that's one relation taken care
- 5:28of and we can move on to the subtitle
- 5:31and paragraph the only real rule here is
- 5:33that they just need to be farther apart
- 5:36than the first two so in this case uh
- 5:40I'm going to skip a level I'm applying
- 5:42the value of medium so that's an extra
- 5:45small space and medium space and now
- 5:47we're done with those two and moving on
- 5:49to removing the annotations you can see
- 5:52that it's a lot cleaner when we go to
- 5:54the next pair now we have the same
- 5:55paragraph and then the heading that's
- 5:58coming right after it now quick contacts
- 6:00is an entirely new section in the
- 6:02document semantically it really has
- 6:04nothing to do with the paragraph that
- 6:06comes before it so we can see that if we
- 6:10look at spaces a b and c a should be
- 6:13bigger than b which should be greater
- 6:15than
- 6:16C remember when we're picking variables
- 6:20to use here we've already used extra
- 6:22small and medium so I'm going to choose
- 6:25large and the reason I'm not skipping a
- 6:27level again is because the spacing scale
- 6:30in lift kit is exponential you don't
- 6:32really have to skip levels once you get
- 6:34past medium but it can be helpful when
- 6:37you're dealing with extra small and
- 6:39small so we'll go through the whole
- 6:40document like this and we will eyeball
- 6:44but with parameters the scaling system
- 6:46gives us some creative freedom and
- 6:48prevents us from making bad decisions
- 6:50and at the end of our process all of the
- 6:53relational pairs will have their spacing
- 6:54assigned and then when we remove the
- 6:57annotations we can see how much easier
- 6:58it is now to
- 7:00read that does leave these padding
- 7:04problems in the tab links and the table
- 7:06cells which I'm just going to do right
- 7:08here because this video is already
- 7:09getting kind of long and when we look at
- 7:11them side by side you can see how much
- 7:13of a difference it makes to apply this
- 7:16system here's how you can actually
- 7:18implement this there's three ways the
- 7:20first way is to just use liftkit it's a
- 7:22clonable web flow project that offers a
- 7:24lot of benefits I'll get into in a
- 7:26second option two is you can DIY you you
- 7:29can just learn the math and come up with
- 7:31your own system and then the third is
- 7:33that you can just pay chain lift to do
- 7:34it lift Kit's my favorite suggestion
- 7:37because not only is it free but it's
- 7:38also super lightweight it's not a
- 7:40component Library it's a framework that
- 7:42just establishes guard rails for you you
- 7:45can also learn it in like a day uh I
- 7:48think that a lot of Frameworks that
- 7:50require courses to learn are kind of
- 7:52unnecessarily complicated lift kit is
- 7:54designed to be well designed to have an
- 7:57incredibly gentle learning curve
- 7:59and there's no math involved you can
- 8:01visit chainlift doio liftkit to install
- 8:04it again it's a web flow clonable you're
- 8:06going to love it option two option two
- 8:08is
- 8:09DIY and one of the pros of DIY is that
- 8:12it's not really that hard there are a
- 8:14lot of formulas that inform where these
- 8:16spacing units come from but they're not
- 8:18difficult to memorize but it does take
- 8:20practice it's not as intuitive as
- 8:22learning lift kit and uh it may require
- 8:25a few days of practice but overall it's
- 8:26still not that bad however I can't help
- 8:29you if you do go for this route then uh
- 8:32chainlift can't really give you any
- 8:33support I mean I'm always happy to help
- 8:36and answer questions and things like
- 8:37that but uh I can't guarantee that I
- 8:40will be able to fully wrap my head
- 8:42around whatever custom system you buil
- 8:44for this I am working on a patreon
- 8:45course and I know I just said the
- 8:46courses are stupid but not mine because
- 8:49it's
- 8:50me the last option is you can just hire
- 8:52chainlift we'll set it up for you uh
- 8:55we'll offer training teach you and your
- 8:57staff how to do the whole thing
- 8:58implement with your framework make sure
- 9:00that it works correctly do QA all of
- 9:02that good stuff you know what hiring an
- 9:03agency is like and you get free support
- 9:05forever which is also pretty cool so
- 9:08other than that this has been a glimpse
- 9:10into the secret science of perfect
- 9:12spacing so if you have questions please
- 9:14feel free to leave them in the comments
- 9:17I get notifications directly uh because
- 9:20the Channel's still pretty small so uh
- 9:22there's a chance that you'll hear back
- 9:23from me pretty quickly and if you leave
- 9:25a comment uh it's the easiest way to get
- 9:28in touch you can also email us I think
- 9:30there's an email plastered everywhere
- 9:31visit my website
- 9:33um yeah that's pretty much it so uh
- 9:36thank you for watching and we'll see you
- 9:38next time
About this transcript
This page contains the full transcript of The Secret Science of Perfect Spacing by Chainlift, generated from the public captions YouTube serves with the video. The transcript has 1,819 words across 260 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.