CHAPTER 11
Beginner
Typography in UI Components
Updated: May 16, 2026
35 min read
# CHAPTER 11
Typography in UI Components
1. Introduction
A website is not a single, massive canvas; it is an assembly of hundreds of tiny, interactive building blocks called UI Components. These components—Buttons, Forms, Navigation Menus, and Data Cards—are the steering wheel and pedals of the internet. If the typography inside these components is misaligned, improperly weighted, or illegible, the user crashes the car. Designing text for a button requires entirely different mathematical rules than designing text for a massive blog paragraph. In this chapter, we will master Typography in UI Components. We will establish the strict laws governing Call-To-Action (CTA) weights, ensure accessible input forms, and engineer navigation menus that provide instant, frictionless wayfinding.2. Learning Objectives
By the end of this chapter, you will be able to:- Engineer high-converting CTA Button typography using weight and case formatting.
- Design accessible Input Forms with clear labels and placeholder text contrast.
- Structure Navigation Menus using subtle typographic hierarchy (Active vs. Inactive states).
- Organize complex data inside constrained UI Cards using the 3-Tier text system.
- Understand how padding and alignment dictate the success of component text.
3. The Button (The Call to Action)
A button is the most important element on the screen. The text inside it must demand interaction.-
The Weight: Never use
LightorRegularweight text inside a primary button. It looks weak and unclickable. Always useMedium,Semi-Bold, orBold.
- The Case (Uppercase vs. Title Case):
- *Title Case (e.g., "Submit Order"):* Highly readable. The industry standard for modern SaaS apps.
-
*UPPERCASE (e.g., "SUBMIT ORDER"):* Highly aggressive. Requires increased letter-spacing (tracking) by
1-2pxto remain legible. Often used for secondary "ghost" buttons or tight mobile UI elements.
-
The Padding: Text needs to breathe inside the button. The horizontal padding (left/right) should always be exactly double the vertical padding (top/bottom). (e.g., Top/Bottom:
12px, Left/Right:24px).
4. Input Forms (The Data Collector)
Forms are where companies make their money. Poor form typography causes cart abandonment.-
The Label: Must sit *above* the input field (not inside it). It should be small but heavy (e.g.,
14px, Semi-Bold, Dark Gray).
-
The Placeholder Text: The text inside the empty box (e.g., "Enter your email..."). This MUST be a highly visible, medium gray (
#6B7280). Do not make it invisible light gray; users will think the box is disabled.
-
The Input Text: The text the user actually types. Must be massive and legible. Never smaller than
16px. (On iOS, if an input field is smaller than 16px, the phone camera will violently zoom in on the screen, ruining the layout!).
5. Navigation Menus (Wayfinding)
Navigation is the map of your application.-
The Active State: How does the user know what page they are on? The text must change. If the inactive links are
Regularweight andMedium Gray, the Active link must jump toSemi-Boldweight andPrimary Brand Color(or Pure Black).
- *Warning:* When changing font weight from Regular to Bold, the actual width of the word expands, which can "push" the rest of the navigation bar and cause an ugly layout shift. *Pro-Trick:* To prevent this, use an underline or color change for the Active State instead of a weight change, or use a "Variable Font" that allows weight changes without width expansion.
6. UI Cards (The Data Container)
UI Cards are tiny rectangles containing complex information (like a product on Amazon). You must ruthlessly apply the 3-Tier Hierarchy (Chapter 5) inside the restricted space.-
The Top (Eyebrow): A tiny
12pxALL CAPS category tag.
-
The Title:
18px, Bold. The anchor point.
-
The Price/Data: If the Price is the most important thing, make it massive (
24px). If the Description is most important, make it14px, Regular. Do not make them the same size.
7. Diagrams/Visual Suggestions
*Visual Concept: The Perfect Button Anatomy* Provide a technical wireframe of a UI Button.- The button is a blue rectangle. The text is "Sign Up".
-
Draw red lines showing the internal Padding. Label:
Top/Bottom Padding: 16px. Label:Left/Right Padding: 32px.
-
Point an arrow to the text. Label:
16px, Semi-Bold, Inter, Title Case.
8. Best Practices
-
Optical Alignment in Buttons: If your button contains an icon AND text (e.g.,
[Icon] Download), the computer will vertically align them perfectly to the mathematical center. However, because text has ascenders and descenders, it often *looks* like it is sitting too low. You must trust your eye over the math, and often manually nudge the text up1pxso it *optically* aligns perfectly with the icon.
9. Common Mistakes
-
The "Invisible" Form Placeholder: A designer makes the placeholder text in a form field a very faint
#E5E7EBgray because they want a minimalist aesthetic. *The Failure:* It fails the WCAG 4.5:1 contrast test. Low-vision users cannot see the instructions, cannot fill out the form, and cannot give the company their money. *Always prioritize form legibility over minimalism.*
10. Mini Project: Engineer a High-Converting Form
Let's build a credit card input field.- 1. The Canvas: White background.
-
2.
The Label: "Card Number". Typography:
14px, Semi-Bold, #374151(Dark Gray).
-
3.
The Input Box: Draw a rectangle with a
1pxlight gray border.
-
4.
The Placeholder Text (Inside the box): "0000 0000 0000 0000". Typography:
16px, Regular, #9CA3AF(Medium Gray).
-
5.
The Active Text (What the user types): Typography:
16px, Medium, #111827(Charcoal Black).
- 6. *Result:* You have built a mathematically perfect form. The label is unmissable, the instructions are visible, and the actual typed data commands the highest visual weight in the hierarchy.
11. Practice Exercises
- 1. Define the mathematical Padding rule for designing a primary Call-To-Action (CTA) button. What is the standard ratio between the horizontal (Left/Right) padding and the vertical (Top/Bottom) padding?
-
2.
Explain why it is a catastrophic accessibility error to set the font size of an Input Form field (where the user actually types their email/password) to
12pxor14px, particularly regarding the native behavior of iOS devices.
12. MCQs with Answers
Question 1
When designing the text inside a primary Call-To-Action (CTA) button (e.g., "Submit Order"), which typographic weight is considered the industry standard to ensure the text looks strong, clickable, and demands interaction?
Question 2
You are designing a top Navigation Bar. To clearly indicate to the user which page they are currently on (The "Active State"), you change the text from Regular to Extra-Bold. What negative layout consequence often occurs when changing font weight in a horizontal menu, and how do modern designers prevent it?
13. Interview Questions
- Q: Walk me through your specific typographic choices when designing a complex Input Form (e.g., Label, Placeholder, and User Input). Why must the User Input text inherently carry a heavier visual weight than the Placeholder text?
- Q: Explain the concept of "Optical Alignment" vs. "Mathematical Alignment" inside a UI Component. If Figma aligns a text layer and an SVG Icon perfectly to the vertical center, why might you still need to manually nudge the text up 1 pixel?
-
Q: A developer hardcodes your mobile Input Form text to
14pxto save space. How do you explain the disastrous UX consequence this will have on an iPhone user attempting to fill out the form?
14. FAQs
Q: Should I use ALL CAPS for my buttons? A: ALL CAPS works well for very short, 1-to-2 word buttons (e.g., "SUBMIT"). It creates a strong, rectangular shape. However, if the button text is long (e.g., "Continue to Checkout"), ALL CAPS becomes very difficult to read. For long buttons, always use Title Case.15. Summary
In Chapter 11, we applied our vast typographic theory to the microscopic building blocks of the internet. We established the rigid, mathematical padding rules required to frame Button text, prioritizing Semi-Bold weights to demand physical interaction. We armored our Input Forms against abandonment, ensuring massive16px input text to prevent mobile browser zooming, and maintaining strict WCAG contrast for placeholder instructions. Finally, we engineered Wayfinding navigation menus, utilizing color and underline states to guide the user without causing horizontal layout shifts.