We'll create fresh WordPress site with Global Styles Mods – WordPress 5.9 fix installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin fixes styling issues introduced in WordPress 5.9.
WordPress 5.9 started applying !important
rule and is setting up CSS properties (CSS variables) within body
selector in its global styles code. This rises the global styles specificity and may override styles coming from themes and plugins. (For more info about this change check “Updates for Settings, Styles, and theme.json” article.)
Global Styles Mods plugin lowers the specificity of WordPress 5.9 global CSS styles by removing !important
rules and changing body
to :root
selector for setting up WordPress CSS properties (CSS variables).
It also enqueues the global styles early enough so your theme or plugin stylesheet have a better chance to override global styles with minimal effort.
The fix applied is coming from issue conversation in Gutenberg GitHub repository.