From 8dcc1ef69510537ab962752636c3ca7bbeb16395 Mon Sep 17 00:00:00 2001 From: George Hotelling Date: Thu, 23 Jun 2022 16:05:40 -0400 Subject: [PATCH 1/4] Add schema support for styles.filter.duotone --- schemas/json/theme.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 75e346e0982f5..910e75d8e0c59 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -889,6 +889,17 @@ } }, "additionalProperties": false + }, + "filter": { + "description": "Filters to attach to the styles", + "type": "object", + "properties": { + "duotone": { + "description": "Sets the duotone filter.", + "type": "string" + } + }, + "additionalProperties": false } } }, @@ -1266,6 +1277,7 @@ "color": {}, "spacing": {}, "typography": {}, + "filter": {}, "elements": { "description": "Styles defined on a per-element basis using the element's selector.", "$ref": "#/definitions/stylesElementsPropertiesComplete" From c10616cb4cc1da2b7be184ce6d35c25125f79b99 Mon Sep 17 00:00:00 2001 From: George Hotelling Date: Thu, 23 Jun 2022 16:29:34 -0400 Subject: [PATCH 2/4] Fix docs --- .../theme-json-reference/theme-json-living.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 6d0c02e8d27ed..82b18fe91e5cc 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -172,4 +172,14 @@ Typography styles. --- +### filter + +Filters to attach to the styles + +| Property | Type | Props | +| --- | --- |--- | +| duotone | string | | + +--- + From 0dbdc0e535a41697a2a29440a26dece6b04583e5 Mon Sep 17 00:00:00 2001 From: George Hotelling Date: Fri, 24 Jun 2022 16:35:14 -0400 Subject: [PATCH 3/4] Improve wording --- schemas/json/theme.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 910e75d8e0c59..f25d8a7390fa0 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -891,7 +891,7 @@ "additionalProperties": false }, "filter": { - "description": "Filters to attach to the styles", + "description": "CSS and SVG filter styles.", "type": "object", "properties": { "duotone": { From 4216e4a802171ba5fb73e60c1eec1e01a7112de4 Mon Sep 17 00:00:00 2001 From: George Hotelling Date: Mon, 27 Jun 2022 10:22:01 -0400 Subject: [PATCH 4/4] Fix docs (again) --- docs/reference-guides/theme-json-reference/theme-json-living.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 82b18fe91e5cc..d489413870fae 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -174,7 +174,7 @@ Typography styles. ### filter -Filters to attach to the styles +CSS and SVG filter styles. | Property | Type | Props | | --- | --- |--- |