CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.
385
stars
1,160
commits
TypeScript
primary language
Sep 8, 2026
updated
Language services for CSS, LESS and SCSS
The vscode-css-languageservice contains the language smarts behind the CSS, LESS and SCSS editing experience of Visual Studio Code and the Monaco editor.
The vscode-css-languageservice does not cover syntax highlighting. VS Code uses TextMate grammars for that, with a grammar that is maintained in https://github.com/microsoft/vscode-css.
All CSS entities (properties, at-rules, etc) are sourced from https://github.com/microsoft/vscode-custom-data/tree/master/web-data and transpiled here. For adding new property or fixing existing properties' completion/hover description, please open PR there.
npm install --save vscode-css-languageservice
For the complete API see cssLanguageService.ts and cssLanguageTypes.ts
npm installnpm test to compile and run testsHow can I run and debug the service?
cssCompletion.ts
How can I run and debug the service inside an instance of VSCode?
npm link in the folder of vscode-css-languageservicenpm link vscode-css-languageservice in vscode/extensions/css-language-features/server to run VSCode with the latest changes from vscode-css-languageservicevscode/scripts/code.sh|bat) and open a .css filevscode-css-languageservice sources, run command Debug: Attach to Node process and pick the code-oss process with the css-language-features path

cssCompletion.ts.css file(MIT License)
Copyright 2016, 25 Microsoft
With the exceptions of build/mdn-documentation.js, which is built upon content from Mozilla Developer Network
and distributed under CC BY-SA 2.5.
(top 30 of 70)
TypeScript
96.5%
JavaScript
3.2%
CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.
385
stars
1,160
commits
TypeScript
primary language
Sep 8, 2026
updated
Language services for CSS, LESS and SCSS
The vscode-css-languageservice contains the language smarts behind the CSS, LESS and SCSS editing experience of Visual Studio Code and the Monaco editor.
The vscode-css-languageservice does not cover syntax highlighting. VS Code uses TextMate grammars for that, with a grammar that is maintained in https://github.com/microsoft/vscode-css.
All CSS entities (properties, at-rules, etc) are sourced from https://github.com/microsoft/vscode-custom-data/tree/master/web-data and transpiled here. For adding new property or fixing existing properties' completion/hover description, please open PR there.
npm install --save vscode-css-languageservice
For the complete API see cssLanguageService.ts and cssLanguageTypes.ts
npm installnpm test to compile and run testsHow can I run and debug the service?
cssCompletion.ts
How can I run and debug the service inside an instance of VSCode?
npm link in the folder of vscode-css-languageservicenpm link vscode-css-languageservice in vscode/extensions/css-language-features/server to run VSCode with the latest changes from vscode-css-languageservicevscode/scripts/code.sh|bat) and open a .css filevscode-css-languageservice sources, run command Debug: Attach to Node process and pick the code-oss process with the css-language-features path

cssCompletion.ts.css file(MIT License)
Copyright 2016, 25 Microsoft
With the exceptions of build/mdn-documentation.js, which is built upon content from Mozilla Developer Network
and distributed under CC BY-SA 2.5.
(top 30 of 70)
TypeScript
96.5%
JavaScript
3.2%