Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to theme.json #182

Merged
merged 4 commits into from
Feb 1, 2021
Merged

Updates to theme.json #182

merged 4 commits into from
Feb 1, 2021

Conversation

oandregal
Copy link
Member

@oandregal oandregal commented Jan 28, 2021

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants