Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>vscode-tlo-styledNew to Visual Studio Code? Get it now.
vscode-tlo-styled

vscode-tlo-styled

TJ Mora

|
193 installs
| (0) | Free
Syntax highlighting for TLO.styled of template-literal-object. Forked from vscode-styled-components.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-tlo-styled

This extension is available at the Visual Studio Marketplace.

Syntax highlighting and IntelliSense for TLO.styled.

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

Install

Inside VSCode, press Ctrl+P, and enter:

ext install vscode-tlo-styled

It should be the top result.

Features

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

Usage

The styled-components extension adds highlighting and IntelliSense for the template literal objects as set by TLO.styled static method in JavaScript and TypeScript. See plugin configuration for information on configuring the linter and other language features.

Contributing

This is a co-updating fork of vscode-styled-components. Any contribution, except when dealing directly with template literal objects, must be made there. See their contributions policy.

Troubleshooting

There's no syntax highlighting?

Syntax Highlighting is specifically made to work with TLO.styled, not TLO.set, and certainly not for styled-components (Use the vscode-styled-components extension for that).

Secondly make sure your file is set to the right language. It should be typescriptreact or javascriptreact. Using the correct extensions (jsx, tsx) should help with this.

Emmet tab completion isn't working

Be sure to include "emmet.triggerExpansionOnTab": true in your VSCode settings to enable tab completion.** More settings and instructions can be found here.

Emmet is auto completing HTML tags instead of CSS

This is an upstream issue in VSCode unfortunately. The root cause is here: https://github.com/microsoft/vscode/issues/119736 which itself was raised from https://github.com/microsoft/vscode/issues/51537. There was an issue raised in this repo but there's nothing that can be done on our end.

I get "unknown property: X" on a property I know is valid

Property look up comes from the css language service which in turn comes from MDN Data. If its a custom property, or something that is not in MDN you can add your own property like so: https://github.com/microsoft/typescript-styled-plugin/issues/58#issuecomment-444733368

If however you believe this property is standard and thus missing you can raise this issue with either one of the above projects; please check for any raised issue first.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft