Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Use new appearanceTools flag to opt into optional UI #261

Closed
kjellr opened this issue Nov 23, 2021 · 0 comments · Fixed by #263
Closed

Use new appearanceTools flag to opt into optional UI #261

kjellr opened this issue Nov 23, 2021 · 0 comments · Fixed by #263
Labels
Good First Issue Good for newcomers [Type] Enhancement New feature or request

Comments

@kjellr
Copy link
Collaborator

kjellr commented Nov 23, 2021

As per WordPress/gutenberg#36646, the theme can now use 'appearanceTools': true in its theme.json file to opt into most of the design tools UI that is currently available in the theme. This can replace all of the one-off declarations below:

{
  'settings': {
    'border': {
      'color': true,
      'radius': true,
      'style': true,
      'width': true
    },
   'color': {
     'link': true
   },
    'spacing': {
      'blockGap': true,
      'margin': true,
      'padding': true
    },
    'typography': {
      'lineHeight': true
    } 
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Good First Issue Good for newcomers [Type] Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant