The CSSpectrum Chrome Extension is a tool developed to improve the web browsing experience by detecting and displaying color values present on web pages. It accommodates a broad spectrum of color formats, including CSS color names, hexadecimal codes, RGB(A), HSL(A), and additional advanced formats. Each identified color is visually highlighted in its respective shade, and users may interact with these highlights to alternate between different color representations.
-
Comprehensive Color Identification: The extension systematically identifies and highlights color values across web pages, supporting the following formats:
- CSS color names (e.g.,
red
,blue
) - Hexadecimal codes (e.g.,
#FF5733
,#0080FF80
) - RGB and RGBA (e.g.,
rgb(255, 87, 51)
,rgba(255, 87, 51, 0.5)
) - HSL and HSLA (e.g.,
hsl(10, 100%, 60%)
,hsla(10, 100%, 60%, 0.5)
) - HWB (e.g.,
hwb(240 100% 0%)
) - Lab (e.g.,
lab(50% 20 -30)
) - LCH (e.g.,
lch(50% 30 270)
) - Oklab (e.g.,
oklab(50% 0.1 -0.2)
) - Oklch (e.g.,
oklch(50% 0.1 270)
) color()
spaces (e.g.,color(srgb 1 1 1)
,color(display-p3 1 1 1)
)
- CSS color names (e.g.,
-
Interactive Color Conversion: Users may click on a highlighted color to cycle it through different representations:
- CSS Color Name
- RGB(A)
- Hexadecimal
- HSL(A)
- HWB
- Lab
- LCH
- Oklab
- Oklch
- Original format
Note
Activating the "Include color spaces in the cycle" setting incorporates further color spaces into the sequence, such as sRGB, sRGB-linear, Display-P3, A98-RGB, ProPhoto-RGB, Rec2020, XYZ, XYZ-D50, and XYZ-D65.
- Clone the repository or download the zip file:
git clone https://github.com/ganemedelabs/csspectrum-chrome-extension.git
- Navigate to the project directory and run these commands to install dependencies and build the project:
npm install npm run build
- Open Chrome and go to
chrome://extensions/
. - Enable Developer Mode using the toggle in the top-right corner.
- Click Load Unpacked and select the
dist
folder. - CSSpectrum is now ready to use!
This project is licensed under the MIT License. See the LICENSE file for details.
For inquiries or more information, you can reach out to us at ganemedelabs@gmail.com.
The icon used in this extension is by Freepik on Flaticon.