Easily extract and convert colors from Frontend Mentor style guides into CSS variables. Select HSL/HSLA colors from the style-guide.md file and copy them directly to your clipboard as ready-to-use CSS variables.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A simple VS Code extension to extract colors from Frontend Mentor style guides and convert them into CSS variables. Ideal for Frontend Mentor users to streamline color extraction and variable creation for design challenges.
Features
Extract colors from style guides
Convert colors to CSS variables
Easy to use with no complex setup
How to Use
Select the colors provided in the style-guide.md file and right-click.
Choose the "Extract CSS Color" option from the context menu.
Paste the result into your style.css file.
Tip: Extract All Colors at Once
You can quickly extract all the colors from the entire style-guide.md file by selecting all the text at once. Simply press:
Ctrl + A on Windows
⌘ + A on Mac
Then run the extension to extract and copy all the colors in the page in one go!
Installation
From the VS Code Marketplace
Search for Frontend Mentor Color Variables Helper in the VS Code Marketplace.