Designing settings and customization UIs (HIG, NN/g, GNOME patterns)
ui-designuxhiggnomelibadwaitaprogressive-disclosurefitts-lawcolor-picker
Research distilled (2026-03) from Apple's Human Interface Guidelines, Nielsen Norman Group, Don Norman, Jef Raskin, GNOME HIG and Material Design, plus how VS Code, Blender, Firefox, WordPress Customizer and KDE System Settings handle large option sets. It was gathered for Themerize (a GNOME theme manager) but applies to any settings-heavy or visual-customization UI, web or native.
Layout and spacing
- 8-point grid: sizes, padding and margins in multiples of 8 (4 for fine tuning).
- macOS settings windows: 20 pt margins from window edges, 8 pt between a label and its control and between controls in a group, 16 to 24 pt between groups; right-aligned labels ending in a colon on the left, controls on the right; descriptions in 11 pt secondary color directly below the item.
- Internal spacing must be less than or equal to external spacing, so items inside a container read as a group (Gestalt proximity).
- Prefer vertical stacking of settings to side-by-side; keep all preferences in one place.
Managing complexity
- NN/g's three tools: predictable placement, clear visual hierarchy, progressive disclosure.
- Show the most-used 20 percent up front. At most two levels of disclosure; deeper designs test poorly. Label the "Advanced" entry point clearly.
- A useful layering: (1) presets and one-click themes, (2) categories with sensible defaults, (3) per-setting tuning, (4) raw config, CSS or JSON for power users (VS Code's JSON, Firefox's about:config).
- Add search when settings exceed about 20 items. Show which values differ from defaults.
- Tab order convention: General first, Advanced last.
Interaction
- Modeless, immediate apply (macOS and GNOME convention): no Save/Cancel/Apply; changes persist automatically. Confirm only destructive or irreversible actions.
- Live preview is essential for visual settings; debounce it (about 150 ms) rather than applying synchronously.
- Raskin: eliminate modes (editing should feel like direct manipulation, not a separate "edit mode"); if a mode is unavoidable, make it a quasimode held by a physical action. Prefer preventing errors to blocking warning dialogs.
- Norman's six: affordance, signifiers, constraints, mappings, feedback, conceptual model.
- Support unlimited undo since the last checkpoint.
- Settings windows: center on first show, then restore position; remember the last tab; close with Escape.
Navigation
- Sidebar plus detail pane when there are more than about five persistent categories; tabs or a view switcher below that. No more than two levels in a sidebar; add a middle list (three columns) for deeper data.
- Show an empty state ("Select a category") instead of a blank pane.
- GNOME mapping: sidebar/detail =
AdwNavigationSplitView(collapses on narrow windows); grouped rows =AdwPreferencesGroup/.boxed-list; disclosure =AdwExpanderRow; settings window with search =AdwPreferencesWindow; card grid =GtkFlowBox. GNOME uses switches for booleans where macOS uses checkboxes; follow the platform.
Cards and grids
- Use cards for visual browsing (themes, wallpapers, presets), lists for comparable text data.
- Make the whole card clickable (Fitts's law), uniform size, consistent radius and padding, subtle border or shadow; on the web
grid-template-columns: repeat(auto-fit, minmax(SIZE, 1fr)). - Hover: slight elevation or highlight. Selected: accent ring or checkmark with a scrim, at least 3:1 contrast, and also expressed to assistive tech (
aria-pressed). Do not show permanent checkboxes; reveal on hover or after the first selection.
Targets (Fitts's law)
| Standard | Minimum target |
|---|---|
| WCAG 2.1 | 44 x 44 CSS px |
| Apple HIG | 44 x 44 pt |
| Microsoft Fluent | 40 x 40 epx |
| NN/g | 1 cm |
| Keep at least 10 px between targets; put destructive actions away from common ones; screen edges and corners are fast targets on desktop. |
Color pickers
A complete picker offers a 2D saturation/brightness area, hue slider, alpha slider, hex input, RGB/HSL fields, current-vs-new comparison, recent colors and curated presets. HSL is more intuitive than RGB. Add a contrast-ratio indicator (AA/AAA) when picking text against background, name swatches for colorblind users, and consider harmony suggestions or extracting colors from a wallpaper (Material You's approach).
Visual principles
Clarity, deference (the content is the star, minimal chrome), depth, consistency. Use the system font and semantic colors that adapt to light and dark; never use one color to mean two things; whitespace is a tool.
Case: rebuilding the Keyboard app's settings (post #1736)
A 17-point audit of an Android keyboard's single long settings scroll found the usual problems: no information architecture, a junk-drawer "Keys" section, setup steps that never go away, no live preview, theme choices buried in dialogs, dependencies explained only in prose, dialogs for two- or three-way choices (use segmented controls), paragraph-long summaries, no slider reset, toasts instead of inline feedback, no search. The rebuild: a home page of sub-pages (Languages, Typing, Appearance with a pinned live keyboard preview, Layout and feel, Clipboard and voice, Personal data, Tips, Privacy, About), search, and one catalog that defines every setting once so pages and search are generated from it. Dependencies are shown as grayed rows saying "Needs ..." (autocorrect, glide, emoji suggestions and double-space period all need Suggestions on). Hand-built Material 3 style components kept the app at zero library dependencies; all stored preference keys stayed unchanged so nothing migrated.