Skip to content

Commit

Permalink
Add a css style to theme.json to allow setting of custom css strings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Dec 2, 2022
1 parent 4acfb3a commit 32ba7bd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit 32ba7bd

Please sign in to comment.