UNPKG

color-2-name

Version:

Finds the closest color name to a given hex, rgb and hsl color (with and without alpha). It uses the Euclidean distance formula to calculate the distance between colors in the RGB color space

22 lines (21 loc) 277 B
{ "$schema": "https://biomejs.dev/schemas/2.0.5/schema.json", "formatter": { "enabled": true }, "linter": { "enabled": true }, "json": { "formatter": { "enabled": false } }, "assist": { "actions": { "source": { "organizeImports": "on" } } } }