This repo implements a language server for VSCode. The language server can be installed as an extension. The extension enables hex color token detection in JSON files, provides color preview and color editing through the built-in color picker.
A json file with hex color tokens
{
"colorA": "#DB3333",
"colorB": "#B9EC2B"
}
will be rendered as
If referenced in a css file, the referenced variables will show the color preview
- Preview visual color from hex color tokens in json files.
- Cache variables in opened json files that are like color tokens and preview them in referenced css/less files.
- Adjust color using the built-in color picker in json files.
The extension icon is designed using resources from Flaticon.com.
See features and fixes for each released versions at release notes.
Excluding all the node modules, which have their own licenses and are obvious what those licenses are, a significant portion of the source code in the extension is contributed by Microsoft under the MIT license in their sample language service provider project lsp-sample. All the source code that originated from the lsp-sample project have the license header in the file and are subject to the original MIT license. All the source code contributed by other authors are in MIT license as well.