颜色
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
创建更易于访问的个性化配色方案,传达产品的层次结构、状态和品牌。在为穿戴式设备设计时,颜色在提高可辨性、易用性、视觉吸引力和表达力方面发挥着至关重要的作用,尤其是在小屏幕上。
以下原则介绍了如何在各个主题中使用颜色。
从黑色开始构建
手表采用黑色背景,而不是手机设备使用的有色背景。虽然深色主题适用于弱光环境,浅色主题适用于白天,但手表界面需要在白天和夜晚都能顺畅运行。因此,必须为手表专门定制颜色令牌。
新的颜色角色
Material 3 颜色系统保留了三个强调色和两个中性 Surface 颜色的结构,但在强调色角色中引入了容器颜色。这些新角色可在不破坏视觉层次结构的情况下实现更强的表现力,从本质上讲,可提供色相更高的 Surface 颜色变体。容器角色特别适合突出显示状态(例如切换按钮),或者在已使用主强调色时提供补充样式。
语义含义
在手表界面中,颜色需要清晰直观地传达含义。例如,红色表示错误,绿色表示成功,有助于用户快速了解操作或状态,而无需额外说明。这种对颜色的语义使用有助于用户浏览界面并充满信心地执行操作。
颜色无障碍功能(对比度合规性)
在手表界面中,颜色需要清晰直观地传达含义。例如,红色表示错误,绿色表示成功,有助于用户快速了解操作或状态,而无需额外说明。这种对颜色的语义使用有助于用户浏览界面并充满信心地执行操作。
新变化
我们对视觉设计系统进行了重大更新,并更新了样式基础、组件和功能块设计库,以提升表达效果。
Material 3 富有表现力的配色系统具有以下特点:
- 内置的一组易于分辨的颜色关系
- 28 多种颜色角色映射到 Material 组件
- 用于从黑色构建的深色主题内置颜色
- 改进了停用颜色值
- 其他错误颜色
- 静态基准颜色,为每个颜色角色分配了默认颜色
- 动态配色功能,包括系统/表盘和基于图片的配色主题
资源
如需了解详情,请参阅以下资源。
Material Design 颜色准则
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# Color\n\nCreate more accessible, personal color schemes communicating your product's\nhierarchy, state, and brand. When designing for wearables, color plays a crucial\nrole in enhancing legibility, usability, visual appeal, and expression,\nespecially on smaller screens.\n\nThe following principles explain how to use color across themes.\n\nBuild from black\n----------------\n\n\nWatches are designed with a black background, instead of the tinted background\nthat phone devices use. While dark themes are meant for low-light environments\nand light themes for daylight, watch UIs need to function seamlessly both day\nand night. Therefore, color tokens for watches must be specifically tailored. \n\n\u003cbr /\u003e\n\nNew color roles\n---------------\n\n\nThe Material 3 color system retains the structure of three accent colors and two\nneutral surface colors, but introduces container colors within the accent roles.\nThese new roles enable greater expressive potential without disrupting visual\nhierarchy, essentially providing surface color variations with increased chroma.\nContainer roles are particularly useful for highlighting states, such as toggle\nbuttons, or for providing complementary styling when the primary accent is\nalready utilized. \n\n\u003cbr /\u003e\n\nSemantic meaning\n----------------\n\n\nIn watch UIs, colors need to communicate meaning clearly and intuitively. For\nexample, red indicates errors and green signals success, helping users quickly\nunderstand actions or states without needing extra explanation. This semantic\nuse of color helps users navigate your UI and take action with confidence. \n\n\u003cbr /\u003e\n\nColor accessibility (contrast compliance)\n-----------------------------------------\n\n\nIn watch UIs, colors need to communicate meaning clearly and intuitively. For\nexample, red indicates errors and green signals success, helping users quickly\nunderstand actions or states without needing extra explanation. This semantic\nuse of color helps users navigate your UI and take action with confidence. \n\n\u003cbr /\u003e\n\nWhat's new\n----------\n\nThere are substantial updates to the visual design system and how we elevate\nexpression throughout updates to our style foundations, components, and tiles\ndesign libraries.\n\nThe Material 3 Expressive color system includes the following features:\n\n- Built-in set of accessible color relationships\n- 28+ color roles mapped to Material components\n- Built-in dark theme colors for building from black\n- Improved disabled color values\n- Additional error colors\n- Static baseline color with default colors assigned to each color role\n- Dynamic color features, including System/Watch face, and image-based color themes\n\nResources\n---------\n\nTo learn more, view the following resources.\n\n### Material Design color guidelines\n\n\n[Learn about the latest best practices](https://material.io/color) for color schemes using Material 3\nExpressive. \n\n\u003cbr /\u003e"]]