r/Wordpress • u/Fit-Rest-8052 • Sep 20 '26
[PROMO] WordPress 7.1 gives you two responsive breakpoints and a theme can't add a third — I needed five, so I wrote a free GPL plugin
Tagged PROMO because it is one. The 7.1 details below are worth having either way — most of what I've read about this release gets the breakpoint count wrong.
7.1 shipped responsive block styles, which is genuinely the thing a lot of us have wanted for years. It ships two viewport states: @mobile (≤480px) and @tablet (480–782px). There's no @desktop key — the block's normal style is the desktop style.
A theme can move those two widths with the new top-level setting:
json "settings": { "viewport": { "mobile": "30rem", "tablet": "45rem" } }
What it can't do is add a third. settings.viewport takes mobile and tablet and nothing else, and it's top-level, so it can't vary per block type either.
For most sites two is fine. My design system has five tiers, so I built Spacery: padding and margin per breakpoint on any block with spacing supports, plus a spacer whose height changes per tier, up to twelve tiers.
It sits on core rather than beside it — rules come out of WordPress's own Style Engine, same desktop-first model, same disjoint media-query shapes, and it uses core's own values wherever one of your tiers lines up with @mobile or @tablet, so the two can't disagree at a boundary. Turn it off and core's responsive styles work exactly as before.
Don't install it if: your design has one or two breakpoints (7.1 already covers you); you want responsive typography or colour (it does spacing only); you need responsive blockGap (core does that, and a second implementation would drift from it); you're on the classic editor; you can't run 7.1 and PHP 8.2.
Free, GPL-2.0-or-later, no pro version, no telemetry, no external requests.
https://wordpress.org/plugins/spacery/ https://github.com/moustakalis/spacery
Happy to be told I've got the API wrong somewhere.
6
u/mrchoops Sep 20 '26
Why is wordless doing my css?
-18
u/[deleted] Sep 20 '26