-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(material/schematics): Update custom theme schematic to work with light-dark and use theme-overrides mixin #29911
Conversation
override the system level variables with high contrast equivalent values from your theme. This is | ||
helpful for users who prefer more contrastful colors for either preference or accessibility reasons. | ||
|
||
### Creating one theme for light and dark mode | ||
As of v19, the `theme` mixin can create one theme that detects and adapts to a user if they have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can work on this wording as we get closer to release. We'll sync up the messaging between the guide and this
scss += ' ))\n'; | ||
scss += '};\n'; | ||
|
||
// Create high-contrast-light-theme-overrides and high-contrast-dark-theme-overrides mixins | ||
for (const themeType of ['light', 'dark']) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this outputs three mixins - should we have some param that lets the user decide whether they want to use the light-dark
method, or specify light
and dark
?
f7e3c62
to
11cc5dd
Compare
… light-dark and use theme-overrides mixin
11cc5dd
to
14726d6
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Schematic changes needed to work with #29907