Repository navigation
docs: generate 6.x color roles in the 6.x theme generator - #5271
Open
Priyanshu0007 wants to merge 1 commit into
Open
Priyanshu0007 wants to merge 1 commit into
Priyanshu0007 wants to merge 1 commit into
Conversation
The 6.x theming guide's generator used Material's 2021 `Scheme`, so it missed the surface container and fixed roles, output 5.x-only keys (`surfaceDisabled`, `onSurfaceDisabled`, `backdrop`) and mixed `primary` into the elevation colors. Build the 6.x schemes with Material's dynamic scheme instead (`SchemeTonalSpot`, or `SchemeFidelity` with the new "Match input colors" option), output exactly the 6.x color roles, and take the elevation colors from the surface container tones like `LightTheme` and `DarkTheme`. The 5.x page keeps its current output. Closes callstack#5269
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The 6.x theme generator outputs a 5.x scheme: no surface container or fixed roles, and 5.x-only keys.
Related issue
Closes #5269
Important
Dark contrast is unchanged.
backgroundvselevation.level1is 1.08:1, the same as the defaultDarkTheme(1.09:1), since both use the same tones. Improving it means changing theDarkThemetones in a follow-up.Summary
Test plan
On the 6.x theming page, pick
#1E88E5: the JSON hassurfaceContainer*and fixed roles. With the switch on,primaryContaineris#0077ce.Screenshots