Skip to content

MQ + Theme Provider #25

Description

@nathanaelphilip

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;
      }
    }
  `}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions