joyent-portal/packages/ui-toolkit/src/text/p.js

22 lines
438 B
JavaScript
Raw Normal View History

import styled from 'styled-components';
import remcalc from 'remcalc';
import is from 'styled-is';
export default styled.p`
color: ${props => props.theme.text};
line-height: ${remcalc(24)};
font-size: ${remcalc(15)};
2017-09-26 19:07:45 +03:00
margin: 0;
${is('white')`
-webkit-text-fill-color: currentcolor;
color: ${props => props.theme.white}
`};
${is('monospace')`
font-family: ${props => props.theme.monoFont.families};
`};
`;