question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[theme] Improve augmentColor(color) warning

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

10reactions
DaVitzicommented, Mar 26, 2020

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.

1reaction
oliviertassinaricommented, Oct 26, 2020

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 😃.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found