UNPKG

@rocketsofawesome/mirage

Version:

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

38 lines (31 loc) 764 B
import PropTypes from 'prop-types' import styled from 'styled-components' const H6 = styled.h6` letter-spacing: .075rem; color: ${props => props.theme.colors.textPrimary}; text-align: ${props => props.align}; font-family: ${props => props.theme.fonts.primaryFont}; font-size: ${props => props.fontSize}; font-weight: 500; font-style: italic; line-height: 1; margin: ${props => props.margin}; ` H6.propTypes = { children: PropTypes.node, theme: PropTypes.shape({ fonts: PropTypes.shape({ primaryFont: PropTypes.string }), colors: PropTypes.shape({ textPrimary: PropTypes.string }) }) } H6.defaultProps = { fontSize: '1.4rem', margin: '3.2rem 0', align: 'inherit' } /** @component */ export default H6