vscode-styled-jsx icon indicating copy to clipboard operation
vscode-styled-jsx copied to clipboard

Add support for preprocessed CSS languages

Open ebramanti opened this issue 7 years ago • 3 comments

styled-jsx supports plugins which allows for the use of multiple different languages (Stylus, Sass, PostCSS, etc.)

It would be cool to support multiple languages out of the box and be able to specify the language used in a project-specific configuration.

ebramanti avatar Feb 24 '18 00:02 ebramanti

Agreed! styled-jsx plugins like styled-jsx-plugin-sass work well, but not if you want syntax highlighting. For now I have stopped using SCSS syntax because vscode-styled-jsx is more important 😄

programbo avatar Jul 06 '18 01:07 programbo

While it would be awesome to have a project-specific configuration and use only this extension, I forked the project to support Stylus syntax highlighting.

See: https://github.com/samuelroy/vscode-styled-jsx-stylus

samuelroy avatar Nov 08 '18 21:11 samuelroy

We use styled-jsx-plugin-sass with Next.js to import and reuse SCSS functions and SCSS variables from customized Bootstrap design systems. The system is used globally but this way we can create scoped CSS in line with the design system. We tried vscode-styled-jsx-languageserver but it can not handle how we break out styles as const variables to keep the component function clean. Issue thread with example code.

Soundvessel avatar Jul 15 '19 23:07 Soundvessel