'Primary', 'slug' => 'primary', 'color' => '#1F2447', ), array( 'name' => 'Primary Light', 'slug' => 'primary-light', 'color' => '#EFF6FE', ), array( 'name' => 'Primary Medium', 'slug' => 'primary-medium', 'color' => '#8AA6EF', ), array( 'name' => 'Primary Dark', 'slug' => 'primary-dark', 'color' => '#39459A', ), array( 'name' => 'Secondary', 'slug' => 'secondary', 'color' => '#0D0C22', ), array( 'name' => 'Description Light', 'slug' => 'desc-light', 'color' => '#F6F6F6', ), array( 'name' => 'Description Dark', 'slug' => 'desc-dark', 'color' => '#595959', ), array( 'name' => 'White', 'slug' => 'white', 'color' => '#FFFFFF', ), array( 'name' => 'Black', 'slug' => 'black', 'color' => '#000000', ), )); // Add font size options add_theme_support('editor-font-sizes', array( array( 'name' => 'Small', 'size' => 14, 'slug' => 'small' ), array( 'name' => 'Regular', 'size' => 16, 'slug' => 'regular' ), array( 'name' => 'Medium', 'size' => 20, 'slug' => 'medium' ), array( 'name' => 'Large', 'size' => 24, 'slug' => 'large' ), array( 'name' => 'Extra Large', 'size' => 32, 'slug' => 'xlarge' ), )); } add_action('after_setup_theme', 'blog_build_setup_block_support'); // Make the editor styles match the frontend function blog_build_add_editor_styles() { add_theme_support('editor-styles'); // Enqueue Google Fonts add_editor_style(blog_build_fonts_url()); // editor specific styles add_editor_style('assets/css/editor-style.css'); } add_action('after_setup_theme', 'blog_build_add_editor_styles'); // Add custom styles for specific blocks function blog_build_custom_block_styles() { // Custom paragraph styles register_block_style( 'core/paragraph', array( 'name' => 'primary-bg', 'label' => 'Primary Background', ) ); register_block_style( 'core/paragraph', array( 'name' => 'secondary-bg', 'label' => 'Secondary Background', ) ); // Custom button styles matching your color scheme register_block_style( 'core/button', array( 'name' => 'primary-button', 'label' => 'Primary Button', 'is_default' => true, ) ); register_block_style( 'core/button', array( 'name' => 'outline-button', 'label' => 'Outline Button', ) ); // Group block with section styling register_block_style( 'core/group', array( 'name' => 'section-bg', 'label' => 'Section Background', ) ); } add_action('init', 'blog_build_custom_block_styles');