Last active
January 15, 2024 22:53
-
-
Save anreton/fb0d79641b820a1873b5d1d48f17b38e to your computer and use it in GitHub Desktop.
Structurizr Theme JSON Schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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