import styled from 'styled-components'; import * as tokens from '@tokens'; import { mq } from '@tokensDir/media-query'; import { StyledNumeralProps } from './interface'; const Numeral = styled.h1` ${({ small = false }: StyledNumeralProps) => { const size = { desktop: small ? '64px' : '128px', mobile: small ? '40px' : '122px' }; return ` font-family: ${tokens.fontHeading}; font-weight: ${tokens.fontWeightBold}; font-size: ${size.mobile}; line-height: ${size.mobile}; letter-spacing: -2px; text-transform: uppercase; ${mq.md` font-size: ${size.desktop}; line-height: ${size.desktop}; `} `; }} `; export default Numeral;