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
In this repository36 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessible-contentSkill
- cognitive-accessibilitySkill
- design-debateSkill
- design-debt-trackerSkill
- design-discoverySkill
- design-expressSkill
- design-handoffSkill
- design-librarySkill
- design-mdSkill
- design-memorySkill
- designpowers-critiqueSkill
- design-retrospectiveSkill
- design-reviewSkill
- design-stateSkill
- design-strategySkill
- design-system-alignmentSkill
- design-tasteSkill
- figma-bridgeSkill
- heuristic-evaluationSkill
- inclusive-personasSkill
- inspiration-scoutingSkill
- interaction-designSkill
- motion-choreographySkill
- research-planningSkill
- responsive-patternsSkill
- synthetic-user-testingSkill
- taste-feedbackSkill
- taste-reportSkill
- token-architectureSkill
- ui-compositionSkill
- usability-testingSkill
- using-designpowersSkill
- verification-before-shippingSkill
- voice-and-toneSkill
- writing-design-plansSkill
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
- Distinctive: line 38
All animations and transitions are wrapped in a motion preference check
- Distinctive: line 55
If autoplay is a business requirement, provide immediate pause/stop controls AND respect prefers-reduced-motion
- Very specific: line 71
Use rem or em units, never fixed px for font sizes
- Distinctive: line 72
Test at 200% browser zoom — content must remain usable
- Distinctive: line 75
Do not clip or overflow text when sizes change
- Distinctive: line 85
If offering density controls:
- Distinctive: line 87
Ensure all density levels maintain accessibility requirements (touch targets, contrast, readability)
≈ “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.
Files
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:
| Property | User Preference | CSS/System Signal |
| Colour scheme | Light/dark/custom | prefers-color-scheme |
| Contrast | Standard/high | prefers-contrast |
| Motion | Full/reduced/none | prefers-reduced-motion |
| Text size | System font size settings | rem/em units, viewport scaling |
| Information density | Compact/comfortable/spacious | User setting or breakpoint |
| Transparency | Standard/reduced | prefers-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: reducedisables 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
remoremunits, never fixedpxfor 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
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
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.

