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

theme.json schema: Allow object type on style properties #45897

Merged
merged 13 commits into from
Dec 20, 2022
26 changes: 23 additions & 3 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1023,15 +1023,35 @@
"properties": {
"background": {
"description": "Sets the `background-color` CSS property.",
"type": "string"
"oneOf": [
{ "type": "string" },
{ "type": "object" }
],
"properties": {
mikachan marked this conversation as resolved.
Show resolved Hide resolved
"ref": {
"description": "A reference to another property value. e.g. `styles.color.text`",
"type": "string"
}
},
"additionalProperties": false
},
"gradient": {
"description": "Sets the `background` CSS property.",
"type": "string"
"oneOf": [
{ "type": "string" },
{ "type": "object" }
],
"$ref": "#/definitions/stylesProperties/properties/color/properties/background/properties",
mikachan marked this conversation as resolved.
Show resolved Hide resolved
"additionalProperties": false
},
"text": {
"description": "Sets the `color` CSS property.",
"type": "string"
"oneOf": [
{ "type": "string" },
{ "type": "object" }
],
"$ref": "#/definitions/stylesProperties/properties/color/properties/background/properties",
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down