Skip to content

Commit

Permalink
Theme JSON schema: add heading/button key to color definition (#55674)
Browse files Browse the repository at this point in the history
* Theme JSON schema: add heading/button key to color definition

* Update docs

* Add "in a block"
  • Loading branch information
t-hamano authored Nov 22, 2023
1 parent f73f8d2 commit fbc962c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Settings related to colors.
| link | boolean | false | |
| palette | array | | color, name, slug |
| text | boolean | true | |
| heading | boolean | true | |
| button | boolean | true | |

---

Expand Down
14 changes: 12 additions & 2 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
}
},
"link": {
"description": "Allow users to set link colors.",
"description": "Allow users to set link colors in a block.",
"type": "boolean",
"default": false
},
Expand Down Expand Up @@ -228,7 +228,17 @@
}
},
"text": {
"description": "Allow users to set text colors.",
"description": "Allow users to set text colors in a block.",
"type": "boolean",
"default": true
},
"heading": {
"description": "Allow users to set heading colors in a block.",
"type": "boolean",
"default": true
},
"button": {
"description": "Allow users to set button colors in a block.",
"type": "boolean",
"default": true
}
Expand Down

0 comments on commit fbc962c

Please sign in to comment.