Closed znikap closed 1 week ago
I was wondering if instead of taking all the colors from the theme.json (being generated with tailwind):
$supports = [ 'color' => [ 'background' => true, 'text' => true, 'gradient' => true, ], ];
you could define the colors you want to be available, so for example:
$supports = [ 'color' => [ 'background' => ['red-500', 'blue-500'], 'text' => true 'gradient' => true, ], ];
Is there any workaround to achieve that? So you could limit the colors per block?
doesn't look like it. https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color
I was wondering if instead of taking all the colors from the theme.json (being generated with tailwind):
you could define the colors you want to be available, so for example:
Is there any workaround to achieve that? So you could limit the colors per block?