facepaint icon indicating copy to clipboard operation
facepaint copied to clipboard

MQ + Theme Provider

Open nathanaelphilip opened this issue 4 years ago • 1 comments

Is it possible to use the mq like this:

const ColumnOne = styled.div`
  ${({ theme }) => `
    ${mq({
      'paddingRight': [0, `${theme.spacer * 20}px`],
      'grid-column': ['1 / 15', '1 / 7']
    })}
    
    p {
      font-size: 16px;
      line-height: 1.7;

      &:first-of-type {
        font-size: 20px;
      }

      &:not(:last-child) {
        margin-bottom: ${theme.spacer * 4}px;
      }
    }
  `}
`

nathanaelphilip avatar Jan 01 '21 15:01 nathanaelphilip

Do you think this would work in practice?

vladyn avatar Jun 27 '23 14:06 vladyn