'VS Code syntax highlighting for template string css? (Emotion)
How do I enable syntax highlighting for emotion template string css
in VS Code? All the plugins I find are for snippets.
It works with css({ camelCaseCssProps:...})
but I am trying to use css variables
for theming without imports and I guess in general I'd rather keep the regular kebab-case
css syntax in my global styles file:
// index.js
render(
<Global
styles={css`
html {
// css variables (and/or camel-case props)
--color-base: white;
--color-text: #434449;
}
`}
/>
)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|