Created
May 4, 2016 11:57
-
-
Save nathanmarks/e283d9696fa741c1065a7f09ed9d2e13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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