skip to content

Design Language

The visual foundations every component draws on: type, color, spacing, icons, motion, elevation and brand. Interviewers ask because it keeps separately built screens reading as one product.

part ofDesign systems & UX foundationsoverview, primer and where to startread it →
on this pageshow

explore

questions

120 · 7 sections

In a payroll product's content style guide, what structure should an error message follow, for example when a pay run fails validation?

level: middleimportance: must knowfreq 38%
basics
~20 s

Say what happened in plain words, specific to the item; say why if it helps; and say how to fix it or what to do next. Avoid bare codes, blame and a vague 'Something went wrong'.

open as a page

In a hospital patient portal, why should the lab-results screen carry less brand expression than the public marketing homepage?

level: juniorimportance: should knowfreq 30%
basics
~20 s

Marketing pages exist to make an impression; task screens exist to get a job done. On a results screen, flourishes compete with the content and brand color can be misread as meaning, so the brand shows through a few consistent touches.

open as a page

For a logo in a restaurant point-of-sale tablet app, what do clear-space and minimum-size rules require, and what if the header bar is too small?

level: juniorimportance: should knowfreq 30%
basics
~20 s

Clear space is a protected margin around the logo, measured in a unit from the logo so it scales; minimum size is its smallest legible rendering. When a header cannot honour both, use a compact approved lockup, never a squeezed one.

open as a page

In product design, how does a vision statement differ from a set of design principles, and when does a team reach for each?

level: juniorimportance: should knowfreq 28%
basics
~20 s

A vision statement describes the future the product aims to create for its users; design principles are short, product-specific rules for choosing between options. The vision sets direction and priorities; principles settle everyday design decisions and review debates.

open as a page

On a hotel booking site, why should a payment-failed message drop the playful tone used in the booking-confirmed message?

level: juniorimportance: should knowfreq 32%
basics
~20 s

A failed payment leaves the guest stressed and at risk of losing the room. Humour there reads as not taking the problem seriously and slows them down; a calm, plain tone that helps them recover respects their state.

open as a page

In a data-visualization palette system, when do you use a categorical, a sequential or a diverging palette?

level: juniorimportance: must knowfreq 52%
basics
~20 s

Categorical palettes give unordered groups distinct hues of similar weight; sequential palettes show ordered magnitude with steadily changing lightness; diverging palettes show deviation from a meaningful midpoint with two hues darkening outward from a neutral center.

open as a page

In a design system, what are functional color roles like success, warning, error and info, and why define them centrally rather than per team?

level: juniorimportance: must knowfreq 55%
basics
~20 s

Functional color roles give colors fixed meanings: success, warning, error, info, interactive states and surfaces. Defining them once means every screen sends the same signal, users learn it, and the system guarantees contrast and a non-color cue centrally.

open as a page

In a design system, why is a dark palette designed step by step rather than produced by inverting the light palette's colors?

level: middleimportance: must knowfreq 50%
basics
~20 s

Inverting colors flips hues, breaking brand and status meaning, fails to preserve contrast ratios, makes saturated accents glare and reverses elevation cues. A dark palette is designed: dark gray surfaces, off-white text, softened accents, lighter raised surfaces, every pair re-checked.

open as a page

In a design system's functional palette, how should hover, pressed, focus and disabled colors be derived, and why is focus treated differently from hover?

level: middleimportance: must knowfreq 50%
basics
~20 s

Hover and pressed are usually derived by rule: a darker step or a translucent layer over the base. Focus gets its own strong, non-hue indicator, because WCAG 2.4.7 requires it and a TV-remote user has no other position cue.

open as a page

In a design system's color ramps, how can tone steps be designed so any two tones a fixed number of steps apart pass WCAG contrast?

level: middleimportance: must knowfreq 48%
basics
~20 s

Give every step a target relative luminance shared by all hues, and space steps so neighbours differ by a constant contrast ratio. Contrast then depends only on step distance, so one published distance per threshold holds for every hue.

open as a page

In a design system, what is a semantic text style such as heading, body or caption, and why use named styles over raw sizes?

level: juniorimportance: must knowfreq 55%
basics
~20 s

A semantic text style is a named typographic role, such as body or caption, that bundles size, weight, line height and letter spacing. Teams choose the role, not the numbers, so text stays consistent and one edit updates every screen.

open as a page

When an accounting app's design system adds Arabic and Hebrew, which parts of the interface should mirror in right-to-left layouts, and which should not?

level: juniorimportance: must knowfreq 42%
basics
~20 s

Mirror whatever follows reading direction: layout order, alignment, navigation, back and forward arrows, steppers and progress. Do not mirror numbers and amounts, logos, checkmarks or icons of real objects; left-to-right runs keep their order inside right-to-left text.

open as a page

In a design system for web and native apps, why must text follow the user's text-size setting, and how must layouts adapt?

level: juniorimportance: must knowfreq 50%
basics
~20 s

Many readers raise the system or browser text size because they need it, and fixed sizes ignore them. A system defines text styles relative to that setting, and layouts let text wrap, containers grow and horizontal rows stack at large sizes.

open as a page

In a design system, what is a modular type scale, and how does a 1.25 ratio from a 16 base generate its sizes?

level: juniorimportance: must knowfreq 50%
basics
~20 s

A modular type scale is a small set of font sizes where each step is the previous one multiplied by a fixed ratio. From a base of 16 at 1.25, the steps run 12.8, 16, 20, 25, 31.25 and 39.06, then get rounded.

open as a page

In a design system, why should a text style's visual prominence be chosen independently of the heading level the text is exposed as?

level: middleimportance: must knowfreq 45%
basics
~20 s

Heading level describes the document outline that assistive technology users navigate, while a text style describes visual prominence. A card title may need level 3 but a small style, and a large fare is not a heading at all, so each is chosen separately.

open as a page

In a design system, why give breakpoints names such as compact, medium and expanded rather than pixel values or device labels?

level: juniorimportance: must knowfreq 48%
basics
~20 s

Named window-width classes give designers, web and native engineers one vocabulary for ranges of available space. They describe the window rather than the hardware, so split-screen, resizing and zoom land in the right layout, and thresholds can change without rewriting specs.

open as a page

In a design system's column grid, what are columns, gutters and margins, and what job does each one do?

level: juniorimportance: must knowfreq 50%
basics
~20 s

Columns are the vertical tracks that content spans; gutters are the fixed spaces between columns that keep neighbouring content apart; margins are the space between the outer columns and the window edge. Together they give every screen shared alignment lines.

open as a page

In a design system, why use a spacing scale built on a base unit such as 8 instead of choosing each space case by case?

level: juniorimportance: must knowfreq 55%
basics
~20 s

A spacing scale replaces endless one-off guesses with a few shared steps, so screens share one rhythm and are quicker to design, build and review. A base unit such as 4 or 8 makes every step a simple multiple.

open as a page

In a design system shipped to web and native mobile, why are sizes specified in density-independent units rather than physical device pixels?

level: juniorimportance: must knowfreq 55%
basics
~20 s

Screens differ several-fold in pixel density, so a size given in hardware pixels renders at a different size on each. Density-independent units are multiplied by each device's scale factor, giving roughly one perceived size everywhere from a single spec.

open as a page

In a design system, what are inset, stack and inline spacing, and why define them as separate roles?

level: juniorimportance: should knowfreq 40%
basics
~20 s

Inset is the space inside a container around its content, stack is the vertical space between stacked elements, and inline is the horizontal space between items in a row. Naming the roles makes intent explicit and clarifies who owns each space.

open as a page

In a design system, what do elevation levels communicate, and why define a few named levels rather than per-component shadows?

level: juniorimportance: must knowfreq 46%
basics
~20 s

Elevation levels show how far a surface sits above others, signalling hierarchy, temporariness and focus. A few named levels, each mapped to one shadow or tone, keep one consistent light model and let the system retune depth in one place.

open as a page

In a design system's dark theme, why do shadows convey elevation poorly, and how does tonal elevation replace them?

level: middleimportance: must knowfreq 50%
basics
~20 s

A shadow is darker than the surface behind it, and on a near-black background there is little darker left, so depth disappears. Tonal elevation makes higher surfaces progressively lighter, one tone step per level, so depth reads through brightness instead.

open as a page

In a design system, when should content be separated with spacing, a divider, a border, or elevation?

level: juniorimportance: should knowfreq 38%
basics
~20 s

Use the weakest separator that works: spacing groups related content by default, dividers separate dense uniform rows, borders mark a container's or control's boundary, and elevation marks a surface that sits above or moves over others.

open as a page

In a design system, how should a corner radius scale be defined, and what rule keeps nested rounded corners looking concentric?

level: middleimportance: should knowfreq 34%
basics
~20 s

Define a few radius steps, from none to fully rounded, mapped to roles such as control and container so small parts get small radii. When one rounded surface sits inside another, give the inner radius the outer radius minus the inset, floored at zero.

open as a page

In a game companion app's design system, a squad-invite toast hides behind an open sheet and a menu opened in a dialog appears beneath it; what layering rules fix this?

level: seniorimportance: should knowfreq 34%
basics
~20 s

Define a named layer order by role, with toasts above sheets and dialogs, and add a relative rule: a surface opened from another appears directly above its opener, whatever its type. Visual elevation must follow that order.

open as a page

When is an icon on a car-rental vehicle card decorative rather than meaningful, and what does each kind need?

level: juniorimportance: must knowfreq 55%
basics
~20 s

An icon is decorative when nearby visible text already carries its meaning or it is pure ornament; hide it from assistive technology. It is meaningful when it carries information nothing else states; give it a text alternative naming that information.

open as a page

What accessible name should a car-rental results page give an icon-only heart button that saves a car, and why?

level: juniorimportance: must knowfreq 62%
basics
~20 s

Name it by its function, not its picture: “Save to favourites”, made unique per card, such as “Save compact hatchback to favourites”. Leave out the role word, and expose the saved status as a pressed state or a changing name.

open as a page

In a design system, why is an icon's glyph size kept separate from its tappable area?

level: juniorimportance: must knowfreq 45%
basics
~20 s

Glyph size serves visual hierarchy and pairing with text, while the tappable area serves the finger or pointer. A small icon becomes easy to tap by padding its hit area around an unchanged glyph, never by stretching the drawing.

open as a page

In a music-streaming app's design system, why should a single-color icon inherit the surrounding text color rather than carry a fixed fill?

level: juniorimportance: should knowfreq 28%
basics
~20 s

An icon that takes its color from surrounding text follows every state and theme its container handles — selected, disabled, dark surfaces, high-contrast settings — from one file. A fixed fill needs a file per color and breaks when surfaces change.

open as a page

In an icon system, what are the canvas, live area and padding, and why is every icon drawn on the same canvas?

level: juniorimportance: should knowfreq 34%
basics
~20 s

The canvas is the fixed square every icon is drawn on, the live area the inner zone for its main shapes, and padding the margin between them. A shared canvas lets any icon align and swap in controls without per-icon nudging.

open as a page

In a design system's motion guidelines, how do you tell whether an animation explains a state change or is only decoration?

level: juniorimportance: must knowfreq 52%
basics
~20 s

Remove the motion and ask what the user loses. If they can no longer tell where something came from, went or what changed, the motion is functional; if they lose only a moment, it is decoration.

open as a page

In interface motion design, which kinds of movement most often trigger vestibular symptoms, and what makes them risky?

level: juniorimportance: must knowfreq 45%
basics
~20 s

Parallax, zooming or scaling, large areas sweeping across the screen, spinning, and motion the user did not directly cause. They signal that the viewer is moving while the inner ear feels stillness, and that conflict can cause dizziness, nausea and headaches.

open as a page

For a design system's reduced-motion mode, why should most animations get a gentler alternative instead of simply being removed?

level: middleimportance: must knowfreq 44%
basics
~20 s

Much motion carries information: where a panel came from, that an action worked, that content is loading. Removing it all hides that information. Swapping travel, zoom and parallax for fades or clear instant changes keeps the meaning without the trigger.

open as a page

In a design system's motion scale, why does a small nearby change get a shorter duration than a large panel crossing the screen?

level: juniorimportance: should knowfreq 40%
basics
~20 s

Duration grows with how far something moves and how much of the screen changes: a small change is understood at once, a large panel needs time for the eye to follow. Too long feels sluggish; too short reads as a jump.

open as a page

In a design system's motion guidelines, why do enter and exit animations for the same element usually differ, and how?

level: middleimportance: should knowfreq 40%
basics
~20 s

Entering content must be noticed and located, so it gets fuller motion showing where it came from. Exiting content was already dismissed, so it leaves faster and simpler, often a fade, unless its direction tells users where it went.

open as a page