Decisiv / styled-components-modifiers

A library to enable BEM flavored modifiers (and responsive modifiers) in styled components.
MIT License
297 stars 11 forks source link

Syntax highlighting in VS code #51

Open eric-burel opened 4 years ago

eric-burel commented 4 years ago

EXPECTED BEHAVIOR

Same syntax highlighting as Styled Components.

ACTUAL BEHAVIOR

No way to highlight syntax.

SUGGESTED SOLUTION

I've tried to use the css interpolator from Styled Components, but it is not suited as it passes props to each field, instead of (props) => { /* the whole css string */}.

The issue may be more in Styled Components, that could provide another helper to force syntax highlighting without actually changing the logic?