mirror of
https://github.com/flutter/flutter.git
synced 2026-02-05 03:09:43 +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)
39 lines
2.4 KiB
JSON
39 lines
2.4 KiB
JSON
{
|
|
"version": "5_0_0",
|
|
|
|
"md.comp.filled-button.container.color": "primary",
|
|
"md.comp.filled-button.container.elevation": "md.sys.elevation.level0",
|
|
"md.comp.filled-button.container.height": 40.0,
|
|
"md.comp.filled-button.container.shadow-color": "shadow",
|
|
"md.comp.filled-button.container.shape": "md.sys.shape.corner.full",
|
|
"md.comp.filled-button.disabled.container.color": "onSurface",
|
|
"md.comp.filled-button.disabled.container.elevation": "md.sys.elevation.level0",
|
|
"md.comp.filled-button.disabled.container.opacity": 0.12,
|
|
"md.comp.filled-button.disabled.label-text.color": "onSurface",
|
|
"md.comp.filled-button.disabled.label-text.opacity": 0.38,
|
|
"md.comp.filled-button.focus.container.elevation": "md.sys.elevation.level0",
|
|
"md.comp.filled-button.focus.indicator.color": "secondary",
|
|
"md.comp.filled-button.focus.indicator.outline.offset": "md.sys.state.focus-indicator.outer-offset",
|
|
"md.comp.filled-button.focus.indicator.thickness": "md.sys.state.focus-indicator.thickness",
|
|
"md.comp.filled-button.focus.label-text.color": "onPrimary",
|
|
"md.comp.filled-button.focus.state-layer.color": "onPrimary",
|
|
"md.comp.filled-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity",
|
|
"md.comp.filled-button.hover.container.elevation": "md.sys.elevation.level1",
|
|
"md.comp.filled-button.hover.label-text.color": "onPrimary",
|
|
"md.comp.filled-button.hover.state-layer.color": "onPrimary",
|
|
"md.comp.filled-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity",
|
|
"md.comp.filled-button.label-text.color": "onPrimary",
|
|
"md.comp.filled-button.label-text.text-style": "labelLarge",
|
|
"md.comp.filled-button.pressed.container.elevation": "md.sys.elevation.level0",
|
|
"md.comp.filled-button.pressed.label-text.color": "onPrimary",
|
|
"md.comp.filled-button.pressed.state-layer.color": "onPrimary",
|
|
"md.comp.filled-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity",
|
|
"md.comp.filled-button.with-icon.disabled.icon.color": "onSurface",
|
|
"md.comp.filled-button.with-icon.disabled.icon.opacity": 0.38,
|
|
"md.comp.filled-button.with-icon.focus.icon.color": "onPrimary",
|
|
"md.comp.filled-button.with-icon.hover.icon.color": "onPrimary",
|
|
"md.comp.filled-button.with-icon.icon.color": "onPrimary",
|
|
"md.comp.filled-button.with-icon.icon.size": 18.0,
|
|
"md.comp.filled-button.with-icon.pressed.icon.color": "onPrimary"
|
|
}
|