Skip to content

Instantly share code, notes, and snippets.

View prigara's full-sized avatar

Ekaterina Prigara prigara

  • JetBrains
  • Munich, Germany
View GitHub Profile

Hi! I'm from the Webstorm team at JetBrains. We were planning to release a similar plugin to support Styled Components within the nearest days when we saw this. We would love it if you could accept our implementation so that the community of Styled Components users would be able to contribute.

I've made some changes. The main points are:

  1. When building injected file content we replace the string interpolation argument with a fake identifier to avoid breaking the CSS syntax structure as much is possible. For example, in case of
let someCss = styled(Box) `