Custom style css doesn’t work in Gutenberg preview

add_editor_sytle adds callback for custom TinyMCE editor stylesheets. and you want to style blocks in block editor, not TinyMCE editor. use wp_register_style and it is by default enqueue to all media screens. then register this style for any block you want to style using register_block_style. try something like this: add_action(‘init’, function() { wp_register_style(‘awp-block-styles’, get_template_directory_uri() . … Read more