Skip to content

fix: Color detection crashes with current webcolors - #84

Closed
ghost wants to merge 1 commit into
devfrom
unknown repository
Closed

ghost wants to merge 1 commit into
devfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 29, 2026

Copy link
Copy Markdown

Fixes #83

Before this change, the call crashes while accessing CSS3_HEX_TO_NAMES. The expected result is:

{"black": 100.0}

The fix

Current webcolors releases now enumerate CSS3 names with webcolors.names() and resolve their values through public conversion APIs. Releases predating names() retain a compatibility path through their available name mapping.

Added a regression test covering the complete public workflow above.

@ghost ghost closed this by deleting the head repository Aug 30, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants