Skip to content

Instantly share code, notes, and snippets.

@anreton
Last active January 15, 2024 22:53
Show Gist options
  • Save anreton/fb0d79641b820a1873b5d1d48f17b38e to your computer and use it in GitHub Desktop.
Save anreton/fb0d79641b820a1873b5d1d48f17b38e to your computer and use it in GitHub Desktop.
Structurizr Theme JSON Schema
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$id": "https://gist.github.com/anreton/fb0d79641b820a1873b5d1d48f17b38e",
"title": "Structurizr Theme JSON Schema",
"description": "JSON Schema for Structurizr Theme.",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"elements": {
"type": "array",
"items":{
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"background": {
"type": "string",
"description": "Element's background color.",
"format": "color"
},
"color": {
"type": "string",
"description": "Element's text color.",
"format": "color"
},
"stroke": {
"type": "string",
"description": "Element's stroke color.",
"format": "color"
},
"shape": {
"type": "string",
"description": "Element's shape.",
"enum": [
"Box",
"RoundedBox",
"Circle",
"Ellipse",
"Hexagon",
"Cylinder",
"Pipe",
"Person",
"Robot",
"Folder",
"WebBrowser",
"MobileDevicePortrait",
"MobileDeviceLandscape",
"Component"
]
}
},
"required": [
"tag"
]
}
}
},
"required": [
"name",
"description",
"elements"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment