diff --git a/src/components/Text.js b/src/components/Text.js index fe9f8bb..4f7ab46 100644 --- a/src/components/Text.js +++ b/src/components/Text.js @@ -5,8 +5,9 @@ import colorGetter from './colorGetter'; const textCss = css` font-size: ${props => props.size || '1rem'}; - ${props => props.lineh && `line-height: ${props.lineh};`}; + ${props => props.lineh && `line-height: ${props.lineh};`} ${props => props.color && `color: ${colorGetter(props, props.color)};`} + ${props => props.align && `text-align: ${props.align || 'initial'};`} `; const Span = styled.span` ${textCss}