spatie / color

A little library to deal with color conversions
https://spatie.be/opensource/php
MIT License
350 stars 36 forks source link

Convert color names #23

Open Remo opened 7 years ago

Remo commented 7 years ago

I'm looking for a library that converts all my colors into the same format and stumbled up on your library. IT looks like a neat start. However, I also need to be able to convert a string like red to something like #FF0000. Any reason not to support that?

sebastiandedeyne commented 7 years ago

I don't think this could be added without a breaking change because it would need a change in the interface to do it good.

Planning to do a rework of this package at some point, I'll keep in mind to add this then.

ian-patel commented 5 years ago

How about tag categories to #000000 as Dark and #ffffff ad Light color.

Hex::fromString('#000000')->isDark()
kevnk commented 3 years ago

How about tag categories to #000000 as Dark and #ffffff ad Light color.

Hex::fromString('#000000')->isDark()

@ian-patel - Check out #44