UNPKG

@rocketsofawesome/mirage

Version:

[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)

37 lines (30 loc) 677 B
import PropTypes from 'prop-types' import styled from 'styled-components' const P = styled.p` text-align: left; letter-spacing: normal; margin: 0; color: ${props => props.theme.colors.navy}; font-family: ${props => props.theme.fonts.primaryFont}; font-size: ${props => props.fontSize}; line-height: normal; ` P.propTypes = { children: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]), theme: PropTypes.shape({ fonts: PropTypes.shape({ primaryFont: PropTypes.string }), colors: PropTypes.shape({ navy: PropTypes.string }) }) } P.defaultProps = { fontSize: '1.6rem' } /** @component */ export default P