The Perfect Spacing Framework in UI Design | Figma Tutorial

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 66

  • @Mizko
    @Mizko  Рік тому +5

    Ultimate Figma Design Masterclass (5,200+ students. 90+ Videos. 10+ hours)
    👉 thedesignership.com/courses/the-ultimate-figma-masterclass
    🏷 Get 10% off via checkout - SPACING10

    • @mmmmmmmmmm710
      @mmmmmmmmmm710 Рік тому +1

      Does this come with a certificate that I can put in my portfolio?

    • @Mizko
      @Mizko  Рік тому

      @@mmmmmmmmmm710 Yep :)

  • @theidealneal
    @theidealneal Рік тому +84

    Another reason why the 4-pt grid system is so important to use, is that as a frontend developer it's best-practice to use REM's for typography and spacing. Since the default 1rem is equal to 16px, it's quite easy to keep things consistent while styling. 4px is 0.25rem, 8px is 0.5rem, 32px is 2rem and so on. So it not only makes it easier for designers, but also for us developers when it's time to build!

    • @Videosuser
      @Videosuser 9 місяців тому

      I think it's beacause some items on the interface need a smaller spacing than 16 px.

  • @Royalbeck99
    @Royalbeck99 Рік тому +11

    I always use a 4px grid (good 7 years now), and I have 2 questions:
    1. How do you deal with the fact that most mobile devices screen sizes do not multiply by 4? (for example iPhone 14 W393px)
    2. Do you also use 2px padding?
    3. I found that when you have text next to icons (all divided by 4px in size) it looks too close with 4px or too far with 8px so I use 6px does it work? Do you have another go around it?

  • @alexsmedile
    @alexsmedile Рік тому +9

    What about line height? I was wondering should that adapt in relation to font size in order to keep the 4 point rule and be armonic

    • @theidealneal
      @theidealneal Рік тому +5

      Usually it's good to keep line-height between 1.2 and 1.6x the base font size. 1.2 for H1's, 1.3 for H2's, 1.5 for body etc. But that isn't a set rule. Start from there and see what looks best!

  • @adilbek.ermekov
    @adilbek.ermekov Рік тому +4

    Could you please explain why certain elements on your design have a 2px spacing?

  • @kylehilldesigns
    @kylehilldesigns Рік тому +8

    This is awesome, there are not as many 4-pt grid tutorials, so I'm sure this will help a lot of designers. KEEP KILLIN' IT! 🙌🏻

  • @dannab8069
    @dannab8069 18 днів тому

    Thanks a lot, this video brought me many clarifications, keep up the good work! 🙌🏻

  • @_________________________.-
    @_________________________.- Рік тому +1

    from a dev pov it's good to have consistent spacing but sometimes we just don't care that much.

  • @bvs455
    @bvs455 Рік тому +2

    Would love to see a video covering design documentation and handoff to developers 🤞

  • @ethanwasme4307
    @ethanwasme4307 4 місяці тому

    power of 2 textures sized/scaled to a 4x4 grid seems to be the most performant for the GPU

  • @Ralphunreal
    @Ralphunreal Рік тому +2

    Pretty similar to 8px grid, but 4px lets you work with better spacing since sometimes 8px might be too much for certain elements. I noticed I was doing 4px without even knowing it when I realized 8px is too much spacing for certain elements.

  • @MauriceKindermann
    @MauriceKindermann Рік тому +2

    This is awesome, it becomes a great huristic to follow that artifically constrains the total possible options for spacing (many to few). Then visually, it more or less answers itself when you only have a couple 'breakpoints' to choose from. I was tyring to think of ways this might fail, like using rem/em, but even those are pegged to 16px, so I assume that's why you would want a dynamic spacing plugin like "Tokens".
    Question - do you use a similar approach for fonts and font heirachy (title, main, heading, content, etc)? Like do you generally go title is 2x, subheading is 2/3, etc? Very curious about that.
    Great work!

  • @ehrro
    @ehrro 4 місяці тому

    It's called spacing friendship principle

  • @marzoval9551
    @marzoval9551 Рік тому +2

    When it comes to fonts, are you now using the new leading trim and spacing fonts with that, or are you still using the default bounding box?

    • @Mizko
      @Mizko  Рік тому

      To be brutally honest, in most cases my team and I build our own designs and we're fairly experienced with our workflow, so these minor details don't make much of a difference.

    • @AJ-yj6kd
      @AJ-yj6kd Рік тому

      @@Mizko So either is fine? Which is more accurate when it comes to development though? Because I know there is a line-height property for texts, I'm not sure if there's a vertical trim property. When you use vertical trim, the line height is set to Auto, so I wonder how the devs know the correct line height.
      Personally, designing with vertical trim is easier for me.

  • @codingwithrendi
    @codingwithrendi 4 місяці тому

    i am a web developer whatch this ☠

  • @EnesKab
    @EnesKab Рік тому +1

    That might sound like a simple trick for most of the people (especially for beginners) but it takes lots of practice and even years to recognize it. Thanks for sharing.

  • @Vivi-sama
    @Vivi-sama Рік тому +6

    4 pt grid is the way to go nowadays ! It is such a basic convention in our job but i'm still shocked that many designers are hazardous with spacing. For studying folks around here : UI is all about consistency and readability. Just don't improvise with spacing because "it looks cool for you". Following this simple statement will get you farther that many beginners.

  •  Рік тому +1

    I have a question for you Mizko.
    First, I'm not a UI/UX designer. I'm just a graphic designer. And I've been using the 8 pixels spacing system in my designs. After watching this video, I feel like I should not use the 8 pixels and Start using the 4 pixels.
    The question is: Should I use the 4 pixels spacing system instead of what I've been using, the 8 pixels?

    •  Рік тому +1

      I think they are kinda of the same thing, 8 is just two spaces of 4 afterall. It's just that when you need that fine adjustment just makes sense to jump to 4.

    • @cardozzzo
      @cardozzzo Рік тому

      Bro, I was about to do this question. I've also using 8pt grid and feeling confused about when use one or another.

    • @fernwehtwl
      @fernwehtwl Рік тому

      @@cardozzzo i have been taking courses from another designer who advocates 8pnt grid .. also adham dannaway another designer i follow also mentions 8pt grid too..
      the 4pt grid is so new to me and it looks so squished on the sides . I still need to learn more about the impact that 4pt grid does over 8pt

  • @WB-zr7pq
    @WB-zr7pq Рік тому +1

    I use 4pt as the base grid with use case caveats. Its important to adapt for your use cases set up your tokens use cases more and more.
    An example would be 4,8,12 for tighter smaller ui logic, ie nav, cta.
    8,16,24,32,40,48 etc. - interval of 8pt on the 4pt grid for most other things
    Larger Sectional logic - 104,80,56. Very token heavy use cases make a difference in design systems.
    Gap keep things simple - 16-32 grid gap.

  • @AliHaidar-y5j
    @AliHaidar-y5j 4 місяці тому

    Ustad kia bat ay

  • @miguelolivares3301
    @miguelolivares3301 Рік тому +1

    Thanks Mizko it was a really nice video, just 2 things... Don't know if it's beacuse you just upload the video, but the part where is you just talking full screen, looks a lil bit blurry. For the other side, you should make a video where you explain the Text Line Spacing with the same 4px grid rule. Thank you very much, your videos are so helpful :)

    • @Mizko
      @Mizko  Рік тому +2

      Hey Miguel, can you confirm that the video is still blurry now? I've forwarded your feedback to my team to make sure there's no quality loss in the future!
      Great idea, we'll line that video up as well.

    • @EnesKab
      @EnesKab Рік тому

      Yup. Line-height thing is a pain most of the times. Would be great to hear your tricks and opinions on that.

  • @azazinlove7514
    @azazinlove7514 5 місяців тому

    dolboeb

  • @ShrikeGFX
    @ShrikeGFX Рік тому

    you should really be doing larger steps the higher you go. Having 36 and 40 is completely redundant as example and makes things confusing and messy

  • @anton.tronenko
    @anton.tronenko Рік тому +1

    Mizko, thanks for that video! I was bumping into that problem constantly, when inner spacing ended up equal border spacings, recently i was educated about it by a fellow designer, and now educated even more by your video🔥

    • @Mizko
      @Mizko  Рік тому +2

      I'm so happy to hear this helped you found value in this Anton!

  • @ИльяКонстанта
    @ИльяКонстанта 9 місяців тому

    I really wish someone would make a video addressing text line height, text bounding boxes and spacing. The “cap to line height” feature is great but developers can’t work with that. The inconsistent spacing of the bounding boxes makes working with text very annoying.

  • @Michael.design
    @Michael.design Рік тому

    What I’m struggling with is spacing text elements on a baseline grid. Do I space them from baseline to baseline, or is it better to count pixels from container border to border?
    And is it better practice for example to apply leading trim to all your textboxes?
    What do u do Mizko?

  • @rootrl6247
    @rootrl6247 Рік тому

    Sir, There's no links on the description block that you said, Please update it, thanks!

  • @estebanlopez5372
    @estebanlopez5372 5 місяців тому

    I finally understood this shit. Thanks!

  • @teenylupini
    @teenylupini 11 місяців тому

    instantly subscribed after that sunglasses math edit... and the fact you're the first person to explain this simply

  • @Aririkateki
    @Aririkateki 7 місяців тому

    It was really great and useful, Keep going Mizko

  • @TaufikKemal
    @TaufikKemal Рік тому +1

    incredible, thank you!!

    • @Mizko
      @Mizko  Рік тому

      Thanks Taufik!

  • @mtc1516
    @mtc1516 Рік тому

    Been working out much? Looks bigger bro

  • @codingwithrendi
    @codingwithrendi 4 місяці тому

    this is actually straight forward tutorial

  • @hussainawardhawala7348
    @hussainawardhawala7348 Рік тому

    You have a way to uncomplicate things, which is just amazing! Thanks Mizko

  • @Kwasyuk
    @Kwasyuk Рік тому

    I've purchased 2 design ebooks for ui, both are from VERY reputable sources (both based on a 4pt spacing system). Yet some of my designs still felt "off". After watching this video I noticed the missing link... somehow they don't talk about the hierarchy to work from bigger sizing on the outside, to smaller sizing on the inside on a component level... This video made me "get it". Thanks Mizko!

    • @fernwehtwl
      @fernwehtwl Рік тому +1

      do you have the name of the design ebooks? I would be interested in checking them out too ! thanks

  • @animianacs2002
    @animianacs2002 Рік тому

    yes, the good old in between figure 8 method

  • @LightsaberPanda
    @LightsaberPanda Рік тому

    I follow this 4 rule like a religion at work 😊

  • @JuliaKrav
    @JuliaKrav 10 місяців тому

    Oh, God! Finally I got it!!!

  • @shadil8452
    @shadil8452 Рік тому

    Thank you for thos information ❤

  • @sk8trsurfr
    @sk8trsurfr Рік тому

    BRAVO! great post

  • @hussainawardhawala7348
    @hussainawardhawala7348 Рік тому

    Your videos are underrated!🔥

  • @LuisVeloz13
    @LuisVeloz13 Рік тому

    If you know, you know haha 😉

  • @zoorks133
    @zoorks133 Рік тому +1

    Love you bro ❤️

    • @Mizko
      @Mizko  Рік тому

      Thanks ZOORKS!!

  • @juansandia5060
    @juansandia5060 Рік тому

    Amazing! Thank you Mizko

  • @diegoflorez7032
    @diegoflorez7032 4 місяці тому

    Thanks

  • @eichieluis1276
    @eichieluis1276 Рік тому

    Thank you Mizko.

  • @sufm96
    @sufm96 Рік тому +1

    Brilliant exactly what I was looking for there's not many videos with the 4pt system. Just one question though for spacing in a design system would you include all the multiples of 4 or could you skip some after 40 for example so it would become 8pt 48,56 etc

  • @SamyadeepPurkayastha
    @SamyadeepPurkayastha Рік тому

    NO

  • @سميرةسعيد-ز8ظ
    @سميرةسعيد-ز8ظ 10 місяців тому

  • @WhoFarted69
    @WhoFarted69 Рік тому +1

    Ok Mizko, you've had a lot a great videos in the past, but this video has changed my life (in terms of my Figma use). You have EVERYTHING on Automated Layout and now I shall too. It's so much easier than I had thought just 9 minutes ago.
    Thanks homie!