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

Global Styles: Add a css style to theme.json to allow setting of custom css strings #46255

Merged
merged 5 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ Outline styles.
| style | string | |
| width | string | |

---

### css

Sets custom CSS to apply styling not covered by other theme.json properties.


---

<!-- END TOKEN Autogenerated - DO NOT EDIT -->
10 changes: 9 additions & 1 deletion schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,10 @@
}
},
"additionalProperties": false
},
"css": {
"description": "Sets custom CSS to apply styling not covered by other theme.json properties.",
"type": "string"
}
}
},
Expand All @@ -1186,7 +1190,8 @@
"typography": {},
"filter": {},
"shadow": {},
"outline": {}
"outline": {},
"css": {}
},
"additionalProperties": false
}
Expand All @@ -1210,6 +1215,7 @@
"outline": {},
"spacing": {},
"typography": {},
"css": {},
":hover": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
Expand Down Expand Up @@ -1561,6 +1567,7 @@
"filter": {},
"shadow": {},
"outline": {},
"css": {},
"elements": {
"$ref": "#/definitions/stylesElementsPropertiesComplete"
}
Expand Down Expand Up @@ -1629,6 +1636,7 @@
"filter": {},
"shadow": {},
"outline": {},
"css": {},
"elements": {
"description": "Styles defined on a per-element basis using the element's selector.",
"$ref": "#/definitions/stylesElementsPropertiesComplete"
Expand Down