agentleFS
Owl-ListenerOwl-Listener/designpowers/skills/adaptive-interfaces/SKILL.md

adaptive-interfaces

Skill249 starsChanged 6 months agoMITView on GitHub

Use when designing for user preferences — motion sensitivity, contrast needs, colour schemes, text sizing, information density, or any interface behaviour that should adapt to individual needs

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All animations and transitions are wrapped in a motion preference check

    line 38
  2. Distinctive:

    If autoplay is a business requirement, provide immediate pause/stop controls AND respect prefers-reduced-motion

    line 55
  3. Very specific:

    Use rem or em units, never fixed px for font sizes

    line 71
  4. Distinctive:

    Test at 200% browser zoom — content must remain usable

    line 72
  5. Distinctive:

    Do not clip or overflow text when sizes change

    line 75
  6. Distinctive:

    If offering density controls:

    line 85
  7. Distinctive:

    Ensure all density levels maintain accessibility requirements (touch targets, contrast, readability)

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Adaptive Interfaces

Good design does not force everyone through the same experience. It adapts. This skill ensures interfaces respect user preferences, system settings, and individual needs — not as optional extras, but as fundamental design requirements.

When to Use

  • Designing themes (dark mode, high contrast, custom colour schemes)
  • Implementing motion or animation
  • Building flexible typography or layout systems
  • Designing for varying information density needs
  • Any time the interface could benefit from adapting to the user

Process

Step 1: Identify Adaptable Properties

Review the design and map what should adapt:

PropertyUser PreferenceCSS/System Signal
Colour schemeLight/dark/customprefers-color-scheme
ContrastStandard/highprefers-contrast
MotionFull/reduced/noneprefers-reduced-motion
Text sizeSystem font size settingsrem/em units, viewport scaling
Information densityCompact/comfortable/spaciousUser setting or breakpoint
TransparencyStandard/reducedprefers-reduced-transparency

Step 2: Motion Sensitivity

Motion is the most commonly harmful interface property. Handle it rigorously:

Default behaviour:

  • All animations and transitions are wrapped in a motion preference check
  • prefers-reduced-motion: reduce disables non-essential animation
  • Essential motion (e.g., a progress bar filling) uses reduced, simpler alternatives

Implementation pattern:

/* Full motion (default) */
.element { transition: transform 300ms ease-out; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .element { transition: none; }
}

Never autoplay:

  • Video, carousel, or animated content must not play automatically
  • If autoplay is a business requirement, provide immediate pause/stop controls AND respect prefers-reduced-motion

Step 3: Colour Scheme Adaptation

Dark mode is not "invert the colours." It is a separate design exercise:

  • Backgrounds: dark grey (not pure black) reduces eye strain
  • Text: off-white (not pure white) on dark backgrounds
  • Elevation: lighter shades indicate higher elevation in dark mode (opposite of light mode shadows)
  • Semantic colours: error red, success green — these may need different shades in dark mode to maintain contrast
  • Images and illustrations: may need dark-mode variants or reduced brightness

Step 4: Typography Flexibility

Text must be resizable without breaking the layout:

  • Use rem or em units, never fixed px for font sizes
  • Test at 200% browser zoom — content must remain usable
  • Support system-level large text settings
  • Line spacing, letter spacing, and word spacing should be adjustable (WCAG 1.4.12)
  • Do not clip or overflow text when sizes change

Step 5: Information Density

Different users need different densities:

  • Spacious: more whitespace, larger touch targets, fewer items visible — beneficial for motor impairments, cognitive load, mobile use
  • Comfortable: balanced — the default for most users
  • Compact: denser information, smaller elements — beneficial for power users, large dataset work

If offering density controls:

  • Persist the user's choice across sessions
  • Ensure all density levels maintain accessibility requirements (touch targets, contrast, readability)

Step 6: Respect and Persist Preferences

  • System-level preferences (via media queries) should be respected automatically with no opt-in required
  • Application-level preferences (density, layout) should be easy to find, easy to change, and persisted
  • Never override system preferences without explicit user action
  • Never require users to justify their preferences (no "Are you sure you want dark mode?")

Step 7: Document Adaptive Behaviour

For each adaptive property, document:

  • What adapts and why
  • The default behaviour
  • The adapted behaviour for each preference
  • How the preference is detected and respected
  • Fallback behaviour when preference detection is unavailable

Integration

  • Called by: ui-composition, interaction-design
  • Pairs with: cognitive-accessibility (density and simplification), inclusive-personas (preference awareness)
  • Reviewed by: designpowers-critique

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.