Skip to content

Instantly share code, notes, and snippets.

@pubudu538
Created June 15, 2021 12:35
Show Gist options
  • Save pubudu538/b71f8b0422f1384a1031ae289090e5d2 to your computer and use it in GitHub Desktop.
Save pubudu538/b71f8b0422f1384a1031ae289090e5d2 to your computer and use it in GitHub Desktop.
/**
* IMPORTANT: This file only contains theme JSS of the Publisher app, Don't add other configuration parameters here.
* This theme file is an extension of material-ui default theme https://material-ui.com/customization/default-theme/
* Application related configurations are located in `<PUBLISHER_ROOT>site/public/theme/settings.js`
*/
const userThemes = {
light(theme) {
return (
{
overrides: {
MuiRadio: {
colorSecondary: {
'&$checked': { color: theme.palette.primary.main },
'&$disabled': {
color: theme.palette.action.disabled,
},
},
},
},
custom: {
leftMenuAnalytics: {
enable: false, // If `false`, External link to choreo cloud analytics icon will be removed/hidden in nav bar
link: 'http://analytics.choreo.dev/setup',
},
},
}
);
},
};
if (typeof module !== 'undefined') {
module.exports = userThemes; // Added for tests
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment