diff --git a/functions.php b/functions.php index 20fac48..e880ab0 100644 --- a/functions.php +++ b/functions.php @@ -45,6 +45,20 @@ function jett_block_styles() { line-height: 1.1; }' ) - ); + ); + register_block_style( + 'core/paragraph', + array( + 'name' => 'gradient', + 'label' => __( 'Gradient', 'jett' ), + 'inline_style' => ' + p.is-style-gradient { + background: var(--wp--preset--gradient--violet-to-green); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + line-height: 1.1; + }' + ) + ); } add_action( 'init', 'jett_block_styles' );