Skip to main content

generate_block_styles_palette()

public static function generate_block_styles_palette( $block_settings )

Generate a color palette based on the block styles available for the Forms Block. Generally used in

various locations where CSS props are generated from the block styles.

Since: 2.7

Source: common.php:8107

Parameters

NameTypeDefaultDescription
$block_settings

Returns

  • array[]