material-3-expressive
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMaterial 3 Expressive (Android UI/UX)
Material 3 Expressive(Android UI/UX)
Overview
概述
Design and review Android UI/UX using Material 3 Expressive. Prioritize component-token requests for dialogs, sheets, modals, toolbars, and buttons, with guidance plus token references by default.
使用Material 3 Expressive进行Android UI/UX的设计与评审。默认优先处理对话框、底部弹窗、模态框、工具栏和按钮的组件token请求,并提供规范及token参考。
Intake Questions
需求收集问题
- Target device class (phone, tablet, foldable, Wear OS)
- Window size class (Compact, Medium, Expanded)
- Brand constraints and dynamic color usage
- Primary action(s) and desired hero moments (1-2 max)
- Motion constraints and reduced-motion expectations
- Accessibility targets (contrast, touch target)
- 目标设备类型(手机、平板、折叠屏、Wear OS设备)
- 窗口尺寸类别(紧凑、中等、扩展)
- 品牌约束与动态色彩使用情况
- 主要操作与期望的核心视觉焦点(最多1-2个)
- 动效约束与简化动效的需求
- 无障碍目标(对比度、触摸目标)
Default Assumptions
默认假设
- Intensity level: Foundational
- Window size class: Compact
- Dynamic color: enabled
- Standard navigation patterns preserved
- 表现力强度:基础级
- 窗口尺寸类别:紧凑
- 动态色彩:已启用
- 保留标准导航模式
Quick Workflow
快速工作流程
- Confirm intensity level + hero moments
- Confirm device class + window size class
- Load Tier 1 index and output template
- Load component overview + token spec files
- If theming needed, load Tier 3 foundation tokens
- Output: guidance + token refs (see template)
- 确认表现力强度与核心视觉焦点
- 确认设备类型与窗口尺寸类别
- 加载一级索引并输出模板
- 加载组件概述与token规范文件
- 若需主题定制,加载三级基础token
- 输出:规范说明 + token参考(见模板)
Default Output Format (Guidance + Token Refs)
默认输出格式(规范说明 + token参考)
Use verbatim as the base output shell.
references/m3-component-token-output-template.md- Context and intent (1-2 lines)
- Intensity level + hero moments (count + location)
- Window size class + device class
- Component + variant
- Token references: file paths + token groups to use (quote minimal key values only if needed)
- Compose mapping reference (optional):
references/compose-mapping.md - Behavior or interaction constraints (from overview)
- Reduced-motion fallback note
- Accessibility and performance checks
- Optional: Compose mapping notes
直接使用作为输出的基础框架。
references/m3-component-token-output-template.md- 背景与意图(1-2行)
- 表现力强度 + 核心视觉焦点(数量 + 位置)
- 窗口尺寸类别 + 设备类型
- 组件 + 变体
- Token参考:文件路径 + 需使用的token组(仅必要时引用最小键值)
- Compose映射参考(可选):
references/compose-mapping.md - 行为或交互约束(来自组件概述)
- 简化动效回退说明
- 无障碍与性能检查
- 可选:Compose映射说明
Expressive Tactics
表现力策略
| Lever | Application |
|---|---|
| Shape contrast | Bold corners on primary, subtle on secondary |
| Rich color | Primary/secondary containers for emphasis |
| Type hierarchy | Size + weight variation |
| Motion | Shape morph on press/select |
Constraint: Max 1-2 hero moments per flow
| 手段 | 应用方式 |
|---|---|
| 形状对比 | 主元素使用圆角,次要元素使用细微圆角 |
| 丰富色彩 | 使用主/次要容器色强调重点 |
| 排版层级 | 尺寸 + 字重变化 |
| 动效 | 按压/选择时的形状变形 |
约束: 每个流程最多1-2个核心视觉焦点
Expressive Intensity Levels
表现力强度等级
- Foundational: Clarity and familiarity first
- Excellent: Stronger color, type, and shape while preserving patterns
- Transformative: Bold layouts and motion with strict usability and accessibility
- 基础级: 优先保证清晰性与熟悉度
- 优秀级: 强化色彩、排版与形状,同时保留现有模式
- 变革级: 大胆的布局与动效,同时严格遵循可用性与无障碍要求
Common Mistakes
常见错误
| Mistake | Fix |
|---|---|
| Removing text labels for "cleaner" look | Keep labels; usability drops without them |
| Too many hero moments per screen | Limit to 1-2 per flow |
| Breaking navigation patterns | Preserve standard nav behaviors |
| No reduced-motion fallback | Honor system animation scale; provide reduced-motion or instant transitions when animation scale is 0 |
| Hardcoding token values | Use semantic tokens ( |
| Ignoring window size classes | Test Compact, Medium, Expanded |
| 错误 | 修复方案 |
|---|---|
| 为了“更简洁”而移除文本标签 | 保留标签;无标签会导致可用性下降 |
| 单屏核心视觉焦点过多 | 每个流程限制为1-2个 |
| 打破导航模式 | 保留标准导航行为 |
| 未提供简化动效回退方案 | 遵循系统动画缩放比例;当动画缩放为0时,提供简化动效或即时过渡 |
| 硬编码token值 | 使用语义化token( |
| 忽略窗口尺寸类别 | 测试紧凑、中等、扩展三种尺寸 |
Android-Specific Guidance
Android专属规范
- Preserve navigation and component behaviors
- Keep touch targets generous and platform-consistent
- Honor system animation scale; provide reduced-motion alternatives or instant transitions when animation scale is 0
- Apply window size classes for tablets and foldables
- 保留导航与组件行为
- 保持触摸目标的尺寸足够大且符合平台一致性
- 遵循系统动画缩放比例;当动画缩放为0时,提供简化动效替代方案或即时过渡
- 针对平板与折叠屏应用窗口尺寸类别
Review Checklist
评审检查清单
Hierarchy
层级
- Primary action identifiable within 2 seconds
- Max 1-2 hero moments per screen
- Labels preserved on all interactive elements
- 主操作可在2秒内识别
- 单屏最多1-2个核心视觉焦点
- 所有交互元素保留标签
Accessibility
无障碍
- Color contrast: 4.5:1 text, 3:1 non-text
- Touch targets: 48dp minimum
- Motion: reduced-motion alternative provided
- Screen reader: content descriptions present
- 色彩对比度:文本4.5:1,非文本3:1
- 触摸目标:最小48dp
- 动效:提供简化动效替代方案
- 屏幕阅读器:提供内容描述
Expressive Compliance
表现力合规性
- Intensity level consistent across feature
- Standard patterns preserved
- Dynamic color tokens used
- Window size classes tested
- 整个功能的表现力强度保持一致
- 保留标准模式
- 使用动态色彩token
- 已测试窗口尺寸类别
Reference Tiers (Load in Order of Need)
参考层级(按需求顺序加载)
Tier 1: Always Load First
一级:优先加载
| Need | File |
|---|---|
| Component token lookup | |
| Output format template | |
| New/updated components | |
| 需求 | 文件 |
|---|---|
| 组件token查询 | |
| 输出格式模板 | |
| 新增/更新组件 | |
Tier 2: Component-Specific (Load When Requested)
二级:组件专属(按需加载)
| Component | Overview | Tokens |
|---|---|---|
| Buttons | | |
| Button Groups | | |
| Dialogs | | |
| Sheets | | |
| Toolbars | | |
| FABs | | |
| Extended FAB | | |
| FAB Menu | | |
| Icon Buttons | | |
| Split Button | | |
| Navigation Bar | | |
| Navigation Rail | | |
| App Bars | | |
| Carousel | | |
| Progress Indicators | | |
| Loading Indicator | | |
| 组件 | 概述 | Tokens |
|---|---|---|
| 按钮 | | |
| 按钮组 | | |
| 对话框 | | |
| 底部/侧边弹窗 | | |
| 工具栏 | | |
| 悬浮按钮(FAB) | | |
| 扩展悬浮按钮 | | |
| 悬浮按钮菜单 | | |
| 图标按钮 | | |
| 拆分按钮 | | |
| 导航栏 | | |
| 导航侧栏 | | |
| 应用栏 | | |
| 轮播组件 | | |
| 进度指示器 | | |
| 加载指示器 | | |
Tier 3: Foundation Tokens (Load for Theming)
三级:基础Token(主题定制时加载)
| Foundation | File |
|---|---|
| Color system | |
| Typography | |
| Shape | |
| Motion | |
| Elevation | |
| State | |
| 基础模块 | 文件 |
|---|---|
| 色彩系统 | |
| 排版 | |
| 形状 | |
| 动效 | |
| 层级 elevation | |
| 状态 | |
Tier 4: Evidence & Research (Load for Justification)
四级:依据与研究(用于论证时加载)
| Resource | File |
|---|---|
| Research findings | |
| Testing guidance | |
| Expressive blog | |
| Expressive guidelines | |
| UX article | |
| 资源 | 文件 |
|---|---|
| 研究成果 | |
| 测试规范 | |
| 表现力博客 | |
| 表现力指南 | |
| UX文章 | |
Tier 5: Wear OS (Load Only for Wearables)
五级:Wear OS(仅穿戴设备使用)
| Resource | File |
|---|---|
| Benefits | |
| Levels of expression | |
| Design language | |
| Blog | |
| Compose Material3 | |
| 资源 | 文件 |
|---|---|
| 优势 | |
| 表现力等级 | |
| 设计语言 | |
| 博客 | |
| Compose Material3 | |
Supporting Resources
支持资源
| Resource | File |
|---|---|
| Android UI design hub | |
| Expressive catalog | |
| Compose mapping | |
| 资源 | 文件 |
|---|---|
| Android UI设计中心 | |
| 表现力组件库 | |
| Compose映射 | |
Maintenance
维护
- Refresh references with .
skills/material-3-expressive/scripts/update_m3_expressive_refs.py - Requires Playwright and Chromium (if needed).
.venv/bin/python -m playwright install chromium - CI runs weekly; local runs are for urgent changes.
- 使用更新参考内容。
skills/material-3-expressive/scripts/update_m3_expressive_refs.py - 需要Playwright和Chromium(若需安装,执行)。
.venv/bin/python -m playwright install chromium - CI每周运行一次;本地运行仅用于紧急变更。
Search Tips
搜索技巧
- Find a token prefix:
rg "md.comp.button" skills/material-3-expressive/references/m3-buttons-specs-tokens.md - Find navigation tokens:
rg "md.comp.navigation" skills/material-3-expressive/references/m3-.*navigation.*.md
- 查找token前缀:
rg "md.comp.button" skills/material-3-expressive/references/m3-buttons-specs-tokens.md - 查找导航token:
rg "md.comp.navigation" skills/material-3-expressive/references/m3-.*navigation.*.md
Examples
示例
- Use as a Compose starting point
assets/examples/ui/ExpressiveHomeScreen.kt - Use to see standard vs expressive button differences
assets/examples/ui/ExpressiveButtonComparison.kt - Use to learn common mistakes to avoid
assets/examples/ui/ExpressiveAntiPatterns.kt - Use to draft an expressive UX brief
assets/examples/ux/expressive-ux-brief-template.md - Examples are illustrative; adapt sizes/colors to expressive tokens and project constraints.
- 使用作为Compose起始模板
assets/examples/ui/ExpressiveHomeScreen.kt - 使用查看标准按钮与表现力按钮的差异
assets/examples/ui/ExpressiveButtonComparison.kt - 使用学习需避免的常见错误
assets/examples/ui/ExpressiveAntiPatterns.kt - 使用起草表现力UX brief
assets/examples/ux/expressive-ux-brief-template.md - 示例仅作参考;需根据表现力token和项目约束调整尺寸/色彩。