Skip to content

Add color conversion utilities#4

Merged
pascalbaljet merged 2 commits intomainfrom
color-utils
Apr 3, 2026
Merged

Add color conversion utilities#4
pascalbaljet merged 2 commits intomainfrom
color-utils

Conversation

@pascalbaljet
Copy link
Copy Markdown
Contributor

Adds hexToHsl and hslToHex color conversion utilities. hexToHsl accepts hex strings with or without a leading # and returns { h, s, l } values. hslToHex takes h/s/l numbers and returns a #-prefixed hex string. Includes E2E tests covering primary colors, black/white, no-hash input, invalid input, and roundtrip conversions.

@pascalbaljet pascalbaljet merged commit 051f21f into main Apr 3, 2026
1 check passed
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.

1 participant