Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQ + Theme Provider #25

Open
nathanaelphilip opened this issue Jan 1, 2021 · 1 comment
Open

MQ + Theme Provider #25

nathanaelphilip opened this issue Jan 1, 2021 · 1 comment

Comments

@nathanaelphilip
Copy link

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;
      }
    }
  `}
`
@vladyn
Copy link

vladyn commented Jun 27, 2023

Do you think this would work in practice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants