Write an object. Only the fields named below are allowed. Unknown fields are rejected so a typo cannot hide inside the document.
More than one shape is accepted. Use exactly one of the 2 alternatives below. They are different ways to say the same kind of value.
You may omit type, value, description, modes, confidence, provenance, extensions, $type, and $value. Leave a field out when you have nothing to say. Do not invent a placeholder.
Exact constraints
- type
object- additional properties
forbidden
type"color" | "dimension" | "spacing" | "radius" | "border" | "shadow" | "typography" | "font" | "gradient" | "opacity" | "duration" | "easing" | "motion" | "material" | "breakpoint" | "z-index" | "number" | "string"Pick one of the 18 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"color""dimension""spacing""radius""border""shadow""typography""font""gradient""opacity""duration""easing""motion""material""breakpoint""z-index""number""string"
valuestring | number | boolean | array<jsonValue> | object | typography | gradient | shadow | color | springMore than one shape is accepted. Use exactly one of the 10 alternatives below. They are different ways to say the same kind of value.
anyOf 1stringWrite a text value.
An empty string is not allowed.
Exact constraints
- type
string- min length
1
anyOf 2numberWrite a number. Decimals are allowed.
Exact constraints
- type
number
anyOf 3booleanWrite true or false.
Exact constraints
- type
boolean
anyOf 4array<jsonValue>Write a list. Each item follows the shape described under items.
Exact constraints
- type
array
itemsjsonValueThis is not a new shape. It reuses jsonValue from the common module. Open that definition for the fields you can write.
anyOf 5objectWrite an object. Only the fields named below are allowed. Unknown fields are rejected so a typo cannot hide inside the document.
You must include color and width.
You may omit style. Leave a field out when you have nothing to say. Do not invent a placeholder.
Exact constraints
- type
object- additional properties
forbidden
colorrequiredcolorThis is not a new shape. It reuses color from the appearance module. Open that definition for the fields you can write.
widthrequiredsizeThis is not a new shape. It reuses size from the common module. Open that definition for the fields you can write.
style"solid" | "dashed" | "dotted"Pick one of the 3 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"solid""dashed""dotted"
anyOf 6typographyThis is not a new shape. It reuses typography from the appearance module. Open that definition for the fields you can write.
anyOf 7gradientThis is not a new shape. It reuses gradient from the appearance module. Open that definition for the fields you can write.
anyOf 8shadowThis is not a new shape. It reuses shadow from the appearance module. Open that definition for the fields you can write.
anyOf 9colorThis is not a new shape. It reuses color from the appearance module. Open that definition for the fields you can write.
anyOf 10springThis is not a new shape. It reuses spring from the motion module. Open that definition for the fields you can write.
descriptionstringWrite a text value.
An empty string is not allowed.
Exact constraints
- type
string- min length
1
modesobjectExact constraints
- type
object- additional properties
jsonValue
additionalPropertiesjsonValueThis is not a new shape. It reuses jsonValue from the common module. Open that definition for the fields you can write.
confidencenumberWrite a number. Decimals are allowed.
The number must sit between 0 and 1, including both ends.
Exact constraints
- type
number- minimum
0- maximum
1
provenanceprovenanceThis is not a new shape. It reuses provenance from the common module. Open that definition for the fields you can write.
extensionsextensionsThis is not a new shape. It reuses extensions from the common module. Open that definition for the fields you can write.
$type"color" | "dimension" | "spacing" | "radius" | "border" | "shadow" | "typography" | "font" | "gradient" | "opacity" | "duration" | "easing" | "motion" | "material" | "breakpoint" | "z-index" | "number" | "string"Pick one of the 18 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"color""dimension""spacing""radius""border""shadow""typography""font""gradient""opacity""duration""easing""motion""material""breakpoint""z-index""number""string"
$valuestring | number | boolean | array<jsonValue> | object | typography | gradient | shadow | color | springMore than one shape is accepted. Use exactly one of the 10 alternatives below. They are different ways to say the same kind of value.
anyOf 1stringWrite a text value.
An empty string is not allowed.
Exact constraints
- type
string- min length
1
anyOf 2numberWrite a number. Decimals are allowed.
Exact constraints
- type
number
anyOf 3booleanWrite true or false.
Exact constraints
- type
boolean
anyOf 4array<jsonValue>Write a list. Each item follows the shape described under items.
Exact constraints
- type
array
itemsjsonValueThis is not a new shape. It reuses jsonValue from the common module. Open that definition for the fields you can write.
anyOf 5objectWrite an object. Only the fields named below are allowed. Unknown fields are rejected so a typo cannot hide inside the document.
You must include color and width.
You may omit style. Leave a field out when you have nothing to say. Do not invent a placeholder.
Exact constraints
- type
object- additional properties
forbidden
colorrequiredcolorThis is not a new shape. It reuses color from the appearance module. Open that definition for the fields you can write.
widthrequiredsizeThis is not a new shape. It reuses size from the common module. Open that definition for the fields you can write.
style"solid" | "dashed" | "dotted"Pick one of the 3 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"solid""dashed""dotted"
anyOf 6typographyThis is not a new shape. It reuses typography from the appearance module. Open that definition for the fields you can write.
anyOf 7gradientThis is not a new shape. It reuses gradient from the appearance module. Open that definition for the fields you can write.
anyOf 8shadowThis is not a new shape. It reuses shadow from the appearance module. Open that definition for the fields you can write.
anyOf 9colorThis is not a new shape. It reuses color from the appearance module. Open that definition for the fields you can write.
anyOf 10springThis is not a new shape. It reuses spring from the motion module. Open that definition for the fields you can write.
anyOf 1-You must include value.
anyOf 2-You must include $value.