styled-components-breakpoint icon indicating copy to clipboard operation
styled-components-breakpoint copied to clipboard

Formatting css inside the template strings

Open guitheengineer opened this issue 4 years ago • 0 comments

Prettier doesn't seems to work with css inside the template string.

As a workaround, seems possible to enable formatting by using the styled-components helper function css

export const SC = styled.div`
  ${breakpoint('lg')`${css`
    height: 100%;
  `}`}
`;

but as you can see, is doesn't look good, any alternatives?

guitheengineer avatar Jul 01 '21 18:07 guitheengineer