The 80% of UI Design - Typography — Transcript
Full transcript
- 0:00most of the uis are just text and
- 0:02buttons with some icons to help users
- 0:04take necessary actions so mastering
- 0:07typography is that 20% of the design
- 0:10that gives you the 80% of the
- 0:12results let's start by removing all the
- 0:15font styles from this very popular UI on
- 0:18the left sidebar we broke the selected
- 0:20tab that's definitely bad for user
- 0:23experience we have no idea where we are
- 0:25right now same thing for the buttons on
- 0:28top now coming to the feed itself there
- 0:31is no hierarchy and point of focus so
- 0:34it's tough to tell what we are looking
- 0:35at it's just a bunch of text looking at
- 0:39the original shows the impact of
- 0:41typography in UI design let's try to
- 0:43build it from scratch the most obvious
- 0:46thing is to make the title bigger and a
- 0:48bit Bolder than the rest of the elements
- 0:50did you notice the Gap here it's not Gap
- 0:53margin or padding it's the line height
- 0:55doing its thing but more on that later
- 0:58for now we have a UI that is almost
- 1:00there but we can make it better right
- 1:02now this whole thing looks like one
- 1:04single block of information like we are
- 1:07telling the user hey you better read
- 1:09this as well but we know that the title
- 1:12is connected to the thumbnail and users
- 1:14should look at these two together before
- 1:16moving on to the other elements in short
- 1:18we don't just want the title to stand
- 1:20out we also need it to stand on its own
- 1:23separate from this group to do that we
- 1:26need to understand how the human brain
- 1:28recognizes shapes and patterns what do
- 1:31you see here how can we separate them
- 1:34into two groups we could space them out
- 1:37like this but people might still get
- 1:39confused between one group of six
- 1:41circles or two groups of three circles
- 1:44so let's try
- 1:45size this is also confusing some might
- 1:49see this as three groups instead of the
- 1:50two we
- 1:51intended let's try
- 1:54color it's still not clear enough if
- 1:56it's three or two groups but if we just
- 1:58move the second group of bit down it
- 2:00becomes very clear that it's two groups
- 2:02instead of three you can validate this
- 2:05by showing it to your friends or
- 2:07colleagues now let's retrace our steps
- 2:09before we go back to fonts you are going
- 2:12to need size color and spacing to group
- 2:14or separate elements technically spacing
- 2:17falls under the law of proximity but
- 2:19it's used for the same purpose to group
- 2:22or separate elements speaking of laws
- 2:25you can also use shape to group elements
- 2:27but it doesn't help us in this case how
- 2:30however we do have font weight more on
- 2:32that later for now let's get back to the
- 2:35UI we were designing earlier from what
- 2:38we just observed we already have these
- 2:40three properties to emphasize and
- 2:41separate the title from this group all
- 2:44we need is color but which color white
- 2:47on black is already at the max contrast
- 2:49possible so to emphasize this we need to
- 2:53deemphasize that the easiest way to do
- 2:56that is by tweaking the lightness value
- 2:58and seeing what works best
- 3:00in our case 60% lightness is the sweet
- 3:03spot for keeping the text readable and
- 3:05still emphasizing the title this is a
- 3:08pretty brilliant technique in UI design
- 3:11you know who else is brilliant the
- 3:13sponsor of this video they are
- 3:15exceptional at explaining complex topics
- 3:17in simple ways brilliant offers
- 3:19interactive lessons in math science
- 3:22coding and much more all crafted by an
- 3:25award-winning team of researchers and
- 3:27professionals from Top tier institutions
- 3:30the lessons are filled with interactive
- 3:32problem solving activities that let you
- 3:33play with the concepts a method proven
- 3:36to be six times more effective than
- 3:38watching lecture videos one lesson I
- 3:41really liked is thinking in code it's
- 3:43packed with essential coding elements
- 3:45from loops and variables to nesting and
- 3:47conditionals making it a great starting
- 3:50point for your coding Journey if you're
- 3:52already familiar with the basics you can
- 3:54jump ahead and explore more advanced
- 3:57topics brilliant literally has
- 3:59everything and you can try it all for
- 4:01free for a full 30 days just visit
- 4:04brilliant.org
- 4:05or click the link in the description
- 4:09plus you'll get 20% off an annual
- 4:11premium
- 4:14subscription if we zoom out a bit we'll
- 4:17see this color trick being used
- 4:19everywhere the most important elements
- 4:21have the highest contrast and then to
- 4:23deemphasize other elements they just
- 4:25played with the lightness value but this
- 4:28is a bit different we will come to it
- 4:30later in the video for now you just have
- 4:33to understand the hsl color function and
- 4:36how it's used in UI design it's short
- 4:39for Hue saturation and lightness this is
- 4:42the type of color you want like red
- 4:44green or blue it's measured in degrees
- 4:47on a color wheel starts at zero with red
- 4:50120 is green and 240 is blue think of it
- 4:54as picking the base color saturation
- 4:57controls the intensity of that base
- 4:59color a saturation of 100% gives you the
- 5:03most intense version of the color and 0%
- 5:06turns it into a shade of gray and
- 5:08finally we use lightness to control the
- 5:10brightness at 50% you get the base color
- 5:14at zero it's black and at 100 it's white
- 5:18so Hue represents color values that
- 5:20range from 0 to 360 saturation is the
- 5:23intensity measured in percentage and
- 5:26lightness is a percentage that controls
- 5:28the brightness
- 5:30to assign a color we use these values
- 5:32inside the hsl function like this for
- 5:35this video all we need is the lightness
- 5:37value after all this video is about font
- 5:40Styles not
- 5:42colors that's exactly what we did here
- 5:45this has a lightness of 100% And this
- 5:47one has 60 using the same concept we can
- 5:51wrap this inside a card and give the
- 5:53card 10 or 20% lightness we can also use
- 5:57color just focus on the light value this
- 6:01color is too bright for the card so
- 6:03let's bring it down to
- 6:0410% let's apply the base color to this
- 6:07group and see if it works we'll check
- 6:10that in a minute but first we need a
- 6:12lighter color for the title because the
- 6:14base color won't work in this case 90%
- 6:18looks good but the base color is a bit
- 6:20dark for this group so I'm going to bump
- 6:23it up to 70 and see if that does the job
- 6:26I think it will work but let's zoom out
- 6:29and see how looks on a real UI we want
- 6:31to check if the title stands out and if
- 6:33the group is legible ideally you'd test
- 6:36this with real users but you can also
- 6:38show it to friends or colleagues for
- 6:41feedback and by the way this is just
- 6:43using a lighter color to highlight the
- 6:45active tab lighter Shades appear on top
- 6:48making them more important before we
- 6:51move forward with the rest of the video
- 6:53Let's improve this UI using the basic
- 6:55concepts we've learned we have a list of
- 6:58channels the user is Subs subcribed to
- 7:00how can we provide a better user
- 7:03experience firstly there is no hierarchy
- 7:06everything just looks like a blob of
- 7:08text secondly this button needs to stand
- 7:11out let's zoom in some size and weight
- 7:15to emphasize the title then a darker
- 7:17color and smaller size to deemphasize
- 7:19the username a lighter color to
- 7:22highlight the button but the button
- 7:23doesn't look quite right here let's move
- 7:26it to the right and wrap everything
- 7:28inside a card it's looking much better
- 7:31now the button still looks a bit bulky
- 7:33though let's reduce the font size to
- 7:35match the username it looks good but
- 7:39remember we're zoomed in we need to
- 7:41check if it works at the original size
- 7:44the username might be hard to read it
- 7:46could use some weight and so could the
- 7:49button I'll leave it to you to judge the
- 7:51design for now let's shift
- 7:55gears these are all the font sizes you
- 7:57need to design 99% of apps and uis and
- 8:01if you want just these three combined
- 8:03with weight and color are enough to
- 8:05build an entire UI how many font sizes
- 8:08do you see
- 8:12here these all have the same font size
- 8:15of 16 pixels except for this one the
- 8:18impact of weight and color on font size
- 8:20is pretty wild so you don't need many
- 8:23sizes to create hierarchy combining size
- 8:26weight and color can do the trick I'm
- 8:29not saying you should create a typ scale
- 8:31like this but this won't help you much
- 8:33either you'll probably need something
- 8:35more like this yep that's it everything
- 8:38you see is 14 pixels except for the
- 8:41title and the two headings it's the same
- 8:43on this video page everything is 14
- 8:46pixels except for the title and the
- 8:48channel name for your project just pick
- 8:51a base font size either 14 or 16 pixels
- 8:55regular weight and 100% lightness I'll
- 8:58get to light mode in a minute but let's
- 9:00finish this first once you've picked
- 9:03your base font try designing everything
- 9:05with that size and when you absolutely
- 9:07need to go two pixels up or down from
- 9:10there that's it that's your typ scale to
- 9:14make things easier assign them as Global
- 9:16variables this isn't a CSS video but
- 9:19here's how you can do it first set the
- 9:22font weight then the font size and line
- 9:24height and finally the font family any
- 9:28popular font will work just fine you can
- 9:31get them for free from Google first
- 9:34convert the pixel unit to a rem value we
- 9:36want our apt to follow accessibility
- 9:38guidelines so users should be able to
- 9:41adjust the font size if they need to
- 9:43secondly this m value is very
- 9:46important remember this Gap this is
- 9:49crucial for the title to stand out and
- 9:51stand alone in most cases we don't need
- 9:54to manually add a gap or margin the line
- 9:57height takes care of it automatically
- 9:59acting as the margin bottom for text
- 10:01elements so your Global variables might
- 10:04look something like this and that's it
- 10:07this is all you need to build a top tier
- 10:10UI but keep in mind not all H1 elements
- 10:13will share the same font style code for
- 10:16document hierarchy but style for visual
- 10:20hierarchy you might think this is the
- 10:22obvious
- 10:23solution but it should actually look
- 10:25something like
- 10:27this use your common sense to judge what
- 10:30the user will focus on and emphasize
- 10:32that
- 10:33text once you're happy with the design
- 10:36zoom out and view the entire UI font
- 10:39size is a relative unit meaning it
- 10:41depends on its neighboring elements
- 10:43right now both are competing for
- 10:45attention let's try a bigger font size
- 10:48and see if that
- 10:49works big bold fonts can often be too
- 10:52harsh on the eyes so let's bring the
- 10:54weight down and see if that works it
- 10:57looks good but this is a dynamic number
- 11:00so we need to account for that as well
- 11:03don't just design for visual hierarchy
- 11:05design for functionality
- 11:07too let's now wrap things up by
- 11:09converting this design to light mode
- 11:12it's much easier than you think let's
- 11:15start with these three colors white gray
- 11:17and black as I said earlier all you need
- 11:20is this L value so always use hsl
- 11:23instead of hex or
- 11:25RGB the background is pure black so the
- 11:28light mode will be pure white but if you
- 11:30look at the L value we just did a simple
- 11:33calculation there subtract the L value
- 11:35from 100 and that's all you need to do
- 11:38with these colors
- 11:39too let's do the same thing with this UI
- 11:42which has a lot of colors in it some
- 11:45used for gradient backgrounds and others
- 11:47for text labels and
- 11:49buttons here's what those colors look
- 11:51like on a light background without any
- 11:54modifications and if we subtract the L
- 11:56value from 100 they'll look something
- 11:58like this now all you have to do is
- 12:01switch out the colors with the help of
- 12:03CSS
- 12:04variables I could keep going but
- 12:07remember this video is about font Styles
- 12:09not colors you can check out this color
- 12:12generator on my website this could help
- 12:15you break out of the typical gray color
- 12:17scheme the link will be in the
- 12:19description just below the like And
- 12:21subscribe buttons
About this transcript
This page contains the full transcript of The 80% of UI Design - Typography by Sajid, generated from the public captions YouTube serves with the video. The transcript has 2,076 words across 295 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.