const CustomComponent = styled.div`
background: ${props => props.theme.palette.primary.main};
color: ${props => props.theme.palette.common.white};
padding: ${props => props.theme.spacing(2)};
`;
const Custom = ({children}) => (
<CustomComponent>
{children}
</CustomComponent>
);/theme folder you can find all the theme variables. They are categorized by palettes, shadows, typography, overrides and theme variants. You are able to control each on them inndividually. Typography example:const typography = {
h1: {
fontSize: "2rem",
fontWeight: 600,
lineHeight: 1.2
},
h2: {
fontSize: "1.75rem",
fontWeight: 600,
lineHeight: 1.2
},
h3: {
fontSize: "1.5rem",
fontWeight: 600,
lineHeight: 1.2
},
//etc
};