mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This PR is to
* Update the Material Design tokens to 5.0.0
* 4 color roles in **Light mode** have different default values
`onPrimaryContainer`: Primary10 -> Primary30
`onSecondaryContainer`: Secondary10 -> Secondary30
`onTertiaryContainer`: Tertiary10 -> Tertiary30
`onErrorContainer`: Error10 -> Error30

* new tokens added in list.json
* `md.comp.menu.list-item.*` tokens are deprecated and should be replaced by tokens in list.json and we've done the migration last year:)!(#122388)
26 lines
1.4 KiB
JSON
26 lines
1.4 KiB
JSON
{
|
|
"version": "5_0_0",
|
|
|
|
"md.comp.search-bar.avatar.shape": "md.sys.shape.corner.full",
|
|
"md.comp.search-bar.avatar.size": 30.0,
|
|
"md.comp.search-bar.container.color": "surfaceContainerHigh",
|
|
"md.comp.search-bar.container.elevation": "md.sys.elevation.level3",
|
|
"md.comp.search-bar.container.height": 56.0,
|
|
"md.comp.search-bar.container.shape": "md.sys.shape.corner.full",
|
|
"md.comp.search-bar.focus.indicator.color": "secondary",
|
|
"md.comp.search-bar.focus.indicator.outline.offset": "md.sys.state.focus-indicator.outer-offset",
|
|
"md.comp.search-bar.focus.indicator.thickness": "md.sys.state.focus-indicator.thickness",
|
|
"md.comp.search-bar.hover.state-layer.color": "onSurface",
|
|
"md.comp.search-bar.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity",
|
|
"md.comp.search-bar.hover.supporting-text.color": "onSurfaceVariant",
|
|
"md.comp.search-bar.input-text.color": "onSurface",
|
|
"md.comp.search-bar.input-text.text-style": "bodyLarge",
|
|
"md.comp.search-bar.leading-icon.color": "onSurface",
|
|
"md.comp.search-bar.pressed.state-layer.color": "onSurface",
|
|
"md.comp.search-bar.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity",
|
|
"md.comp.search-bar.pressed.supporting-text.color": "onSurfaceVariant",
|
|
"md.comp.search-bar.supporting-text.color": "onSurfaceVariant",
|
|
"md.comp.search-bar.supporting-text.text-style": "bodyLarge",
|
|
"md.comp.search-bar.trailing-icon.color": "onSurfaceVariant"
|
|
}
|