Use color palette plugin

Hello there,

I want to use this plugin to select a color that can apply on the title of a template.

I had try this way, but I didn’t get nothing :frowning:

<h1 style="color: <? $palette  = $page->palette()->yaml();
						 echo $palette ?>">

						 <?php echo $page->title()->html() ?></h1>

Thanks for the help

$page->palette()->yaml() gives you an array that you can’t echo. Check out the readme how to get data from a structured color object, if that’s what you are using.

$palette    = $page->palette()->yaml();
$background = $palette['background']; #(string)
$border     = $palette['border']; #(string)