Closes #309 and closes #317 by using var(--wp--custom--spacing--small, 1.25rem) in place of the hard-coded max(1.25rem, 5vw) styles within patterns. This way if a user modifies the theme's theme.json settings.custom.spacing.small value, it is reflected throughout the theme.
Testing Instructions
First - without this PR - add a pattern and change the settings.custom.spacing.small value
See no changes, as the max(1.25rem, 5vw) values are hard-coded into the patterns
With this PR active, add any of the changed patterns to a page
Change the settings.custom.spacing.small value in theme.json
Description
Closes #309 and closes #317 by using
var(--wp--custom--spacing--small, 1.25rem)
in place of the hard-codedmax(1.25rem, 5vw)
styles within patterns. This way if a user modifies the theme's theme.jsonsettings.custom.spacing.small
value, it is reflected throughout the theme.Testing Instructions
settings.custom.spacing.small
valuemax(1.25rem, 5vw)
values are hard-coded into the patternssettings.custom.spacing.small
value in theme.json