shadcn-vue/apps/www/src/public/schema.json
Antoine Lethimonnier f05922dfd0
feat(cli): Add JSON schema (#256)
* Add schema

* Update schema.json
2024-01-10 10:15:02 +03:30

52 lines
1.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"style": {
"type": "string",
"enum": ["default", "new-york"]
},
"typescript": {
"type": "boolean",
"default": true
},
"tailwind": {
"type": "object",
"properties": {
"config": {
"type": "string"
},
"css": {
"type": "string"
},
"baseColor": {
"type": "string"
},
"cssVariables": {
"type": "boolean",
"default": true
}
},
"required": ["config", "css", "baseColor", "cssVariables"]
},
"framework": {
"type": "string",
"enum": ["nuxt", "vite", "laravel", "astro"],
"default": "vite"
},
"aliases": {
"type": "object",
"properties": {
"utils": {
"type": "string"
},
"components": {
"type": "string"
}
},
"required": ["utils", "components"]
}
},
"required": ["style", "tailwind", "aliases"]
}