laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.95k stars 809 forks source link

[discussion] Customizing the brand color without modifying the components too much #921

Closed rennokki closed 2 years ago

rennokki commented 2 years ago

Currently, changing the color schema is a bit of manual work to look after components that have hardcoded *-gray-* or *-indigo-* classes to be used as colors. I was thinking about how components can implement a boilerplate for color schemes, so that with minimum configuration, Jetstream can support color schemes without modifying components directly.

Would it be a great idea for Jetstream to ship by default custom colors (like brand variant or something like that) via extended color variants in Tailwind, so that the colors would be changed easier by the Tailwind configuration instead of finding and replacing those classes to change their respective colors?

Replacing the *-indigo-* classes within the Tailwind config would be a bit nasty, as I'd rather have a new color for the components instead of hard-coding one (like indigo).

driesvints commented 2 years ago

Hey @rennokki, I don't think we'll be working on this ourselves. We intended Jetstream to either be used out of the box as-is or have devs replace the default UI with their own one. Sorry. If you still want this you can always try a PR.