From fbc962cc618775a8df9d2a6b36b4785010dd0e14 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:20:33 +0900 Subject: [PATCH] Theme JSON schema: add heading/button key to color definition (#55674) * Theme JSON schema: add heading/button key to color definition * Update docs * Add "in a block" --- .../theme-json-reference/theme-json-living.md | 2 ++ schemas/json/theme.json | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/theme-json-reference/theme-json-living.md b/docs/reference-guides/theme-json-reference/theme-json-living.md index 4890386ca8333e..492cdaf089cc4b 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -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 | | --- diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 5a24f1b16c1a35..68c649e337d828 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -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 }, @@ -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 }