nunomaduro / termwind

🍃 In short, it's like Tailwind CSS, but for the PHP command-line applications.
MIT License
2.29k stars 78 forks source link

Remove 'orange' color #146

Closed AdamGaskins closed 2 years ago

AdamGaskins commented 2 years ago

If you use try to use a color that doesn't exist, Termwind throws ColorNotFound:

render('<div class="text-fakecolor">Hello World</div>')
/* PHP Fatal error:  Uncaught Termwind\Exceptions\ColorNotFound: FAKECOLOR */

However orange is available as a color in Termwind, even though it's not supported by Symfony. This causes a different error:

render('<div class="text-orange">Hello World</div>');
/* PHP Fatal error: Uncaught Symfony\Component\Console\Exception\InvalidArgumentException:
 *     Invalid "orange" color; expected one of (black, red, green, yellow, blue, magenta, cyan,
 *     white, default, gray, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta,
 *     bright-cyan, bright-white). in /vendor/symfony/console/Color.php:141 */
xiCO2k commented 2 years ago

Thanks for that

xiCO2k commented 2 years ago

rebase like the other, please 🍺

AdamGaskins commented 2 years ago

@xiCO2k 👍🏻