/** * Helper function for adding styles to Heading components * * @param {string} size, size of text */ const getHeadingStyles = size => css` margin: 0; font-size: ${size}; font-weight: ${p => p.theme.font.weight.normal}; color: ${p => p.color ? p.theme.colors[p.color] : p.theme.colors.text.primary}; `
/** * Helper function for adding styles to Heading components * * @param {string} size, size of text */ const getHeadingStyles = size => css` margin: 0; font-size: ${size}; font-weight: ${p => p.theme.font.weight.normal}; color: ${p => p.color ? p.theme.colors[p.color] : p.theme.colors.text.primary}; `