import styled from '@emotion/styled'; import { withTheme } from '@blazingly-design/theming'; export type ParagraphProps = { color?: string; }; export default withTheme( styled.p(props => { let { theme, color } = props; return { fontSize: `${theme.font.size}rem`, fontFamily: theme.font.textFont, fontWeight: theme.font.textWeight, color: color ? theme.color[color] : theme.color.black, margin: 0, padding: 0, boxSizing: 'border-box' }; }) );