This PR's only a small one. It just adds a new Color class that exposes all of the default Tailwind colours for using in the textColor and bg methods. For example, you could do something like this:
use Termwind\Utils\Color;
line('Hello')->textColor(Color::WHITE)->bg(Color::BLUE_300)->render();
I think this could be pretty useful because it could give devs a good starting point to work from, with colours that they're probably used to using from Tailwind.
Hopefully, this is something that you think would be worthwhile.
Hey @nunomaduro!
This package is looking really cool! 😄
This PR's only a small one. It just adds a new
Color
class that exposes all of the default Tailwind colours for using in thetextColor
andbg
methods. For example, you could do something like this:I think this could be pretty useful because it could give devs a good starting point to work from, with colours that they're probably used to using from Tailwind.
Hopefully, this is something that you think would be worthwhile.
As a side note, I got the colours list from here: https://github.com/tailwindlabs/tailwindcss/blob/master/src/public/colors.js