I'm trying understand what exactly themes are and what they're trying to represent. I've read the docs but it still doesn't make sense to me.
For example, below is a piece of code of what I'm referring to.
I just want to know what theme is supposed to represent, where it's coming from and why it's used.
const styles = theme => ({
root: {
display: 'flex',
},
toolbar: {
paddingRight: 24, // keep right padding when drawer closed
},
toolbarIcon: {
display: 'flex',
alignItems: 'center',
justifyContent: 'flex-end',
padding: '0 8px',
...theme.mixins.toolbar,
},
});