Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>css-variables-highlighterNew to Visual Studio Code? Get it now.
css-variables-highlighter

css-variables-highlighter

Ganim

|
34 installs
| (0) | Free
CSS Variables Highlighter automatically detects CSS variables and displays their corresponding colors in your editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CSS Variables Highlighter

CSS Variables Highlighter is a VS Code extension that highlights CSS variables with their respective colors, making it easier to visualize and work with them in your stylesheets.

Features

✅ Highlights CSS variables with their actual color.
✅ Supports rgba, hex, and hsl color formats.
✅ Works with .css, .scss, and .less files.
✅ Live updates when variables are modified.

Example:\

Requirements

No additional dependencies are required. Just install the extension and start using it.

Extension Settings

This extension contributes the following settings:

  • cssVariablesHighlighter.enable: Enable/disable the extension.
  • cssVariablesHighlighter.opacity: Adjust the transparency of the color preview.
  • cssVariablesHighlighter.border: Enable/disable border around color previews.

Known Issues

  • Some complex SASS/SCSS structures may not be highlighted correctly.
  • Currently, only variables declared in :root and global scopes are supported.

If you find an issue, feel free to report it on GitHub Issues.

Release Notes

1.0.0

  • Initial release with basic CSS variable highlighting.

Development Guidelines

If you want to contribute or modify the extension, please check the VS Code Extension Guidelines.

For More Information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy coding with CSS Variables Highlighter! 🚀

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