@@ -1721,6 +1721,7 @@ function wp_default_styles( $styles ) {
17211721
17221722 // Only add CONTENT styles here that should be enqueued in the iframe!
17231723 $ wp_edit_blocks_dependencies = array (
1724+ 'wp-theme ' ,
17241725 'wp-base-styles ' ,
17251726 'wp-components ' ,
17261727 /*
@@ -1761,8 +1762,9 @@ function wp_default_styles( $styles ) {
17611762 'block-editor ' => array ( 'wp-components ' , 'wp-preferences ' ),
17621763 'block-library ' => array (),
17631764 'block-directory ' => array (),
1765+ 'theme ' => array (),
17641766 'base-styles ' => array (),
1765- 'components ' => array (),
1767+ 'components ' => array ( ' wp-theme ' ),
17661768 'commands ' => array ( 'wp-components ' ),
17671769 'edit-post ' => array (
17681770 'wp-components ' ,
@@ -1829,6 +1831,10 @@ function wp_default_styles( $styles ) {
18291831 $ path = "/wp-includes/css/dist/base-styles/admin-schemes $ suffix.css " ;
18301832 }
18311833
1834+ if ( 'theme ' === $ package ) {
1835+ $ path = "/wp-includes/css/dist/theme/design-tokens $ suffix.css " ;
1836+ }
1837+
18321838 $ styles ->add ( $ handle , $ path , $ dependencies );
18331839 $ styles ->add_data ( $ handle , 'path ' , ABSPATH . $ path );
18341840 }
@@ -1872,6 +1878,7 @@ function wp_default_styles( $styles ) {
18721878 'wp-reset-editor-styles ' ,
18731879 'wp-editor-classic-layout-styles ' ,
18741880 'wp-block-library-theme ' ,
1881+ 'wp-theme ' ,
18751882 'wp-edit-blocks ' ,
18761883 'wp-block-editor ' ,
18771884 'wp-block-library ' ,
0 commit comments