Skip to content

Instantly share code, notes, and snippets.

@Saifadin
Created December 17, 2018 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Saifadin/2156d4f849f36acdb939c89b54a5110f to your computer and use it in GitHub Desktop.
Save Saifadin/2156d4f849f36acdb939c89b54a5110f to your computer and use it in GitHub Desktop.
Why we use CSS-in-JS 5
export const Panel = styled('div')`
max-width: 1200px;
width: 100%;
margin-bottom: ${({ theme: { spacing } }) => spacing}px;
@media screen and (max-width: 768px) {
max-width: 400px;
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment