Skip to content

Commit bb35129

Browse files
committed
[Color] Added a section in the doc for proper tonal surface color resolving.
PiperOrigin-RevId: 596123728
1 parent c8b9b1c commit bb35129

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/theming/Color.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ which involved blending the Surface and Primary colors):
110110
- `colorSurfaceDim`
111111
- `colorSurfaceBright`
112112

113+
**Note:** When resolving these tonal surface colors above, please use
114+
`MaterialColors.getColor()` to avoid resolving unexpected colors.
115+
113116
These color roles are used as the default container/background color in the
114117
components below. Please check the
115118
[Surface colors guidelines](https://m3.material.io/styles/color/the-color-system/color-roles#0abbf8b7-61e1-49ee-9f97-4967beb1e4fe)

0 commit comments

Comments
 (0)