Skip to content

lrdxg1/vscode-styled-components

 
 

Repository files navigation

vscode-styled-components

Syntax highlighting and IntelliSense for styled-components.

This fork only do one thing: add the mediaBP and innerBP names to be recognized by the extension just like ``media` is on the original.

Syntax highlighting in action

Uses a CSS grammar built on top of language-sass and language-css.

Install

Inside VSCode, press Ctrl+P, and enter:

ext install vscode-styled-components

It should be the top result.

[Source]

Features

  • Syntax highlighting for styled components in JavaScript and TypeScript.
  • Detailed CSS IntelliSense while working in styled strings.
  • Syntax error reporting.

❗Important: IntelliSense and language support requires VS Code 1.20+.

Usage

The styled-components extension adds highlighting and IntelliSense for styled-component template strings in JavaScript and TypeScript. It works out of the box when you use VS Code's built-in version of TypeScript.

If you are using a workspace version of typescript, you must currently configure the TS Server plugin manually by following these instructions

About

Syntax highlighting for styled-components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.1%
  • TypeScript 2.9%