CSS Color ConverterConvert CSS color values to a different color format directly inside your files. Supported output formats:
The extension operates on the current selection or the entire document. DemoWhat It DoesThis extension allows you to convert existing CSS color values to a different format without manually rewriting them. You can:
How to Use
If text is selected, only the selection is processed. If nothing is selected, the entire document is processed. Supported Input FormatsThe extension recognizes common CSS color formats, including: Named colors
Hex
Functional formats
Modern CSS Color Level 4 syntax is supported. ConfigurationYou can configure default behavior in VS Code settings. Default Target FormatSets the preferred format used for conversion. Available values:
Include OpacityControls when alpha values are included in the generated output.
Decimal PrecisionControls how many decimal places are used in generated values. Range: ExampleInput:
Converted to
Issues and FeedbackIf you encounter a bug, unexpected behavior, or would like to request a feature, please open an issue on GitHub: 👉 https://github.com/inf1nite-lo0p/css-color-converter/issues When reporting an issue, include:
LicenseLicensed under the MIT License. |
