Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>csslitNew to Visual Studio Code? Get it now.
csslit

csslit

csslit

|
2 installs
| (0) | Free
VS Code support for csslit.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

csslit for VS Code

CSS syntax highlighting, completions, and hovers inside csslit tagged template literals.

import { css } from "csslit";

const button = css`
  color: white;
  background: rebeccapurple;

  &:hover {
    background: indigo;
  }
`;

css.global`
  body {
    margin: 0;
  }
`;

Highlighting works in .js, .jsx, .ts, .tsx, .html, .astro, .mdx, .svelte, .vue, and .tsrx files.

Completions and hovers work automatically in .js, .jsx, .ts, and .tsx files. React, Solid, Vue JSX, Angular, and other frameworks work without additional csslit setup.

For .tsrx, .vue, .mdx, and .astro files, install @csslit/typescript-plugin and add it to your tsconfig.json plugins:

{
  "compilerOptions": {
    "plugins": [{ "name": "@csslit/typescript-plugin" }],
  },
}

If the language's own setup also lists a TypeScript plugin there, @csslit/typescript-plugin must come first.

Use the workspace TypeScript version; while TypeScript Native Preview is enabled, completions and hovers are available only in .js, .jsx, .ts, and .tsx files.

Source and issues: github.com/csslit/csslit

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft