body {
background: ;
font-family: ;
font-weight: ;
font-size: ;
}

<?php
$dynamic_css = ob_get_contents();
ob_end_clean();
return $dynamic_css;
}
}

function capacity_enqueue_block_editor_assets()
{
echo ''. capacity_dynamic_css_editor() .'';
}
add_action('enqueue_block_editor_assets', 'capacity_enqueue_block_editor_assets');

It works! thank you very much