A Visual Studio Code extension that suggests CSS variable replacements for hex colors in CSS/SCSS files.
Features
Automatically suggests CSS variable replacements for hex color values
Works with both CSS and SCSS files
Configurable via token mapping configuration file
Requirements
VS Code 1.85.0 or higher
Extension Settings
This extension contributes the following settings:
hexToCssVar.configPath: Path to the token map configuration file relative to the workspace root. Defaults to 'token-map.config.json' in the project root.
How to Use
Set up your token-map.config.json file with your color variable mappings
Open a CSS or SCSS file
When typing or editing hex color values, the extension will suggest variable replacements based on your configuration