Looking to change the primary and secondary colors of my application. The manual says this is all you need but I am still seeing the basic blue/red default colors in my app. I've been going off this reference https://material-ui.com/customization/color/
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import { createMuiTheme } from "@material-ui/core";
import { MuiThemeProvider } from "material-ui/styles";
const theme = createMuiTheme({
palette: {
primary: {
main: "#ff8f00"
},
secondary: {
main: "#ffcc80"
}
}
});
ReactDOM.render(
<MuiThemeProvider theme={theme}>
<App />
</MuiThemeProvider>,
document.getElementById("root")
);
ThemeProvider
now and notMuiThemeProvider
. – GeorgeThemeProveder
, however from different NPM package – Nikolai Kiselev