Is it possible to give a linear-gradient to a color option on the panel instance in V3?

->colors([ 'primary' => 'linear-gradient(135deg,#e51f5c,#ab2355)', ]) I am not able to try it yet but just out of curious if it is possible.
3 Replies
GwnMik02
GwnMik02OP2y ago
The goal I want to reach here is to have a gradient for the background of the primary button
awcodes
awcodes2y ago
This is not the way to achieve this. The primary color needs to be an array of tailwind shades or a Color object as stated in the docs. To make the button have a gradient you would need to use CSS and a custom theme to target the buttons and override the styles there.
GwnMik02
GwnMik02OP2y ago
Thanks

Did you find this page helpful?