diff --git a/apps/www/content/docs/components/cli.mdx b/apps/www/content/docs/components/cli.mdx index 525c2f2ff2..c6e09b0a10 100644 --- a/apps/www/content/docs/components/cli.mdx +++ b/apps/www/content/docs/components/cli.mdx @@ -3,7 +3,11 @@ title: CLI description: Use the CLI to add components to your project. --- - + +WIP – We're migrating to npx shadcn. + + +{/* **Note:** We are now using the `shadcn` CLI. @@ -172,4 +176,4 @@ Options: -y, --yes skip confirmation prompt. (default: false) -c, --cwd the working directory. defaults to the current directory. -h, --help display help for command -``` +``` */} diff --git a/apps/www/content/docs/components/components-json.mdx b/apps/www/content/docs/components/components-json.mdx index 3ce44a6090..21f4ebc63a 100644 --- a/apps/www/content/docs/components/components-json.mdx +++ b/apps/www/content/docs/components/components-json.mdx @@ -1,9 +1,13 @@ --- -title: plate-components.json +title: components.json description: Configuration for your project. --- -The `plate-components.json` file holds configuration for your project. + +WIP – We're migrating to shadcn's components.json. + + +{/* The `plate-components.json` file holds configuration for your project. We use it to understand how your project is set up and how to generate components customized for your project. @@ -163,4 +167,4 @@ The CLI will use this value to determine where to place your UI components. Use "plate-ui": "@/components/plate-ui" } } -``` \ No newline at end of file +``` */} \ No newline at end of file diff --git a/apps/www/content/docs/components/installation/next.mdx b/apps/www/content/docs/components/installation/next.mdx index 0a8c30f5c9..6e21c01a7e 100644 --- a/apps/www/content/docs/components/installation/next.mdx +++ b/apps/www/content/docs/components/installation/next.mdx @@ -16,7 +16,7 @@ A Lucide. You can use any You can now start adding components to your project. ```bash -npx shadcn@latest add button +npx @udecode/plate-ui@latest add button ``` The command above will add the `Button` component to your project. You can then import it like this: diff --git a/apps/www/content/docs/components/theming.mdx b/apps/www/content/docs/components/theming.mdx index 55a1e9505f..6ff536c956 100644 --- a/apps/www/content/docs/components/theming.mdx +++ b/apps/www/content/docs/components/theming.mdx @@ -3,7 +3,11 @@ title: Theming description: Using CSS Variables or Tailwind CSS for theming. --- -You can choose between using CSS variables or Tailwind CSS utility classes for theming. + +WIP – We're migrating to npx shadcn. + + +{/* You can choose between using CSS variables or Tailwind CSS utility classes for theming. ## Utility classes @@ -185,4 +189,4 @@ You can now use the `warning` utility class in your components. We recommend using HSL colors for theming but you can also use other color formats if you prefer. -See the Tailwind CSS documentation for more information on using `rgb`, `rgba` or `hsl` colors. +See the Tailwind CSS documentation for more information on using `rgb`, `rgba` or `hsl` colors. */} diff --git a/apps/www/public/r/styles/default/index.json b/apps/www/public/r/styles/default/index.json index d13e4c8203..80a0be635e 100644 --- a/apps/www/public/r/styles/default/index.json +++ b/apps/www/public/r/styles/default/index.json @@ -4,11 +4,10 @@ "dependencies": [ "tailwindcss-animate", "class-variance-authority", - "lucide-react" - ], - "registryDependencies": [ - "utils" + "lucide-react", + "@udecode/cn" ], + "registryDependencies": [], "tailwind": { "config": { "plugins": [ diff --git a/apps/www/scripts/build-registry.mts b/apps/www/scripts/build-registry.mts index 6febe8205d..25e60a44fe 100644 --- a/apps/www/scripts/build-registry.mts +++ b/apps/www/scripts/build-registry.mts @@ -434,6 +434,7 @@ async function buildStylesIndex() { "tailwindcss-animate", "class-variance-authority", "lucide-react", + "@udecode/cn" ] // TODO: Remove this when we migrate to lucide-react. @@ -445,7 +446,8 @@ async function buildStylesIndex() { name: style.name, type: "registry:style", dependencies, - registryDependencies: ["utils"], + // registryDependencies: ["utils"], + registryDependencies: [], tailwind: { config: { plugins: [`require("tailwindcss-animate")`],