tcmulder / aquamin

Aquamin WordPress Theme
3 stars 1 forks source link

Reposition theme.json "styles" object. #66

Closed tcmulder closed 9 months ago

tcmulder commented 9 months ago

The following code should not be nested in "settings" but instead a sibling for it to work:

"styles": {
    "spacing": {
        "blockGap": "var(--sp-s-rem)",
        "padding": {
            "right": "var(--sp-s-rem)",
            "left": "var(--sp-s-rem)"
        }
    }
}

Once you've set that, also remove it from assets/component-library/wp-overrides/wp-style.css, and anywhere it appears in comments or documentation, as these are redundant. See Privy for working example.