user-preference-respect

设计能够检测并响应系统级用户偏好的界面。适用于实现深色模式、减少动画、高对比度、文本缩放或任何影响界面渲染的用户偏好。触发条件包括:用户偏好、系统偏好、prefers-reduced-motion、prefers-contrast、prefers-color-scheme、forced-colors、媒体查询、用户设置、系统设置、无障碍设置、操作系统设置。

仓库最近推送
GitHub Stars
112
Forks
30
Issues / PRs
2

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "user-preference-respect":https://skillpi.com/zh/skills/deepskill-c73bcf2bea5dbc6bcc3262ed5d5eb4445446c822844769a6f37ee7e5026fe41e。安装前核对上游来源和版本:https://github.com/Owl-Listener/inclusive-design-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

设计能够检测并响应系统级用户偏好的界面。适用于实现深色模式、减少动画、高对比度、文本缩放或任何影响界面渲染的用户偏好。触发条件包括:用户偏好、系统偏好、prefers-reduced-motion、prefers-contrast、prefers-color-scheme、forced-colors、媒体查询、用户设置、系统设置、无障碍设置、操作系统设置。

0 下载

介绍来源: third_party · Owl-Listener · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: user-preference-respect
description: "Design interfaces that detect and respond to system-level user preferences. Use when implementing dark mode, reduced motion, high contrast, text scaling, or any user preference that affects how the interface renders. Triggers on: user preference, system preference, prefers-reduced-motion, prefers-contrast, prefers-color-scheme, forced-colors, media query, user settings, system settings, accessibility settings, OS settings."

User Preference Respect

The operating system already knows what the user needs. Your job is to listen and respond. These preferences exist because people set them deliberately — ignoring them overrides the user's own accessibility decision.

The Preferences

prefers-reduced-motion

What it means: user experiences discomfort or harm from motion. What to do:

  • Disable all decorative animation
  • Replace slide/fade transitions with instant state changes
  • Keep essential motion (loading spinners) but simplify
  • Disable parallax, scroll-triggered animation, and auto-advance
  • Never override this preference

How to detect: @media (prefers-reduced-motion: reduce)

prefers-contrast

What it means: user needs stronger visual distinction. What to do:

  • Increase contrast beyond WCAG minimums
  • Replace subtle shadows and gradients with solid borders
  • Make focus indicators bolder and more visible
  • Remove transparency and blur effects
  • Increase border widths on interactive elements

How to detect: @media (prefers-contrast: more)

prefers-color-scheme

What it means: user prefers light or dark interface. What to do:

  • Provide genuine dark mode (not just inverted colours)
  • Ensure all content is legible in both modes
  • Test images, charts, icons, and illustrations in both
  • Don't use pure black (#000) on dark mode — use dark grey (#1a1a1a) for less eye strain
  • Remember: dark mode is not just aesthetic — it reduces eye fatigue and helps some people with light sensitivity

How to detect: @media (prefers-color-scheme: dark)

forced-colors

What it means: user has enabled Windows High Contrast or similar. What to do:

  • Don't fight the system colour override
  • Ensure borders and outlines define interactive elements (the system will strip your colours)
  • Use transparent borders that become visible in forced-colors mode
  • Test that all interactive elements remain distinguishable
  • Don't rely on background colour alone to indicate state

How to detect: @media (forced-colors: active)

prefers-reduced-transparency

What it means: user finds transparent elements hard to read. What to do:

  • Replace semi-transparent backgrounds with solid ones
  • Remove frosted glass / backdrop blur effects
  • Ensure overlays are fully opaque

How to detect: @media (prefers-reduced-transparency: reduce)

Implementation Principles

Progressive Enhancement

  • Build the accessible version first
  • Add motion, transparency, and visual flourishes as enhancements
  • When a preference is detected, you're removing the enhancement, not degrading the experience

Don't Ask — Detect

  • Don't make users configure accessibility settings in your app when the OS already has the setting
  • Detect and respond automatically
  • If you offer additional settings, they should layer on top of system preferences, not replace them

Test Every Preference

  • Test with each preference enabled individually
  • Test with combinations (reduced motion + high contrast + dark mode)
  • Verify that the interface is complete and usable in every state
  • Automated tests can check that media queries exist — manual testing verifies they work

Assessment Checklist

  • [ ] prefers-reduced-motion is detected and all decorative motion stops
  • [ ] prefers-contrast is detected and visual contrast increases
  • [ ] prefers-color-scheme is detected and theme switches
  • [ ] forced-colors mode doesn't break interactive elements
  • [ ] Combinations of preferences work together
  • [ ] No preference is overridden or ignored

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • Skill 提供了关于系统级用户偏好的全面指导,涵盖深色模式、减少动画、高对比度等多个方面
  • 内容具有明确的实用价值,适用于前端开发和无障碍设计,受众广泛
触发精准95/100

亮点

  • 触发词精准完整,覆盖了 prefers-reduced-motion、prefers-contrast、prefers-color-scheme 等多种变体
  • 边界清晰,不易与其他 Skill 重叠
结构规范90/100

亮点

  • Phase/步骤清晰,分章节介绍不同偏好及其实现方式
  • frontmatter 完整,文档结构良好,易于理解
执行可靠90/100

亮点

  • 提供了具体的 CSS 媒体查询检测方法,逻辑完整
  • 覆盖了主要异常情况,无不可逆操作,可靠性高
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。