Skip to content

[material_ui] Add contrastLevel for M3 ColorScheme - #12743

Draft
QuncCccccc wants to merge 19 commits into
flutter:mainfrom
QuncCccccc:color_scheme_update_main
Draft

[material_ui] Add contrastLevel for M3 ColorScheme#12743
QuncCccccc wants to merge 19 commits into
flutter:mainfrom
QuncCccccc:color_scheme_update_main

Conversation

@QuncCccccc

Copy link
Copy Markdown
Contributor

This PR is to port #11801

Original PR Description

Fixes flutter/flutter#184951

This PR is to add medium- and high-contrast M3 ColorScheme baselines. I also added a double? contrastLevel to ThemeData.

By default, ThemeData() shows standard M3 ColorScheme. To choose medium/high contrast, use

ThemeData(
  // brightness: Brightness.dark shows dark version of the baselines.
  contrastLevel: ContrastLevel.medium, // ContrastLevel.high
)

This change will not cause breaking changes because the standard-contrast m3 color scheme baseline stays the same.

Screenshot 2026-07-31 at 4 35 36 PM

TODO:
Add an example or update an existing example to reflect the new feature.

@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

M3 Expressive: Colors

1 participant