Wow I was struggling with this exact problem earlier today. I scraped a list of all css color names into a union so I could get them in my autocomplete, but also wanted to allow any valid css color without having to make template literals for every possible valid color string.
awesome! author here. I was at the same place and was looking with others and we found this in a corner of the internet. now it's on two corners of the internet, hopefully it will be easier for others to find.
you have made my day, knowing it helped at least one person!
Stealing this!! Thanks for sharing!