Hidden CSS insertions

Where to place PHP code and hide insertions like code at the bottom. Can be improved code?

body{--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white
//Remove Gutenberg Block Library CSS from loading on the frontend
function try_remove_wp_block_library_css(){
wp_dequeue_style( 'wp-block-library' );
wp_dequeue_style( 'wp-block-library-theme' );
wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS
wp_dequeue_style( 'global-styles' ); // Remove theme.json
add_action( 'wp_enqueue_scripts', 'try_remove_wp_block_library_css', 100 );

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.