[Chartjs]-ReactJS + Material Design: How to get theme colors outside component?

2👍

Well as I understand you can import constant into your main js file after doing
export in app.js. Example. –

export const theme = createMuiTheme({ palette: { primary: { main: "#54BD40", }, }, });

Then import

Import { theme } from "app"

And use it anywhere in your main js file.

Leave a comment