Inwerpsel / use-theme-editor

A React theme editor
GNU General Public License v3.0
4 stars 0 forks source link

Alias creation does not take multiple representations of the color into account #41

Open Inwerpsel opened 1 year ago

Inwerpsel commented 1 year ago

A single CSS value can have multiple equivalent representations, which are currently considered as distinct values during alias creation.

Currently, creating an alias will leave these values untouched, and there's no way to assign the same alias to them. Hence the bug label, there is no good reason to not apply the alias there and no workaround.

Sometimes there's also hsl values that are really close to a hex value, however these spaces probably don't exactly map to each other in many cases. Still it could be useful to, within some margin, consider these the same if they're visually undistinguishable.