wp.domReady( function() {
// Unregister "Wide" Separator Style.
wp.blocks.unregisterBlockStyle( 'core/separator', 'wide' );
// Add to ".block-editor__typewriter" the "is-dark-theme" class if needed.
function twentytwentyoneCopyDarkThemeClass() {
if ( ! document.body.classList.contains( 'is-dark-theme' ) ) {
editor = document.querySelector( '.block-editor__typewriter' );
if ( attempt < maxAttempts ) {
twentytwentyoneCopyDarkThemeClass();
// Increment the attempts counter.
// Double the delay, give the server some time to breathe.
editor.classList.add( 'is-dark-theme' );
twentytwentyoneCopyDarkThemeClass();