kira-kit 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +132 -43
  2. package/dist/index.mjs +2472 -0
  3. package/package.json +38 -17
  4. package/templates/monorepo/components.json +23 -0
  5. package/templates/monorepo/package.json +13 -0
  6. package/templates/monorepo/packages/app/index.html +13 -0
  7. package/templates/monorepo/packages/app/package.json +27 -0
  8. package/templates/monorepo/packages/app/src/App.tsx +21 -0
  9. package/templates/monorepo/packages/app/src/index.css +3 -0
  10. package/templates/monorepo/packages/app/src/main.tsx +10 -0
  11. package/templates/monorepo/packages/app/tsconfig.json +8 -0
  12. package/templates/monorepo/packages/app/vite.config.ts +10 -0
  13. package/templates/monorepo/packages/ui/package.json +32 -0
  14. package/templates/monorepo/packages/ui/src/components/ui/welcome.tsx +52 -0
  15. package/templates/monorepo/packages/ui/src/index.css +123 -0
  16. package/templates/monorepo/packages/ui/src/index.ts +3 -0
  17. package/templates/monorepo/packages/ui/src/lib/utils.ts +1 -0
  18. package/templates/monorepo/packages/ui/tsconfig.json +7 -0
  19. package/templates/monorepo/tsconfig.json +23 -0
  20. package/templates/next/app/globals.css +124 -0
  21. package/templates/next/app/layout.tsx +18 -0
  22. package/templates/next/app/page.tsx +9 -0
  23. package/templates/next/components/ui/welcome.tsx +62 -0
  24. package/templates/next/components.json +23 -0
  25. package/templates/next/lib/utils.ts +1 -0
  26. package/templates/next/next-env.d.ts +2 -0
  27. package/templates/next/next.config.ts +5 -0
  28. package/templates/next/package.json +28 -0
  29. package/templates/next/postcss.config.mjs +7 -0
  30. package/templates/next/tsconfig.json +24 -0
  31. package/templates/tanstack-start/README.md +16 -0
  32. package/templates/tanstack-start/components.json +23 -0
  33. package/templates/tanstack-start/package.json +30 -0
  34. package/templates/tanstack-start/src/components/ui/welcome.tsx +52 -0
  35. package/templates/tanstack-start/src/index.css +123 -0
  36. package/templates/tanstack-start/src/lib/utils.ts +1 -0
  37. package/templates/tanstack-start/src/router.tsx +15 -0
  38. package/templates/tanstack-start/src/routes/__root.tsx +41 -0
  39. package/templates/tanstack-start/src/routes/index.tsx +26 -0
  40. package/{tsconfig.json → templates/tanstack-start/tsconfig.json} +6 -7
  41. package/templates/tanstack-start/vite.config.ts +11 -0
  42. package/templates/vite/components.json +23 -0
  43. package/templates/vite/index.html +16 -0
  44. package/templates/vite/package.json +28 -0
  45. package/templates/vite/src/App.tsx +9 -0
  46. package/templates/vite/src/components/ui/welcome.tsx +60 -0
  47. package/templates/vite/src/index.css +124 -0
  48. package/templates/vite/src/lib/utils.ts +1 -0
  49. package/templates/vite/src/main.tsx +10 -0
  50. package/templates/vite/tsconfig.json +29 -0
  51. package/templates/vite/tsconfig.node.json +22 -0
  52. package/templates/vite/vite.config.ts +13 -0
  53. package/bin/kira-kit.js +0 -27329
  54. package/bun.lock +0 -247
  55. package/src/commands/add.ts +0 -146
  56. package/src/commands/build.ts +0 -212
  57. package/src/commands/init.ts +0 -164
  58. package/src/commands/list.ts +0 -31
  59. package/src/index.ts +0 -118
  60. package/src/lib/build-config.ts +0 -81
  61. package/src/lib/config.ts +0 -109
  62. package/src/lib/deps.ts +0 -135
  63. package/src/lib/file.ts +0 -64
  64. package/src/lib/logger.ts +0 -102
  65. package/src/lib/registry.ts +0 -81
  66. package/src/lib/templates.ts +0 -123
  67. package/src/lib/theme-generator.ts +0 -246
  68. package/src/prompts/base-color.ts +0 -20
  69. package/src/prompts/primary-color.ts +0 -23
  70. package/src/prompts/project-type.ts +0 -71
  71. package/src/types.ts +0 -61
@@ -0,0 +1,62 @@
1
+ "use client";
2
+
3
+ import type { ComponentPropsWithoutRef } from "react";
4
+ import { Button as ButtonPrimitive } from "@base-ui/react/button";
5
+ import { IconSparkles } from "@tabler/icons-react";
6
+ import { cva, type VariantProps } from "class-variance-authority";
7
+ import { cn } from "@/lib/utils";
8
+
9
+ export const welcomeVariants = cva(
10
+ "w-full max-w-lg rounded-xl border bg-card p-8 text-card-foreground shadow-sm",
11
+ {
12
+ variants: {
13
+ variant: {
14
+ default: "border-border",
15
+ accent: "border-primary/20 bg-primary/5",
16
+ },
17
+ },
18
+ defaultVariants: {
19
+ variant: "default",
20
+ },
21
+ },
22
+ );
23
+
24
+ type WelcomeProps = ComponentPropsWithoutRef<"section"> &
25
+ VariantProps<typeof welcomeVariants>;
26
+
27
+ export function Welcome({ className, variant, ...props }: WelcomeProps) {
28
+ return (
29
+ <section
30
+ data-slot="welcome"
31
+ className={cn(welcomeVariants({ variant }), className)}
32
+ {...props}
33
+ >
34
+ <div className="flex items-start gap-4">
35
+ <IconSparkles
36
+ aria-hidden="true"
37
+ className="size-10 shrink-0 rounded-lg bg-primary p-2 text-primary-foreground"
38
+ />
39
+ <div className="space-y-2">
40
+ <h1 className="text-2xl font-semibold tracking-tight">
41
+ Kira Kit is ready
42
+ </h1>
43
+ <p className="text-sm leading-6 text-muted-foreground">
44
+ Your project is configured for Base UI, Tailwind CSS, and the Kira
45
+ Kit registry.
46
+ </p>
47
+ </div>
48
+ </div>
49
+ <div className="mt-6 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
50
+ <code className="rounded-md bg-muted px-3 py-2 text-xs sm:text-sm">
51
+ shadcn add @kira-kit/button
52
+ </code>
53
+ <ButtonPrimitive
54
+ type="button"
55
+ className="inline-flex h-9 shrink-0 items-center justify-center rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"
56
+ >
57
+ Start building
58
+ </ButtonPrimitive>
59
+ </div>
60
+ </section>
61
+ );
62
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "base-nova",
4
+ "rsc": true,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "app/globals.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true
11
+ },
12
+ "aliases": {
13
+ "components": "@/components",
14
+ "utils": "@/lib/utils",
15
+ "ui": "@/components/ui",
16
+ "lib": "@/lib",
17
+ "hooks": "@/hooks"
18
+ },
19
+ "iconLibrary": "tabler",
20
+ "registries": {
21
+ "@kira-kit": "https://kira-kit.vercel.app/r/{name}.json"
22
+ }
23
+ }
@@ -0,0 +1 @@
1
+ export { cn } from "cn";
@@ -0,0 +1,2 @@
1
+ /// <reference types="next" />
2
+ /// <reference types="next/image-types/global" />
@@ -0,0 +1,5 @@
1
+ import type { NextConfig } from "next";
2
+
3
+ const nextConfig: NextConfig = {};
4
+
5
+ export default nextConfig;
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "kira-next-app",
3
+ "private": true,
4
+ "type": "module",
5
+ "scripts": {
6
+ "dev": "next dev",
7
+ "build": "next build",
8
+ "start": "next start"
9
+ },
10
+ "dependencies": {
11
+ "@base-ui/react": "^1.9.0",
12
+ "@tabler/icons-react": "^3.49.0",
13
+ "@tailwindcss/postcss": "^4.3.3",
14
+ "class-variance-authority": "^0.7.1",
15
+ "cn": "^0.5.2",
16
+ "next": "^15.5.0",
17
+ "react": "^19.3.1",
18
+ "react-dom": "^19.3.1",
19
+ "tailwindcss": "^4.3.3"
20
+ },
21
+ "devDependencies": {
22
+ "@types/node": "^22.0.0",
23
+ "@types/react": "^19.3.0",
24
+ "@types/react-dom": "^19.3.0",
25
+ "postcss": "^8.5.6",
26
+ "typescript": "~5.9.3"
27
+ }
28
+ }
@@ -0,0 +1,7 @@
1
+ const config = {
2
+ plugins: {
3
+ "@tailwindcss/postcss": {},
4
+ },
5
+ };
6
+
7
+ export default config;
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2017",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": false,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "preserve",
15
+ "incremental": true,
16
+ "plugins": [{ "name": "next" }],
17
+ "baseUrl": ".",
18
+ "paths": {
19
+ "@/*": ["./*"]
20
+ }
21
+ },
22
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
23
+ "exclude": ["node_modules"]
24
+ }
@@ -0,0 +1,16 @@
1
+ # Kira Kit + TanStack Start
2
+
3
+ ## Getting started
4
+
5
+ ```sh
6
+ npm install
7
+ npm run dev
8
+ ```
9
+
10
+ `vite dev` generates `src/routeTree.gen.ts` automatically. Do not create or edit that file manually; run the dev server before `npm run typecheck`.
11
+
12
+ Add Kira Kit components from the project root:
13
+
14
+ ```sh
15
+ npx shadcn@latest add @kira-kit/button
16
+ ```
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "base-nova",
4
+ "rsc": false,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "src/index.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true
11
+ },
12
+ "iconLibrary": "tabler",
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/utils",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/hooks"
19
+ },
20
+ "registries": {
21
+ "@kira-kit": "https://kira-kit.vercel.app/r/{name}.json"
22
+ }
23
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "kira-kit-tanstack-start",
3
+ "private": true,
4
+ "type": "module",
5
+ "scripts": {
6
+ "dev": "vite dev",
7
+ "build": "vite build",
8
+ "typecheck": "tsc --noEmit"
9
+ },
10
+ "dependencies": {
11
+ "@base-ui/react": "^1.9.0",
12
+ "@tabler/icons-react": "^3.49.0",
13
+ "@tailwindcss/vite": "^4.3.3",
14
+ "@tanstack/react-router": "^1.170.46",
15
+ "@tanstack/react-start": "^1.169.5",
16
+ "class-variance-authority": "^0.7.1",
17
+ "cn": "^0.5.2",
18
+ "react": "^19.3.1",
19
+ "react-dom": "^19.3.1",
20
+ "tailwindcss": "^4.3.3"
21
+ },
22
+ "devDependencies": {
23
+ "@types/node": "^26.6.5",
24
+ "@types/react": "^19.3.0",
25
+ "@types/react-dom": "^19.3.0",
26
+ "@vitejs/plugin-react": "^6.1.2",
27
+ "typescript": "~5.9.3",
28
+ "vite": "^8.3.5"
29
+ }
30
+ }
@@ -0,0 +1,52 @@
1
+ import * as React from "react";
2
+ import { Button as ButtonPrimitive } from "@base-ui/react/button";
3
+ import { IconSparkles } from "@tabler/icons-react";
4
+ import { cva, type VariantProps } from "class-variance-authority";
5
+ import { cn } from "@/lib/utils";
6
+
7
+ const welcomeVariants = cva(
8
+ "inline-flex items-center justify-center gap-2 rounded-lg border text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4",
9
+ {
10
+ variants: {
11
+ variant: {
12
+ default:
13
+ "border-transparent bg-primary text-primary-foreground hover:bg-primary/90",
14
+ outline:
15
+ "border-border bg-background hover:bg-accent hover:text-accent-foreground",
16
+ },
17
+ size: {
18
+ sm: "h-8 px-3 text-xs",
19
+ default: "h-9 px-4",
20
+ lg: "h-10 px-5",
21
+ },
22
+ },
23
+ defaultVariants: {
24
+ variant: "default",
25
+ size: "default",
26
+ },
27
+ },
28
+ );
29
+
30
+ type WelcomeProps = Omit<React.ComponentPropsWithoutRef<"button">, "size"> &
31
+ VariantProps<typeof welcomeVariants>;
32
+
33
+ export function Welcome({
34
+ children = "Start building",
35
+ className,
36
+ variant,
37
+ size,
38
+ ...props
39
+ }: WelcomeProps) {
40
+ return (
41
+ <ButtonPrimitive
42
+ data-slot="welcome"
43
+ className={cn(welcomeVariants({ variant, size }), className)}
44
+ {...props}
45
+ >
46
+ <IconSparkles aria-hidden="true" />
47
+ {children}
48
+ </ButtonPrimitive>
49
+ );
50
+ }
51
+
52
+ export { welcomeVariants };
@@ -0,0 +1,123 @@
1
+ @import "tailwindcss";
2
+
3
+ @custom-variant dark (&:is(.dark *));
4
+
5
+ @theme inline {
6
+ --color-background: var(--background);
7
+ --color-foreground: var(--foreground);
8
+ --color-card: var(--card);
9
+ --color-card-foreground: var(--card-foreground);
10
+ --color-popover: var(--popover);
11
+ --color-popover-foreground: var(--popover-foreground);
12
+ --color-primary: var(--primary);
13
+ --color-primary-foreground: var(--primary-foreground);
14
+ --color-secondary: var(--secondary);
15
+ --color-secondary-foreground: var(--secondary-foreground);
16
+ --color-muted: var(--muted);
17
+ --color-muted-foreground: var(--muted-foreground);
18
+ --color-accent: var(--accent);
19
+ --color-accent-foreground: var(--accent-foreground);
20
+ --color-destructive: var(--destructive);
21
+ --color-destructive-foreground: var(--destructive-foreground);
22
+ --color-border: var(--border);
23
+ --color-input: var(--input);
24
+ --color-ring: var(--ring);
25
+ --color-chart-1: var(--chart-1);
26
+ --color-chart-2: var(--chart-2);
27
+ --color-chart-3: var(--chart-3);
28
+ --color-chart-4: var(--chart-4);
29
+ --color-chart-5: var(--chart-5);
30
+ --color-sidebar: var(--sidebar);
31
+ --color-sidebar-foreground: var(--sidebar-foreground);
32
+ --color-sidebar-primary: var(--sidebar-primary);
33
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
34
+ --color-sidebar-accent: var(--sidebar-accent);
35
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
36
+ --color-sidebar-border: var(--sidebar-border);
37
+ --color-sidebar-ring: var(--sidebar-ring);
38
+ --radius-sm: calc(var(--radius) - 4px);
39
+ --radius-md: calc(var(--radius) - 2px);
40
+ --radius-lg: var(--radius);
41
+ --radius-xl: calc(var(--radius) + 4px);
42
+ }
43
+
44
+ :root {
45
+ --radius: 0.625rem;
46
+ --background: oklch(1 0 0);
47
+ --foreground: oklch(0.145 0 0);
48
+ --card: oklch(1 0 0);
49
+ --card-foreground: oklch(0.145 0 0);
50
+ --popover: oklch(1 0 0);
51
+ --popover-foreground: oklch(0.145 0 0);
52
+ --primary: oklch(0.205 0 0);
53
+ --primary-foreground: oklch(0.985 0 0);
54
+ --secondary: oklch(0.97 0 0);
55
+ --secondary-foreground: oklch(0.205 0 0);
56
+ --muted: oklch(0.97 0 0);
57
+ --muted-foreground: oklch(0.556 0 0);
58
+ --accent: oklch(0.97 0 0);
59
+ --accent-foreground: oklch(0.205 0 0);
60
+ --destructive: oklch(0.577 0.245 27.325);
61
+ --destructive-foreground: oklch(0.985 0 0);
62
+ --border: oklch(0.922 0 0);
63
+ --input: oklch(0.922 0 0);
64
+ --ring: oklch(0.708 0 0);
65
+ --chart-1: oklch(0.646 0.222 41.116);
66
+ --chart-2: oklch(0.6 0.118 184.704);
67
+ --chart-3: oklch(0.398 0.07 227.392);
68
+ --chart-4: oklch(0.828 0.189 84.429);
69
+ --chart-5: oklch(0.769 0.188 70.08);
70
+ --sidebar: oklch(0.985 0 0);
71
+ --sidebar-foreground: oklch(0.145 0 0);
72
+ --sidebar-primary: oklch(0.205 0 0);
73
+ --sidebar-primary-foreground: oklch(0.985 0 0);
74
+ --sidebar-accent: oklch(0.97 0 0);
75
+ --sidebar-accent-foreground: oklch(0.205 0 0);
76
+ --sidebar-border: oklch(0.922 0 0);
77
+ --sidebar-ring: oklch(0.708 0 0);
78
+ }
79
+
80
+ .dark {
81
+ --background: oklch(0.145 0 0);
82
+ --foreground: oklch(0.985 0 0);
83
+ --card: oklch(0.205 0 0);
84
+ --card-foreground: oklch(0.985 0 0);
85
+ --popover: oklch(0.205 0 0);
86
+ --popover-foreground: oklch(0.985 0 0);
87
+ --primary: oklch(0.922 0 0);
88
+ --primary-foreground: oklch(0.205 0 0);
89
+ --secondary: oklch(0.269 0 0);
90
+ --secondary-foreground: oklch(0.985 0 0);
91
+ --muted: oklch(0.269 0 0);
92
+ --muted-foreground: oklch(0.708 0 0);
93
+ --accent: oklch(0.269 0 0);
94
+ --accent-foreground: oklch(0.985 0 0);
95
+ --destructive: oklch(0.704 0.191 22.216);
96
+ --destructive-foreground: oklch(0.985 0 0);
97
+ --border: oklch(1 0 0 / 10%);
98
+ --input: oklch(1 0 0 / 15%);
99
+ --ring: oklch(0.556 0 0);
100
+ --chart-1: oklch(0.488 0.243 264.376);
101
+ --chart-2: oklch(0.696 0.17 162.48);
102
+ --chart-3: oklch(0.769 0.188 70.08);
103
+ --chart-4: oklch(0.627 0.265 303.9);
104
+ --chart-5: oklch(0.645 0.246 16.439);
105
+ --sidebar: oklch(0.205 0 0);
106
+ --sidebar-foreground: oklch(0.985 0 0);
107
+ --sidebar-primary: oklch(0.488 0.243 264.376);
108
+ --sidebar-primary-foreground: oklch(0.985 0 0);
109
+ --sidebar-accent: oklch(0.269 0 0);
110
+ --sidebar-accent-foreground: oklch(0.985 0 0);
111
+ --sidebar-border: oklch(1 0 0 / 10%);
112
+ --sidebar-ring: oklch(0.556 0 0);
113
+ }
114
+
115
+ @layer base {
116
+ * {
117
+ @apply border-border outline-ring/50;
118
+ }
119
+
120
+ body {
121
+ @apply bg-background text-foreground;
122
+ }
123
+ }
@@ -0,0 +1 @@
1
+ export { cn } from "cn";
@@ -0,0 +1,15 @@
1
+ import { createRouter } from "@tanstack/react-router";
2
+ import { routeTree } from "./routeTree.gen";
3
+
4
+ export function getRouter() {
5
+ return createRouter({
6
+ routeTree,
7
+ scrollRestoration: true,
8
+ });
9
+ }
10
+
11
+ declare module "@tanstack/react-router" {
12
+ interface Register {
13
+ router: ReturnType<typeof getRouter>;
14
+ }
15
+ }
@@ -0,0 +1,41 @@
1
+ import type { ReactNode } from "react";
2
+ import {
3
+ createRootRoute,
4
+ HeadContent,
5
+ Outlet,
6
+ Scripts,
7
+ } from "@tanstack/react-router";
8
+ import "@/index.css";
9
+
10
+ export const Route = createRootRoute({
11
+ head: () => ({
12
+ meta: [
13
+ { charSet: "utf-8" },
14
+ { name: "viewport", content: "width=device-width, initial-scale=1" },
15
+ { title: "Kira Kit + TanStack Start" },
16
+ ],
17
+ }),
18
+ component: RootComponent,
19
+ });
20
+
21
+ function RootComponent() {
22
+ return (
23
+ <RootDocument>
24
+ <Outlet />
25
+ </RootDocument>
26
+ );
27
+ }
28
+
29
+ function RootDocument({ children }: Readonly<{ children: ReactNode }>) {
30
+ return (
31
+ <html lang="en">
32
+ <head>
33
+ <HeadContent />
34
+ </head>
35
+ <body className="bg-background text-foreground antialiased">
36
+ {children}
37
+ <Scripts />
38
+ </body>
39
+ </html>
40
+ );
41
+ }
@@ -0,0 +1,26 @@
1
+ import { createFileRoute } from "@tanstack/react-router";
2
+ import { Welcome } from "@/components/ui/welcome";
3
+
4
+ export const Route = createFileRoute("/")({
5
+ component: Home,
6
+ });
7
+
8
+ function Home() {
9
+ return (
10
+ <main className="mx-auto flex min-h-svh max-w-3xl flex-col items-center justify-center gap-6 px-6 text-center">
11
+ <div className="space-y-3">
12
+ <p className="text-sm font-medium text-muted-foreground">
13
+ TanStack Start + Kira Kit
14
+ </p>
15
+ <h1 className="text-4xl font-semibold tracking-tight sm:text-5xl">
16
+ Build your next interface.
17
+ </h1>
18
+ <p className="text-balance text-muted-foreground">
19
+ A minimal React 19 project with Base UI primitives and Tailwind CSS
20
+ v4, ready for the Kira Kit registry.
21
+ </p>
22
+ </div>
23
+ <Welcome>Start building</Welcome>
24
+ </main>
25
+ );
26
+ }
@@ -1,22 +1,21 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES2022",
4
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
4
5
  "module": "ESNext",
5
- "moduleResolution": "bundler",
6
- "lib": ["ES2022"],
6
+ "moduleResolution": "Bundler",
7
+ "jsx": "react-jsx",
7
8
  "strict": true,
8
- "skipLibCheck": true,
9
+ "noEmit": true,
9
10
  "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
+ "skipLibCheck": true,
12
13
  "resolveJsonModule": true,
13
14
  "isolatedModules": true,
14
- "noEmit": true,
15
15
  "baseUrl": ".",
16
16
  "paths": {
17
17
  "@/*": ["./src/*"]
18
18
  }
19
19
  },
20
- "include": ["src/**/*"],
21
- "exclude": ["node_modules"]
20
+ "include": ["src", "vite.config.ts"]
22
21
  }
@@ -0,0 +1,11 @@
1
+ import tailwindcss from "@tailwindcss/vite";
2
+ import { tanstackStart as tanstackStartVite } from "@tanstack/react-start/plugin/vite";
3
+ import viteReact from "@vitejs/plugin-react";
4
+ import { defineConfig } from "vite";
5
+
6
+ export default defineConfig({
7
+ resolve: {
8
+ tsconfigPaths: true,
9
+ },
10
+ plugins: [tailwindcss(), tanstackStartVite(), viteReact()],
11
+ });
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "base-nova",
4
+ "rsc": false,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "src/index.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true
11
+ },
12
+ "aliases": {
13
+ "components": "@/components",
14
+ "utils": "@/lib/utils",
15
+ "ui": "@/components/ui",
16
+ "lib": "@/lib",
17
+ "hooks": "@/hooks"
18
+ },
19
+ "iconLibrary": "tabler",
20
+ "registries": {
21
+ "@kira-kit": "https://kira-kit.vercel.app/r/{name}.json"
22
+ }
23
+ }
@@ -0,0 +1,16 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta
7
+ name="description"
8
+ content="A React app ready for Kira Kit components"
9
+ />
10
+ <title>Kira Kit App</title>
11
+ </head>
12
+ <body>
13
+ <div id="root"></div>
14
+ <script type="module" src="/src/main.tsx"></script>
15
+ </body>
16
+ </html>
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "kira-vite-app",
3
+ "private": true,
4
+ "type": "module",
5
+ "scripts": {
6
+ "dev": "vite",
7
+ "build": "tsc -b && vite build",
8
+ "preview": "vite preview"
9
+ },
10
+ "dependencies": {
11
+ "@base-ui/react": "^1.9.0",
12
+ "@tabler/icons-react": "^3.49.0",
13
+ "@tailwindcss/vite": "^4.3.3",
14
+ "class-variance-authority": "^0.7.1",
15
+ "cn": "^0.5.2",
16
+ "react": "^19.3.1",
17
+ "react-dom": "^19.3.1",
18
+ "tailwindcss": "^4.3.3"
19
+ },
20
+ "devDependencies": {
21
+ "@types/node": "^22.0.0",
22
+ "@types/react": "^19.3.0",
23
+ "@types/react-dom": "^19.3.0",
24
+ "@vitejs/plugin-react": "^6.1.2",
25
+ "typescript": "~5.9.3",
26
+ "vite": "^8.3.5"
27
+ }
28
+ }
@@ -0,0 +1,9 @@
1
+ import { Welcome } from "@/components/ui/welcome";
2
+
3
+ export default function App() {
4
+ return (
5
+ <main className="flex min-h-screen items-center justify-center bg-background p-6">
6
+ <Welcome />
7
+ </main>
8
+ );
9
+ }