'thin', 'label' => __( 'Thin', 'lex-scotland' ), 'inline_style' => ' .wp-block-button.is-style-thin .wp-element-button { padding: 8px 16px; background: var(--wp--preset--color--washed-green); color: var(--wp--preset--color--contrast); border-radius: 0; font-size: var(--wp--preset--font-size--small); border: 1px solid var(--wp--preset--color--washed-green); font-weight: 400; } .wp-block-button.is-style-thin .wp-element-button:hover { border: 1px dashed; } ' ) ); register_block_style( 'core/paragraph', array( 'name' => 'arrow-link', 'label' => __( 'Arrow link', 'lex-scotland' ), 'inline_style' => ' p.is-style-arrow-link a:after { display: inline-block; content: "🡭"; padding-inline-start: 0.25rem; vertical-align: middle; } ' ) ); register_block_style( 'core/paragraph', array( 'name' => 'constrained', 'label' => __( 'Constrained', 'lex-scotland' ), 'inline_style' => ' p.is-style-constrained { max-width: 50ch; } ' ) ); register_block_style( 'core/list-item', array( 'name' => 'constrained', 'label' => __( 'Constrained', 'lex-scotland' ), 'inline_style' => ' li.is-style-constrained { max-width: 50ch; } ' ) ); } // enable customizer add_action( 'customize_register', '__return_true' ); // add full page pattern category function lexscotland_pattern_categories() { register_block_pattern_category( 'lexscotland_page', array( 'label' => _x( 'Pages', 'Block pattern category', 'lexscotland' ), 'description' => __( 'A collection of full page layouts.', 'lexscotland' ), ) ); } add_action( 'init', 'lexscotland_pattern_categories' );