mirror of
https://github.com/huntabyte/shadcn-svelte.git
synced 2026-09-14 19:33:46 +08:00
125 lines
3.1 KiB
JSON
125 lines
3.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"description": "DEPRECATED IN TAILWIND v4! The style for your components. This cannot be changed after initialization.",
|
|
"type": "string"
|
|
},
|
|
"tailwind": {
|
|
"type": "object",
|
|
"properties": {
|
|
"css": {
|
|
"type": "string",
|
|
"description": "Path to the CSS file that imports Tailwind CSS into your project."
|
|
},
|
|
"baseColor": {
|
|
"type": "string",
|
|
"description": "Used to generate the default color palette for your components. This cannot be changed after initialization."
|
|
},
|
|
"config": {
|
|
"description": "DEPRECATED IN TAILWIND v4! The path to your `tailwind.config.[js|ts]` file.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"css",
|
|
"baseColor"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"aliases": {
|
|
"type": "object",
|
|
"properties": {
|
|
"components": {
|
|
"type": "string",
|
|
"description": "Import alias for your components."
|
|
},
|
|
"utils": {
|
|
"type": "string",
|
|
"description": "Import alias for your utility functions."
|
|
},
|
|
"ui": {
|
|
"description": "Import alias for your UI components. Defaults to `$lib/components/ui`.",
|
|
"type": "string"
|
|
},
|
|
"hooks": {
|
|
"description": "Import alias for your hooks. Defaults to `$lib/hooks`.",
|
|
"type": "string"
|
|
},
|
|
"lib": {
|
|
"description": "Import alias for your library, which is typically where you store your components, utils, hooks, etc. Defaults to `$lib`.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"components",
|
|
"utils"
|
|
],
|
|
"additionalProperties": false,
|
|
"description": "The CLI uses these values and the `alias` config from your `svelte.config.js` file to place generated components in the correct location."
|
|
},
|
|
"registry": {
|
|
"description": "The registry URL tells the CLI where to fetch the shadcn-svelte components/registry from. You can pin this to a specific preview release or your own fork of the registry.",
|
|
"type": "string"
|
|
},
|
|
"typescript": {
|
|
"description": "Used to determine if Typescript is used for this project. When set to `false`, `.js` files will be installed instead. Defaults to `true`.",
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"config": {
|
|
"type": "string",
|
|
"description": "Path to the tsconfig/jsconfig file."
|
|
}
|
|
},
|
|
"required": [
|
|
"config"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
},
|
|
"iconLibrary": {
|
|
"description": "The icon library to use for your components.",
|
|
"type": "string",
|
|
"enum": [
|
|
"lucide",
|
|
"tabler",
|
|
"hugeicons",
|
|
"phosphor",
|
|
"remixicon"
|
|
]
|
|
},
|
|
"menuColor": {
|
|
"description": "The color scheme for menus.",
|
|
"type": "string",
|
|
"enum": [
|
|
"default",
|
|
"inverted",
|
|
"default-translucent",
|
|
"inverted-translucent"
|
|
]
|
|
},
|
|
"menuAccent": {
|
|
"description": "The accent style for menus.",
|
|
"type": "string",
|
|
"enum": [
|
|
"subtle",
|
|
"bold"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"tailwind",
|
|
"aliases"
|
|
],
|
|
"additionalProperties": false
|
|
} |