ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

fluent-design

Microsoft Fluent Design System 实战参考。涵盖 Windows 11 设计语言、Mica/Acrylic 材质、WinUI 3 控件规格、排版层级、布局模式、Dark Mode、辅助功能和 Electron 适配。适用于开发 Windows 桌面应用或需要 Windows 原生感的跨平台应用。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bingfoon/fluent-design
Or

Microsoft Fluent Design System 实战参考

Windows 11 设计语言的实战速查,覆盖材质、控件、布局和跨平台适配。

适用场景

  • Windows 桌面应用 UI 设计(WinUI / Electron / WPF)
  • 需要 Windows 原生感的跨平台应用
  • Electron 应用在 Windows 上的视觉适配
  • 审计现有 UI 是否符合 Fluent Design

不适用

  • macOS / iOS 原生应用(参考 apple-hig)
  • Android 应用(参考 material-design)

1. 核心设计原则

Fluent Design 2 的五大支柱:

原则含义实践
Light(光照)用光线引导注意力Reveal Highlight、悬浮发光效果
Depth(深度)通过层次感建立空间阴影、z-axis 堆叠
Motion(动效)有意义的动画Connected Animation、页面转场
Material(材质)半透明材质融入环境Mica、Acrylic
Scale(缩放)适应各种设备响应式布局、触控适配

与 Apple HIG 的核心区别

Apple: 内容优先,UI 退后,极简克制
Fluent: 环境融合,材质透明,层次丰富
Apple: 实色背景为主
Fluent: Mica/Acrylic 半透明为主
Apple: 标题栏极简(红黄绿三点)
Fluent: 标题栏可承载导航(NavigationView)

2. 材质系统

Mica(云母)

特点:从桌面壁纸取色,轻微染色效果
用于:窗口背景、标题栏背景
性能:低开销(静态取色,不实时模糊)
/* Mica 模拟(Electron/Web) */
.mica-bg {
  background-color: rgba(243, 243, 243, 0.9); /* Light */
  /* Dark: rgba(32, 32, 32, 0.9) */
}

Acrylic(亚克力)

特点:高斯模糊 + 噪点 + 排除混合
用于:弹出菜单、Flyout、Command Bar、侧边栏
性能:中等开销(实时 blur)
分类:
  - Background Acrylic:模糊桌面内容(窗口级)
  - In-App Acrylic:模糊应用内内容(组件级)
/* Acrylic 模拟 */
.acrylic {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(60px) saturate(125%);
  -webkit-backdrop-filter: blur(60px) saturate(125%);
  /* 可加噪点纹理 */
}

.acrylic-dark {
  background: rgba(32, 32, 32, 0.65);
  backdrop-filter: blur(60px) saturate(125%);
}

Smoke(烟雾)

用于:弹窗遮罩层
效果:暗色半透明覆盖
.smoke {
  background: rgba(0, 0, 0, 0.3); /* Light */
  /* Dark: rgba(0, 0, 0, 0.5) */
}

材质选择规则

场景材质原因
窗口主背景Mica低性能开销,与桌面融合
弹出菜单/FlyoutAcrylic暗示临时性和层次
侧边栏Mica Alt区分于主内容区
对话框遮罩Smoke聚焦于对话框内容
性能敏感场景实色 fallbackAcrylic 可选降级

3. 颜色系统

Windows System Colors

颜色Light HEXDark HEX用途
Accent(默认蓝)#0078D4#4CC2FF主强调色、链接、选中态
Accent Light 1#429CE3#62CDFFHover 态
Accent Light 2#65B4EE#99EBFF次要强调
Accent Dark 1#005A9E#0093F9Pressed 态

Windows 用户可自定义 Accent Color,应用需要适配任意颜色。

语义色

角色LightDark
Text Primary#1A1A1A / rgba(0,0,0,0.9)#FFFFFF
Text Secondaryrgba(0,0,0,0.6)rgba(255,255,255,0.79)
Text Tertiaryrgba(0,0,0,0.45)rgba(255,255,255,0.54)
Text Disabledrgba(0,0,0,0.36)rgba(255,255,255,0.36)
Subtle Fillrgba(0,0,0,0.04)rgba(255,255,255,0.06)
Secondary Fillrgba(0,0,0,0.06)rgba(255,255,255,0.08)
Card Backgroundrgba(255,255,255,0.7)rgba(255,255,255,0.05)
Stroke Defaultrgba(0,0,0,0.06)rgba(255,255,255,0.07)
Stroke Dividerrgba(0,0,0,0.08)rgba(255,255,255,0.08)
Layer Defaultrgba(255,255,255,0.5)rgba(58,58,58,0.3)

状态色

Metadata

Author@bingfoon
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bingfoon-fluent-design": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.