user-preference-respect

Detect OS preferences via CSS media queries and apply adaptive UI changes.

3|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/hulusi-tunc/unicorn-skills --skill user-preference-respect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: user-preference-respect
Source: https://github.com/hulusi-tunc/unicorn-skills/tree/main/.claude/skills/adaptive-interfaces--user-preference-respect
Command: npx skills add https://github.com/hulusi-tunc/unicorn-skills --skill user-preference-respect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interfaces that ignore OS/user preferences can create friction, reduce accessibility, and hinder usability.

Core Features & Use Cases

  • Detects system preferences such as prefers-color-scheme, prefers-reduced-motion, and forced-colors.
  • Applies adaptive UI changes (dark/light themes, motion reduction, and higher contrast) without sacrificing content or usability.
  • Use case: a product automatically respects accessibility settings to deliver a comfortable, readable interface across devices.

Quick Start

Detect system preferences on page load and apply the corresponding UI adaptations automatically.

Frequently Asked Questions about user-preference-respect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect prefers-color-scheme and apply dark mode automatically?

Detect prefers-color-scheme using CSS media queries on page load to apply adaptive dark or light themes automatically. This ensures the UI respects OS-level user preferences for comfortable, readable interfaces without manual toggles.

What is prefers-reduced-motion and how do I implement it for accessibility?

prefers-reduced-motion is a CSS media query indicating users prefer minimal animations. Implement it by detecting the preference and reducing or removing motion in UI transitions, ensuring accessibility for users sensitive to movement.

Can I use CSS media queries to support forced-colors and high contrast modes?

Yes, detect forced-colors using CSS media queries to apply high contrast adaptations. The UI adjusts automatically to system high contrast settings, maintaining content readability and accessible focus indicators across devices.

Does respecting user preferences work with both web and native interfaces?

Respecting user preferences works across web and native interfaces. Explicit front-end detection via CSS media queries applies adaptive changes for dark mode, reduced motion, and contrast, ensuring usability on multiple platforms.

Why does my UI need safe fallbacks when detecting system preferences?

Safe fallbacks are needed because system preference detection can fail or be unsupported. Non-intrusive defaults and accessible focus indicators ensure the interface remains usable and readable in every state, regardless of detection success.

What's the best way to handle multiple user preference media queries simultaneously?

The best approach is detecting prefers-color-scheme, prefers-reduced-motion, and forced-colors concurrently on page load. Apply corresponding UI adaptations automatically with non-intrusive defaults, ensuring seamless accessibility across all detected preferences.