diff --git a/src/NewCommand.php b/src/NewCommand.php index 573a095..b37f15f 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -287,7 +287,7 @@ protected function validateArguments() */ protected function showStatamicTitleArt() { - $this->output->write(PHP_EOL."\e[38;2;255;51;167m $$\ $$\ $$\ + $this->output->write(PHP_EOL." $$\ $$\ $$\ $$ | $$ | \__| $$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\$$$$\ $$\ $$$$$$$\ $$ _____|\_$$ _| \____$$\\_$$ _| \____$$\ $$ _$$ _$$\ $$ |$$ _____| @@ -295,7 +295,7 @@ protected function showStatamicTitleArt() \____$$\ $$ |$$\ $$ __$$ | $$ |$$\ $$ __$$ |$$ | $$ | $$ |$$ |$$ | $$$$$$$ | \\$$$$ |\\$$$$$$$ | \\$$$$ |\\$$$$$$$ |$$ | $$ | $$ |$$ |\\$$$$$$$\ \_______/ \____/ \_______| \____/ \_______|\__| \__| \__|\__| \_______| - \e[39m".PHP_EOL); + ".PHP_EOL); return $this; } diff --git a/src/Theme/Teal.php b/src/Theme/Teal.php index 59265e3..0404c40 100644 --- a/src/Theme/Teal.php +++ b/src/Theme/Teal.php @@ -2,6 +2,8 @@ namespace Statamic\Cli\Theme; +use Symfony\Component\Console\Terminal; + trait Teal { public function cyan(string $text): string @@ -11,6 +13,8 @@ public function cyan(string $text): string public function teal(string $text): string { - return "\e[38;2;1;215;176m{$text}\e[39m"; + $color = Terminal::getColorMode()->convertFromHexToAnsiColorCode('01D7B0'); + + return "\e[3{$color}m{$text}\e[39m"; } }