[theme] Improve augmentColor(color) warning
See original GitHub issueWe have a problem with our project where when we run npm i
after a git clone the theme is not recognized. Default colours are used. Lately we have this problem too.
Error: Material-UI: the color provided to augmentColor(color) is invalid.
The color object needs to have a main
property or a 500
property.
I reckon that augmentColor method is MUI library method.
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (10 by maintainers)
Top Results From Across the Web
[theme] Improve augmentColor(color) warning #20288 - GitHub
We have a problem with our project where when we run npm i after a git clone the theme is not recognized. Default...
Read more >Material-UI v1: Using the custom colors for theme configuration
I am using material-ui v1 and I am trying to change the primary color of the theme. This is how my theme object...
Read more >Palette - Material UI - MUI
The palette enables you to modify the color of the components to suit your brand. Palette colors. The theme exposes the following palette...
Read more >Top 5 @material-ui/utils Code Examples - Snyk
... The colors used to represent potentially dangerous actions or important messages. warning: augmentColor(warning), // The colors used to present ...
Read more >Material-UI Customization Part 1, Theme Colors/Palette
In this video, we walk through how to customize the Material-UI theme colors. Material-UI refers to the theme colors as the Palette in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If this is not a bug then what? I cannot find something by looking up into stackoverflow or anywhere else. Can you please provide at least some information? That would be much appreciated as we are blocked right now.
No idea. If you are interested in improving the error message with the above diff, we would be happy to review a pull request. Happy to discuss/challenge the changes 😃.