You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#41527 introduced spacing presets. The preset values can be customized in settings.spacing.spacingScale or settings.spacing.spacingSizes or settings.spacing.customSpacingSize in theme.json.
On the other hand, classic themes that don't have theme.json can opt-in to the spacing feature via custom-spacing or new appearance-tools. However, as far as I know, there is no way to change this preset value without theme.json.
What is your proposed solution?
It would be nice if spacing presets could be opted in at the PHP level, like font size, color, and gradients.
For example:
What problem does this address?
#41527 introduced spacing presets. The preset values can be customized in
settings.spacing.spacingScale
orsettings.spacing.spacingSizes
orsettings.spacing.customSpacingSize
intheme.json
.On the other hand, classic themes that don't have
theme.json
can opt-in to the spacing feature viacustom-spacing
or newappearance-tools
. However, as far as I know, there is no way to change this preset value withouttheme.json
.What is your proposed solution?
It would be nice if spacing presets could be opted in at the PHP level, like font size, color, and gradients.
For example:
In theme.json,
spacingSizes
are available to automatically generate presets, but for theme support, I prefer to simply specify variations in an array.The text was updated successfully, but these errors were encountered: