fluent-design
Microsoft Fluent Design System 实战参考。涵盖 Windows 11 设计语言、Mica/Acrylic 材质、WinUI 3 控件规格、排版层级、布局模式、Dark Mode、辅助功能和 Electron 适配。适用于开发 Windows 桌面应用或需要 Windows 原生感的跨平台应用。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bingfoon/fluent-designMicrosoft 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 | 低性能开销,与桌面融合 |
| 弹出菜单/Flyout | Acrylic | 暗示临时性和层次 |
| 侧边栏 | Mica Alt | 区分于主内容区 |
| 对话框遮罩 | Smoke | 聚焦于对话框内容 |
| 性能敏感场景 | 实色 fallback | Acrylic 可选降级 |
3. 颜色系统
Windows System Colors
| 颜色 | Light HEX | Dark HEX | 用途 |
|---|---|---|---|
| Accent(默认蓝) | #0078D4 | #4CC2FF | 主强调色、链接、选中态 |
| Accent Light 1 | #429CE3 | #62CDFF | Hover 态 |
| Accent Light 2 | #65B4EE | #99EBFF | 次要强调 |
| Accent Dark 1 | #005A9E | #0093F9 | Pressed 态 |
Windows 用户可自定义 Accent Color,应用需要适配任意颜色。
语义色
| 角色 | Light | Dark |
|---|---|---|
| Text Primary | #1A1A1A / rgba(0,0,0,0.9) | #FFFFFF |
| Text Secondary | rgba(0,0,0,0.6) | rgba(255,255,255,0.79) |
| Text Tertiary | rgba(0,0,0,0.45) | rgba(255,255,255,0.54) |
| Text Disabled | rgba(0,0,0,0.36) | rgba(255,255,255,0.36) |
| Subtle Fill | rgba(0,0,0,0.04) | rgba(255,255,255,0.06) |
| Secondary Fill | rgba(0,0,0,0.06) | rgba(255,255,255,0.08) |
| Card Background | rgba(255,255,255,0.7) | rgba(255,255,255,0.05) |
| Stroke Default | rgba(0,0,0,0.06) | rgba(255,255,255,0.07) |
| Stroke Divider | rgba(0,0,0,0.08) | rgba(255,255,255,0.08) |
| Layer Default | rgba(255,255,255,0.5) | rgba(58,58,58,0.3) |
状态色
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bingfoon-fluent-design": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
apple-hig
Apple Human Interface Guidelines 实战参考。涵盖 macOS/iOS 设计规范、System Colors、排版层级、控件规格、布局间距、Dark Mode 适配、辅助功能和平台差异。适用于开发 macOS 桌面应用(Electron/SwiftUI/AppKit)和 iOS 应用时的 UI 设计决策。
material-design
Google Material Design 3 实战参考。涵盖 Material You 动态色彩、排版系统、组件规格、Shape 系统、Motion 规范、Dark Theme 适配和 Jetpack Compose/Flutter 对照。适用于 Android 应用、Web 应用和跨平台应用的 UI 设计决策。
batch-processing-patterns
批量处理与长时任务编排模式。涵盖队列管理、并发调度、中断恢复、熔断器、远程任务轮询、进度报告和反风控策略。适用于批量文件处理、AI API 调用、爬虫和后台任务场景。
zustand-patterns
Zustand 状态管理实战模式。涵盖 Store 设计规范、Slice 工厂复用、persist 持久化、可恢复任务持久化、Electron IPC 联动、Store 测试和常见陷阱。适用于 React + Zustand 项目。