Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
extending styles in styled-components
/* src/components/UserProfile.js */
.
.
.
/* line 74 - 83 */
const Value = styled.span`
font-size: ${getFontSize('tn')};
color: ${getColor('dark')};
padding: 5px;
`;
const Label = Value.extend`
font-weight: bold;
color: ${getColor('primary')};
`;
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.