Marcus Andrey Study
Ler em português Library

Visual design · 5 min read

Visual Design and Typography for UI

Type scales, colour in OKLCH, spacing systems, icons, component polish and visual critique: how to make interfaces that look considered and work well. With labs.

Seven steps in order, then five labs and a part for people who lead design teams. One fictional product, Gale (wind-farm maintenance), runs through every lesson in live CSS demos.

Start with Step 1 →

  1. Step 1 · What visual design does

    • What visual design does in a productVisual design has three jobs: set the hierarchy of information, make the text legible, and signal what kind of product this is. This lesson names those jobs and shows the difference they make on a real screen.
    • Aesthetics in service of the taskAesthetic decisions in a product UI are always a trade-off between intent and constraint. This lesson names that tension, shows when aesthetics help the task and when they get in the way, and gives you a model to decide which is which.
    • Reading a screen: hierarchy, rhythm and contrastThree lenses for auditing any screen: who is on stage (hierarchy), how the eye moves through the content (rhythm), and how much visual tension separates the elements (contrast). This lesson teaches you to use all three.
  2. Step 2 · Type

    • Choosing typefaces for UIEvery interface uses a typeface, but the choice is often unexamined. The two-axis model — personality versus legibility at small sizes — gives you a framework to make that choice deliberately, test it at the right size, and explain the reasoning to a team.
    • Type scale, line height and measureA type scale gives an interface its vertical rhythm: a fixed multiplier produces the right number of sizes without chaos. Add line height and line measure and you have the three numbers that control how text reads.
    • Weight, tabular figures and fine detailsFour typographic details — weight, tabular figures, tracking and ligatures — are the difference between type that looks considered and type that looks like a default. Each has a clear rule; this lesson gives you those rules.
    • Fluid type with clamp()A single type scale works for one viewport width. Fluid type, written with CSS clamp(), makes sizes grow smoothly between a minimum and a maximum — without media queries. This lesson shows the formula, the trade-offs and when Gale uses it.
    • Variable fonts and performanceA variable font is one file that covers many weights, widths and styles. This lesson shows how the two most useful axes — weight (wght) and optical size (opsz) — work, when a variable font saves more than it costs, and how to load Inter Variable from Google Fonts.
  3. Step 3 · Colour

    • Building a colour palette in OKLCHWhy OKLCH is the right colour space for interface design, and how to build a three-layer palette — neutral scale, accent scale, and semantic scale — that holds up in dark mode and meets contrast requirements.
    • Semantic colour and stateHow to give each colour in your palette a semantic role — surface, on-surface, primary, secondary, status — and use state variations (hover, active, disabled) without adding new colours to the system.
    • Dark mode that actually worksWhy inverting your palette breaks dark mode, and how to build a second palette for dark contexts by flipping OKLCH lightness values while keeping chroma and hue constant.
    • Contrast ratios and WCAGThe two contrast measurement systems designers use today: the WCAG 2 contrast ratio (the current standard) and APCA Lc (the more perceptually accurate algorithm under development for WCAG 3). How to measure, what the thresholds mean, and how to verify Gale's palette in code.
  4. Step 4 · Space and layout

    • Spacing scalesA spacing scale built on a 4px base reduces layout decisions from dozens of ad-hoc values to a short, predictable set. How the four-step model works, how Gale applies it, and what happens when you ignore it.
    • Grids for dense screens and marketing pagesTwo kinds of grid serve two different purposes: a product grid with fixed columns and tight gutters for dense data interfaces, and a marketing grid with fluid columns and generous gutters for open pages. How to choose, and how Gale uses both.
    • Alignment and vertical rhythmVertical rhythm — the regular spacing of text baselines on the Y axis — makes pages easier to scan and helps different type sizes feel like they belong together. How cap-height, line-height and baseline snap work, and when to override them.
    • Responsive layout with CSS grid and container queriesResponsive layout has three layers: media queries that respond to viewport width, container queries that respond to component width, and intrinsic layouts that respond to available space using auto-fill and auto-fit. How each one works and when to use it.
  5. Step 5 · Shape, depth and detail

    • Corners, borders and shadows with a ruleBorder radius, borders and shadows are not decorative choices. Each communicates elevation — the perceived position of a component on the Z axis. This lesson gives you a rule that keeps the three consistent across every component.
    • Icons: style, size and optical alignmentIcons look simple. That's why the mistakes are expensive. This lesson defines the three parameters that determine whether an icon set works — style, size and optical alignment — and shows what each requires in practice.
    • Density and touch targetsDensity is a decision, not the absence of space. This lesson defines three levels — Compact, Default and Comfortable — and the touch target requirements that apply at each one, with Gale's values as a worked example.
  6. Step 6 · A family of components

    • Visual consistency across componentsOne component can look right in isolation. A system of components needs to look right together. This lesson defines form language — the four shared decisions on radius, shadow, border and surface colour — and shows how to audit and correct inconsistencies across a component family.
    • Visual states: hover, focus and disabledHover, focus and disabled are not decoration. They are the visual layer of feedback that tells users what is interactive, where they are, and what they cannot do. This lesson defines the four visual states and shows how each should look — and why the focus ring is a legal requirement, not a style choice.
    • The last 10 percentPolish is the set of small adjustments — optical alignment, intentional white space, weight consistency, zoom resilience — that separate a screen that works from a screen that reads as professionally made. This lesson defines polish and shows how to apply its four-item checklist to any real screen.
  7. Step 7 · Visual direction and brand

    • From brand to interfaceThree bridges connect a brand identity to a UI without making the interface a logo exercise. Here is how to move from a brand palette, a typeface and a shape language to concrete design tokens.
    • Escaping the generic lookMany product interfaces look interchangeable. This lesson names two decisions — an unusual accent colour and a specific typographic choice — that make a product visually distinct without trading away clarity.
    • Giving and receiving visual critiqueVisual critique without a protocol becomes a comparison of tastes. Three questions — describe, measure, propose — turn personal preference into a structured argument that a team can act on.
  8. Reference

    • Glossary24 terms defined in this course's lessons, A to Z.
Saved only on this device.

↑ ↓ to move · Enter to open · Esc to close