This VSCode extension provides a live color preview for CSS variables that represent RGB values in your stylesheet. It automatically displays the preview of colors defined with comma-separated RGB values in your CSS files.
Features
Color Preview and Edit for CSS Variables: It detects and shows a color preview for CSS variables defined as RGB values (e.g., --my-color: 255, 0, 0;).
Real-time Updates: The color preview is automatically updated as you modify the CSS variable's RGB values.
Intuitive & Simple: The extension makes it easy to visualize your CSS colors directly in the editor without the need to open external tools or check the browser.
Supported Syntax
The extension supports CSS variables in the following format:
--variable-name: r, g, b;
It will automatically show a color preview, that can be edited for each defined variable.
Installation
Open Visual Studio Code.
Go to the Extensions Marketplace (Ctrl+Shift+X or Cmd+Shift+X on macOS).
Search for CSS Variable Color Preview.
Click Install to add the extension to your VSCode.