From e30035cec5b30dc97b231003ebf0e6ecbc5ff3b1 Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Wed, 30 Apr 2025 11:37:29 +0100 Subject: [PATCH] feat(templates): add Vite Shadcn starter template Introduce a new starter template for Vite with shadcn/ui integration. The template includes React, TypeScript, and Tailwind, and is added to the STARTER_TEMPLATES list. Additionally, update the styling in StarterTemplates component to better accommodate the new template and add the shadcn.svg icon. --- app/components/chat/StarterTemplates.tsx | 2 +- app/utils/constants.ts | 8 ++++++++ icons/shadcn.svg | 21 +++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 icons/shadcn.svg diff --git a/app/components/chat/StarterTemplates.tsx b/app/components/chat/StarterTemplates.tsx index 0f46a603..20b666e3 100644 --- a/app/components/chat/StarterTemplates.tsx +++ b/app/components/chat/StarterTemplates.tsx @@ -25,7 +25,7 @@ const StarterTemplates: React.FC = () => {
or start a blank app with your favorite stack
-
+
{STARTER_TEMPLATES.map((template) => ( ))} diff --git a/app/utils/constants.ts b/app/utils/constants.ts index 4d955d75..df610404 100644 --- a/app/utils/constants.ts +++ b/app/utils/constants.ts @@ -49,6 +49,14 @@ export const STARTER_TEMPLATES: Template[] = [ tags: ['nextjs', 'react', 'typescript', 'shadcn', 'tailwind'], icon: 'i-bolt:nextjs', }, + { + name: 'Vite Shadcn', + label: 'Vite with shadcn/ui', + description: 'Vite starter fullstack template integrated with shadcn/ui components and styling system', + githubRepo: 'xKevIsDev/vite-shadcn', + tags: ['vite', 'react', 'typescript', 'shadcn', 'tailwind'], + icon: 'i-bolt:shadcn', + }, { name: 'Qwik Typescript', label: 'Qwik TypeScript', diff --git a/icons/shadcn.svg b/icons/shadcn.svg new file mode 100644 index 00000000..be836c9e --- /dev/null +++ b/icons/shadcn.svg @@ -0,0 +1,21 @@ + + + + + + + + + + \ No newline at end of file