Skip to content

Instantly share code, notes, and snippets.

@nathanmarks
Created May 4, 2016 11:57
Show Gist options
  • Save nathanmarks/e283d9696fa741c1065a7f09ed9d2e13 to your computer and use it in GitHub Desktop.
Save nathanmarks/e283d9696fa741c1065a7f09ed9d2e13 to your computer and use it in GitHub Desktop.
export function createMuiTheme(
palette = createPalette(),
...more
) {
const properties = merge({
palette
}, ...more);
if (!properties.hasOwnProperty('id')) {
properties.id = hashObject(properties);
}
return Object.assign(Object.create(muiTheme), properties);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment