import { Property } from 'csstype' import { shade } from 'polished' import styled from 'styled-components' export interface StyleProps { width?: Property.Width height?: Property.Height fontSize?: Property.FontSize textAlign?: Property.TextAlign } export const Input = styled.input` background-color: ${props => shade(0.1, props.theme.colors.background)}; color: ${props => props.theme.colors.text}; width: ${props => props.width || '100%'}; height: ${props => props.height || '100%'}; font-size: ${props => props.fontSize || '12pt'}; text-align: ${props => props.textAlign}; padding: 5px; border: 0; border-radius: 0.25rem; `