app/Services/Tailwind.php
class Tailwind{ // public function __construct(public string $name, public string $baseColor) { $this->shades = $this->generateColorShades($name, $this->baseColor); } public function getCssFormat(): string { $output = '<style>' . PHP_EOL; $output.= ':root {' . PHP_EOL; foreach ($this->shades as $shade => $color) { $output.= "\t--color-{$shade}: {$color};" . PHP_EOL; } $output.= '}' . PHP_EOL; $output.= '</style>'; return $output; } //}