360 Secure SkillHub
360 安全技能中心

dark-mode-design

该 Skill 提供深色模式界面设计指导:通过降低整体亮度、用更亮的表面层级表达高度、对鲜艳色去饱和并保持可读对比度,将已有浅色配色转化为深色方案;仅输出设计规则,不创建基础色板,也不包含代码或检测工具。

Owl-Listener
热度 31.20
最近更新 2026-10-19 04:18:15
分类:创作依赖:纯提示词应用场景:UI 原型

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add owl-listener/designer-skills/dark-mode-design
Metadata
name
dark-mode-design
description
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`.

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