Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Updates to theme.json - #182

Merged
carolinan merged 4 commits into
WordPress:masterfrom
oandregal:try/new-shape-split-global
Feb 1, 2021
Merged

carolinan merged 4 commits into
WordPress:masterfrom
oandregal:try/new-shape-split-global

Conversation

@oandregal

@oandregal oandregal commented Jan 28, 2021 •

Copy link
Copy Markdown
Member

Superseedes #175

This PR updates the theme.json to the latest format, according to the two PRs that landed in Gutenberg recently:

How was the format before those PR landed:

{
  "global": {
    "settings": { ... },
    "styles": { ... }
  },
  "core/paragraph": {
    "settings": { ... },
    "styles": { ... }
  }
}

How it's now:

{
  "settings": {
    "defaults": { ... },
    "root": { ... },
    "core/paragraph": { ... }
  },
  "styles": {
    "root": { ... },
    "core/paragraph": { ... }
  }
}

There's more details and info in the docs.

@oandregal oandregal changed the title Split global into root and defaults (do not merge yet) Updates to theme.json Jan 28, 2021
@carolinan
carolinan merged commit efba678 into WordPress:master Feb 1, 2021
@oandregal
oandregal deleted the try/new-shape-split-global branch February 1, 2021 11:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants