Files
shadcn-ui/apps/v4/public/schema.json
Mert f4e0f671de fix: add missing options to schema.json (#9051)
* Add new style options to schema.json

The schema at ui.shadcn.com/schema.json is missing newly introduced style variants used by ui.shadcn.com/create.

This causes JSON schema validation errors when generating configs with the new styles.

This updates the style enum to include all currently supported style combinations.

* Add missing menuColor and menuAccent options to schema.json
2025-12-14 02:18:41 +04:00

107 lines
2.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"style": {
"type": "string",
"enum": ["default", "new-york", "radix-vega", "radix-nova", "radix-maia", "radix-lyra", "radix-mira", "base-vega", "base-nova", "base-maia", "base-lyra", "base-mira"]
},
"tailwind": {
"type": "object",
"properties": {
"config": {
"type": "string"
},
"css": {
"type": "string"
},
"baseColor": {
"type": "string"
},
"cssVariables": {
"type": "boolean"
},
"prefix": {
"type": "string"
}
},
"required": ["config", "css", "baseColor", "cssVariables"]
},
"rsc": {
"type": "boolean"
},
"tsx": {
"type": "boolean"
},
"iconLibrary": {
"type": "string"
},
"aliases": {
"type": "object",
"properties": {
"utils": {
"type": "string"
},
"components": {
"type": "string"
},
"ui": {
"type": "string"
},
"lib": {
"type": "string"
},
"hooks": {
"type": "string"
}
},
"required": ["utils", "components"]
},
"menuColor": {
"type": "string",
"enum": ["default", "inverted"]
},
"menuAccent": {
"type": "string",
"enum": ["subtle", "bold"]
},
"registries": {
"type": "object",
"patternProperties": {
"^@": {
"oneOf": [
{
"type": "string",
"pattern": "\\{name\\}"
},
{
"type": "object",
"properties": {
"url": {
"type": "string",
"pattern": "\\{name\\}"
},
"params": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": ["url"]
}
]
}
},
"additionalProperties": false
}
},
"required": ["style", "tailwind", "rsc", "aliases"]
}