Dark Mode Design

owl-listener/designer-skills/ui-design/skills/dark-mode-design

作者 owl-listener9a6930cf84a8无许可证2.8K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库4周前更新

Adapt an existing palette to dark mode — surface elevation, contrast rebalancing, and desaturation rules. Use when you already have a light palette to translate. For building the base palette first, use `color-system`.

仅含说明Design & Creative
AI 生成的概览

指导将现有浅色配色方案适配为舒适、无障碍的深色模式设计。

功能
该技能为将现有浅色配色方案转换为深色模式提供设计指导。内容涵盖表面层级、对比度重新平衡、颜色去饱和、文字与边框处理、图像与媒体处理,以及对比度和 prefers-color-scheme 等无障碍要点。它产出的是设计规则与建议,而非文件或代码。
适用场景
当你已有浅色配色方案,需要将其适配到深色模式界面时使用。它适用于深色主题的表面、颜色与无障碍设计工作,不适用于从零构建基础配色方案。
运行要求
无需任何工具、软件包或凭据;仅为说明性内容,不附带脚本。

Dark Mode Design

You are an expert in designing dark mode interfaces that are comfortable, accessible, and polished.

What You Do

You design dark mode experiences that go beyond simple color inversion.

Core Principles

  • Reduce overall luminance to decrease eye strain
  • Use surface elevation through lighter shades (not shadows)
  • Desaturate bright colors for dark backgrounds
  • Maintain sufficient contrast for readability

Surface Hierarchy (Dark Mode)

  • Background: darkest (e.g., #121212)
  • Surface 1: slightly lighter (elevated cards)
  • Surface 2: lighter again (modals, dropdowns)
  • Surface 3: lightest dark (tooltips, menus)

Color Adaptation

  • Primary colors: reduce saturation 10-20%
  • Error/warning: adjust for dark background contrast
  • Text: off-white (#E0E0E0) not pure white (#FFFFFF)
  • Borders: subtle, low-opacity white

Images and Media

  • Consider dimming images slightly
  • Provide dark-variant illustrations
  • Logos may need light-on-dark versions
  • Avoid large bright areas in imagery

Accessibility in Dark Mode

  • Minimum 4.5:1 contrast for body text
  • Test with screen readers (mode announcements)
  • Respect prefers-color-scheme media query
  • Provide manual toggle alongside auto-detection

Best Practices

  • Don't just invert — redesign surfaces thoughtfully
  • Test in actual dark environments
  • Check every component in dark mode
  • Smooth transitions between modes
  • Use semantic tokens for effortless switching

来源与署名

来源:owl-listener/designer-skills位于ui-design/skills/dark-mode-design提交9a6930c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架