EQWorks / lumen-labs

React library of basic components based on Tailwind CSS
https://eqworks.github.io/lumen-labs
5 stars 2 forks source link

[G2M] Util/export getTailwindColor #81

Closed vxsl closed 2 years ago

vxsl commented 2 years ago

this function is useful in apps that use lumen-labs so I thought we could export it from the main module.

Also noticed that the function returned the string 'false' if the color name was not valid, so I changed it to return an empty string.