mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This PR is to introduce 19 new color roles and deprecate 3 color roles in `ColorScheme`. **Tone-based surface colors** (7 colors): * surfaceBright * surfaceDim * surfaceContainer * surfaceContainerLowest * surfaceContainerLow * surfaceContainerHigh * surfaceContainerHighest **Accent color add-ons** (12 colors): * primary/secondary/tertiary-Fixed * primary/secondary/tertiary-FixedDim * onPrimary/onSecondary/onTertiary-Fixed * onPrimary/onSecondary/onTertiary-FixedVariant **Deprecated colors**: * background -> replaced with surface * onBackground -> replaced with onSurface * surfaceVariant -> replaced with surfaceContainerHighest Please checkout this [design doc](https://docs.google.com/document/d/1ODqivpM_6c490T4j5XIiWCDKo5YqHy78YEFqDm4S8h4/edit?usp=sharing) for more information:) 
18 lines
882 B
JSON
18 lines
882 B
JSON
{
|
|
"version": "v0_206",
|
|
|
|
"md.comp.banner.container.color": "surfaceContainerLow",
|
|
"md.comp.banner.container.elevation": "md.sys.elevation.level1",
|
|
"md.comp.banner.container.shape": "md.sys.shape.corner.none",
|
|
"md.comp.banner.desktop.with-single-line.container.height": 52.0,
|
|
"md.comp.banner.desktop.with-three-lines.container.height": 90.0,
|
|
"md.comp.banner.desktop.with-two-lines.with-image.container.height": 72.0,
|
|
"md.comp.banner.mobile.with-single-line.container.height": 54.0,
|
|
"md.comp.banner.mobile.with-two-lines.container.height": 112.0,
|
|
"md.comp.banner.mobile.with-two-lines.with-image.container.height": 120.0,
|
|
"md.comp.banner.supporting-text.color": "onSurfaceVariant",
|
|
"md.comp.banner.supporting-text.text-style": "bodyMedium",
|
|
"md.comp.banner.with-image.image.shape": "md.sys.shape.corner.full",
|
|
"md.comp.banner.with-image.image.size": 40.0
|
|
}
|