Skip to content

Instantly share code, notes, and snippets.

@mfix22
Created May 6, 2019 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfix22/c1b1df85c67e219d9ce380f4b1bd431c to your computer and use it in GitHub Desktop.
Save mfix22/c1b1df85c67e219d9ce380f4b1bd431c to your computer and use it in GitHub Desktop.
Basic theme-able component using `styled-components`
import styled from 'styled-components'
/*
* Basic themeable component:
*
* → Customers are able to adjust link color
* for this section
*/
export const Container = styled.div`
p {
margin: 0;
}
a {
color: ${props => props.theme.colors.primary};
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment