[wp-trac] [WordPress Trac] #63007: Bundled themes: Stylesheets for block themes are missing path data for inlining

WordPress Trac noreply at wordpress.org
Wed Feb 26 05:09:18 UTC 2025


#63007: Bundled themes: Stylesheets for block themes are missing path data for
inlining
-----------------------------------+-------------------------------
 Reporter:  westonruter            |       Owner:  westonruter
     Type:  enhancement            |      Status:  accepted
 Priority:  normal                 |   Milestone:  6.9
Component:  Bundled Theme          |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  css, performance
-----------------------------------+-------------------------------

Comment (by poena):

 There are pros and cons for both using the core tool and for placing it in
 the theme.

 Using the tool that is already in core means that we, those participating
 in the discussion, needs to do very little, and long term, it is less to
 maintain.

 Adding the tools to the themes means there are more files to manage and
 keep up to date. And I may be wrong but doing this usually falls on one or
 two people for every release.
 The pros are that a beginner developer can keep using the themes as
 examples, and all they need is the built, distributed theme. They don't
 have to concern themselves with a development version of WordPress.

 But what if its not the only option?
 Removing the style.css meta data still has not been looked at.

 -----
 Twenty Twenty-Five:
 The last two styles in style.css could very likely be moved to theme.json.
 Child themes would still inherit the style unless the child theme
 completely overrides the parent theme.json.

 Twenty Twenty-Two:
 This would require more manual testing to see if the styles can be moved
 or removed.

 I am curios about this comment, that says that the CSS is temporary.
 But the people who contributed to the theme are not active in the project
 anymore, so I don't expect an answer. Maybe @karmatosed remember if this
 was intended to be removed at a specific WordPress version.

 /*
  * Alignment styles.
  * These rules are temporary, and should not be relied on or
  * modified too heavily by themes or plugins that build on
  * Twenty Twenty-Two. These are meant to be a precursor to
  * a global solution provided by the Block Editor.
  *
  * Relevant issues:
  * https://github.com/WordPress/gutenberg/issues/35607
  * https://github.com/WordPress/gutenberg/issues/35884
  */

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63007#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list