Chapter 64: Visual interface design
Visual interface design is the visual layer of a product’s screens: how controls, text and surfaces look, rank and fit together. The tools are those of any layout (→ 24 Hierarchy, alignment and white space), with two added demands: the ranking has to match what people are likely to do, and the same screen has to work at several sizes and in two appearances.
Hierarchy in interfaces
In an interface, hierarchy ranks actions as well as content. Emphasis is how strongly a control or text style draws attention compared with the others on the screen, and platforms set it in levels. Google’s Material Design ranks its five common button types. Filled buttons have the most visual impact after the floating action button and are meant for “important, final actions that complete a flow”; outlined buttons are medium emphasis; text buttons are for “the lowest priority actions”.1
The primary action is the one a person is most likely to take, and it gets the strongest style. Apple’s guidelines say to keep prominent buttons to one or two per view, and to mark the preferred choice with style rather than size. They also say never to give the primary role to a destructive action, even when it’s the likely one, because people sometimes press a prominent button without reading it.2 A “Delete account” dialog therefore makes Cancel the primary button and shows Delete in red.
Text has emphasis levels too. Material’s dark-theme guidance sets high-emphasis text at 87 percent opacity, medium at 60 percent and disabled at 38 percent, so one color makes three ranks.3 Surfaces add a third layer. Elevation is the apparent height of a surface above the one beneath it: a menu over a page. In a light theme a shadow shows that height.
Components and density
A component is a reusable part of an interface, such as a button, field or table (→ 65 Design systems). Visually it is a fixed set of decisions about size, padding, type and color, and most components come in size variants. Apple’s buttons come in five, from mini at 28 pt to extra large at 64 pt, with regular at 44 pt.2 IBM’s Carbon data table offers row heights of 24, 32, 40, 48 and 64 px.4
Visible size and tappable size are separate decisions. Apple asks for a hit region of at least 44 × 44 pt whatever a button looks like (→ 48 Usability and ergonomics).2
Density is how much a layout fits into a given space (→ 24 Hierarchy, alignment and white space). In product work it often becomes a density mode, a setting that switches a screen or component between spacious and compact versions. Compact suits tables and tools used all day with a mouse; spacious suits touch screens and occasional users. Build both modes from the same components with smaller spacing steps, not as separate designs, or they drift apart.
Dark mode
Dark mode is an appearance setting that shows light text and controls on dark backgrounds. It became a standard system setting after Apple announced macOS Mojave in 2018, with a system-wide dark color scheme and an API for developers.5 On the web, the CSS media feature prefers-color-scheme has reported a person’s choice in all major browsers since January 2020.6
A dark theme isn’t the light one inverted. Apple describes its dark palette as dimmer backgrounds and brighter foregrounds, some colors inverted and some not.7 Material’s guidance used a dark gray, #121212, for the lowest surface, and showed elevation by laying semi-transparent white over higher surfaces, more of it the higher the surface. It also warns that saturated colors “vibrate” against dark backgrounds, so primary colors get lighter, softer versions.3 Apple uses two sets of backgrounds, base and elevated: popovers and sheets switch to the brighter elevated set automatically.7 Keep text contrast at 4.5:1 at least, and Apple asks for 7:1 for custom colors, especially in small text.7 Name colors by role so each role can hold two values (→ 16 Building a palette).
The evidence for dark mode is mixed. Raluca Budiu’s 2020 review for Nielsen Norman Group found that people with normal vision read and proofread better with dark text on a light background (positive polarity), while some people with cloudy eye media, such as cataracts, read faster with light text on dark.8 Battery savings depend on the screen. Pranab Dash and Y. Charlie Hu at Purdue measured savings of 3–9 percent on OLED phones at the 30–50 percent brightness most people use indoors, and 39–47 percent at full brightness; LCD screens, lit by a backlight, save little.9
In practice
- Follow the system setting. Apple advises against an app-only appearance switch, because people expect one setting to change everything.7
- Offer dark mode, especially for long reading, but don’t make it the default for everyone.8
- Check images in both modes; Apple notes that a white background can glow in a dark interface.7
- Test dark mode with increased contrast turned on as well (→ 49 Accessibility and inclusive design).
See also
- 16 Building a palette
- 24 Hierarchy, alignment and white space
- 48 Usability and ergonomics
- 61 Interaction patterns, forms and states
- 65 Design systems
- 68 Platform guidelines
Sources
- Apple (2018). “Apple introduces macOS Mojave.” Press release, June 4.
- Apple (n.d.). Human Interface Guidelines: “Buttons” (updated June 9, 2025) and “Dark Mode” (updated August 6, 2024).
- Budiu, R. (2020). “Dark mode vs. light mode: which is better?” Nielsen Norman Group, February 2.
- Google (n.d.). “Design a dark theme with Material and Figma.” Google Codelabs.
- IBM (n.d.). “Data table: style.” Carbon Design System.
- Material Web (n.d.). “Button.” Material Components for the web, GitHub documentation.
- MDN Web Docs (n.d.). “prefers-color-scheme.” Mozilla.
- Purdue University (2021). “Dark mode may not save your phone’s battery life as much as you think, but there are a few silver linings.” News release, July 28. Reporting Dash, P. and Hu, Y. C., MobiSys 2021.
Notes
- Google Codelabs, “Design a dark theme with Material and Figma.” https://codelabs.developers.google.com/codelabs/design-material-darktheme/ ↩ ↩
- IBM Carbon Design System, “Data table: style.” https://carbondesignsystem.com/components/data-table/style/ ↩
- Apple Newsroom (2018-06-04), “Apple introduces macOS Mojave.” https://www.apple.com/newsroom/2018/06/apple-introduces-macos-mojave/ ↩
- MDN Web Docs, “prefers-color-scheme” (Baseline, widely available since January 2020). https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme ↩
- Apple, Human Interface Guidelines, “Dark Mode.” https://developer.apple.com/design/human-interface-guidelines/dark-mode ↩ ↩ ↩ ↩ ↩
- Budiu, R. (2020-02-02), Nielsen Norman Group. https://www.nngroup.com/articles/dark-mode/ ↩ ↩
- Purdue University News (2021-07-28). https://www.purdue.edu/newsroom/releases/2021/Q3/dark-mode-may-not-save-your-phones-battery-life-as-much-as-you-think,-but-there-are-a-few-silver-linings.html ↩