{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {},
"title": "design info schema",
"description": "design info schema of business card",
"type": "object",
"properties": {
"color": {
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"primary": {
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"description": "primary text color"
},
"secondary": {
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"description": "secondary text color"
},
"background": {
"oneOf": [
{
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"description": "background color"
},
{
"type": "object",
"properties": {
"gradientStyle": {
"type": "string",
"description": "gradient style, e.g., horizontal, vertical, diagonal, radial"
},
"startColor": {
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"description": "starting color of the gradient"
},
"endColor": {
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"description": "ending color of the gradient"
}
},
"additionalProperties": false,
"description": "background as a gradient object"
}
]
},
"primaryText": {
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"description": "title text color"
},
"secondaryText": {
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"description": "secondary text color"
}
}
},
"fontFamily": {
"type": "string",
"description": "font family of text"
},
"fontSize": {
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"name": {
"type": "number",
"description": "font size of name"
}
}
},
"floatingContactButton": {
"type": "boolean",
"description": "contact button is floating or not"
},
"backgroundImage": {
"type": "object",
"required": [
"isSolid",
"value"
],
"additionalProperties": false,
"properties": {
"isSolid": {
"type": "boolean",
"description": "To check background has image or solid color"
},
"value": {
"type": "string",
"description": "Value can be color or image url"
}
}
}
}
}