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.
- package/README.md +132 -43
- package/dist/index.mjs +2472 -0
- package/package.json +38 -17
- package/templates/monorepo/components.json +23 -0
- package/templates/monorepo/package.json +13 -0
- package/templates/monorepo/packages/app/index.html +13 -0
- package/templates/monorepo/packages/app/package.json +27 -0
- package/templates/monorepo/packages/app/src/App.tsx +21 -0
- package/templates/monorepo/packages/app/src/index.css +3 -0
- package/templates/monorepo/packages/app/src/main.tsx +10 -0
- package/templates/monorepo/packages/app/tsconfig.json +8 -0
- package/templates/monorepo/packages/app/vite.config.ts +10 -0
- package/templates/monorepo/packages/ui/package.json +32 -0
- package/templates/monorepo/packages/ui/src/components/ui/welcome.tsx +52 -0
- package/templates/monorepo/packages/ui/src/index.css +123 -0
- package/templates/monorepo/packages/ui/src/index.ts +3 -0
- package/templates/monorepo/packages/ui/src/lib/utils.ts +1 -0
- package/templates/monorepo/packages/ui/tsconfig.json +7 -0
- package/templates/monorepo/tsconfig.json +23 -0
- package/templates/next/app/globals.css +124 -0
- package/templates/next/app/layout.tsx +18 -0
- package/templates/next/app/page.tsx +9 -0
- package/templates/next/components/ui/welcome.tsx +62 -0
- package/templates/next/components.json +23 -0
- package/templates/next/lib/utils.ts +1 -0
- package/templates/next/next-env.d.ts +2 -0
- package/templates/next/next.config.ts +5 -0
- package/templates/next/package.json +28 -0
- package/templates/next/postcss.config.mjs +7 -0
- package/templates/next/tsconfig.json +24 -0
- package/templates/tanstack-start/README.md +16 -0
- package/templates/tanstack-start/components.json +23 -0
- package/templates/tanstack-start/package.json +30 -0
- package/templates/tanstack-start/src/components/ui/welcome.tsx +52 -0
- package/templates/tanstack-start/src/index.css +123 -0
- package/templates/tanstack-start/src/lib/utils.ts +1 -0
- package/templates/tanstack-start/src/router.tsx +15 -0
- package/templates/tanstack-start/src/routes/__root.tsx +41 -0
- package/templates/tanstack-start/src/routes/index.tsx +26 -0
- package/{tsconfig.json → templates/tanstack-start/tsconfig.json} +6 -7
- package/templates/tanstack-start/vite.config.ts +11 -0
- package/templates/vite/components.json +23 -0
- package/templates/vite/index.html +16 -0
- package/templates/vite/package.json +28 -0
- package/templates/vite/src/App.tsx +9 -0
- package/templates/vite/src/components/ui/welcome.tsx +60 -0
- package/templates/vite/src/index.css +124 -0
- package/templates/vite/src/lib/utils.ts +1 -0
- package/templates/vite/src/main.tsx +10 -0
- package/templates/vite/tsconfig.json +29 -0
- package/templates/vite/tsconfig.node.json +22 -0
- package/templates/vite/vite.config.ts +13 -0
- package/bin/kira-kit.js +0 -27329
- package/bun.lock +0 -247
- package/src/commands/add.ts +0 -146
- package/src/commands/build.ts +0 -212
- package/src/commands/init.ts +0 -164
- package/src/commands/list.ts +0 -31
- package/src/index.ts +0 -118
- package/src/lib/build-config.ts +0 -81
- package/src/lib/config.ts +0 -109
- package/src/lib/deps.ts +0 -135
- package/src/lib/file.ts +0 -64
- package/src/lib/logger.ts +0 -102
- package/src/lib/registry.ts +0 -81
- package/src/lib/templates.ts +0 -123
- package/src/lib/theme-generator.ts +0 -246
- package/src/prompts/base-color.ts +0 -20
- package/src/prompts/primary-color.ts +0 -23
- package/src/prompts/project-type.ts +0 -71
- package/src/types.ts +0 -61
package/package.json
CHANGED
|
@@ -1,43 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kira-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"description": "CLI
|
|
7
|
+
"description": "CLI for Kira Kit — a shadcn-compatible registry of Base UI components, plus OKLCH theme generation and quality checks",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"bin": {
|
|
10
|
-
"kira-kit": "
|
|
10
|
+
"kira-kit": "dist/index.mjs"
|
|
11
11
|
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=22"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"templates"
|
|
18
|
+
],
|
|
12
19
|
"scripts": {
|
|
13
|
-
"build": "
|
|
14
|
-
"dev": "
|
|
15
|
-
"start": "
|
|
20
|
+
"build": "tsdown",
|
|
21
|
+
"dev": "tsdown --watch",
|
|
22
|
+
"start": "node dist/index.mjs",
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"test:watch": "vitest",
|
|
16
25
|
"typecheck": "tsc --noEmit",
|
|
17
|
-
"lint": "
|
|
26
|
+
"lint": "oxlint src test --config ../../oxlint.config.ts --ignore-pattern \"test/fixtures/**\"",
|
|
27
|
+
"changeset": "changeset",
|
|
28
|
+
"version": "changeset version",
|
|
29
|
+
"release": "changeset publish"
|
|
18
30
|
},
|
|
19
31
|
"keywords": [
|
|
20
32
|
"kira-kit",
|
|
33
|
+
"shadcn",
|
|
21
34
|
"ui-components",
|
|
35
|
+
"base-ui",
|
|
36
|
+
"registry",
|
|
37
|
+
"oklch",
|
|
38
|
+
"theme",
|
|
22
39
|
"cli",
|
|
23
40
|
"react",
|
|
24
41
|
"tailwind"
|
|
25
42
|
],
|
|
26
|
-
"author": "",
|
|
43
|
+
"author": "Kiranaide",
|
|
27
44
|
"license": "MIT",
|
|
28
45
|
"dependencies": {
|
|
29
|
-
"
|
|
46
|
+
"@clack/prompts": "^1.9.0",
|
|
47
|
+
"apca-w3": "^0.1.9",
|
|
48
|
+
"commander": "^15.1.0",
|
|
30
49
|
"culori": "^4.0.2",
|
|
31
|
-
"
|
|
32
|
-
"picocolors": "^1.
|
|
33
|
-
"
|
|
50
|
+
"package-manager-detector": "^1.9.0",
|
|
51
|
+
"picocolors": "^1.1.1",
|
|
52
|
+
"shadcn": "4.22.1",
|
|
53
|
+
"typescript": "^5.9.0",
|
|
54
|
+
"zod": "^4.6.7"
|
|
34
55
|
},
|
|
35
56
|
"devDependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
57
|
+
"@changesets/changelog-github": "^0.5.1",
|
|
58
|
+
"@changesets/cli": "^3.0.3",
|
|
59
|
+
"@types/culori": "^4.0.1",
|
|
38
60
|
"@types/node": "^22.0.0",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"typescript": "^5.9.0"
|
|
61
|
+
"tsdown": "^0.23.7",
|
|
62
|
+
"vitest": "^5.1.0"
|
|
42
63
|
}
|
|
43
64
|
}
|
|
@@ -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": "packages/ui/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,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "kira-kit-monorepo",
|
|
3
|
+
"private": true,
|
|
4
|
+
"type": "module",
|
|
5
|
+
"workspaces": [
|
|
6
|
+
"packages/*"
|
|
7
|
+
],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "npm run dev --workspace @kira/app",
|
|
10
|
+
"build": "npm run build --workspace @kira/app",
|
|
11
|
+
"typecheck": "npm run typecheck --workspaces --if-present"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 name="description" content="A Vite app powered by Kira Kit" />
|
|
7
|
+
<title>Kira Kit Monorepo</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kira/app",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "tsc --noEmit && vite build",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"typecheck": "tsc --noEmit"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@kira/ui": "file:../ui",
|
|
14
|
+
"react": "^19.3.1",
|
|
15
|
+
"react-dom": "^19.3.1"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
19
|
+
"@types/node": "^26.6.5",
|
|
20
|
+
"@types/react": "^19.3.0",
|
|
21
|
+
"@types/react-dom": "^19.3.0",
|
|
22
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
23
|
+
"tailwindcss": "^4.3.3",
|
|
24
|
+
"typescript": "~5.9.3",
|
|
25
|
+
"vite": "^8.3.5"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Welcome } from "@kira/ui";
|
|
2
|
+
|
|
3
|
+
export function App() {
|
|
4
|
+
return (
|
|
5
|
+
<main className="mx-auto flex min-h-svh max-w-3xl flex-col items-center justify-center gap-6 px-6 text-center">
|
|
6
|
+
<div className="space-y-3">
|
|
7
|
+
<p className="text-sm font-medium text-muted-foreground">
|
|
8
|
+
Vite + @kira/ui
|
|
9
|
+
</p>
|
|
10
|
+
<h1 className="text-4xl font-semibold tracking-tight sm:text-5xl">
|
|
11
|
+
One component library, ready to grow.
|
|
12
|
+
</h1>
|
|
13
|
+
<p className="text-balance text-muted-foreground">
|
|
14
|
+
Add components from the Kira Kit registry and share them across every
|
|
15
|
+
app in your workspace.
|
|
16
|
+
</p>
|
|
17
|
+
</div>
|
|
18
|
+
<Welcome>Start building</Welcome>
|
|
19
|
+
</main>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kira/ui",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.css"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./src/index.ts",
|
|
11
|
+
"./index.css": "./src/index.css",
|
|
12
|
+
"./components/*": "./src/components/*.tsx",
|
|
13
|
+
"./lib/*": "./src/lib/*.ts",
|
|
14
|
+
"./hooks/*": "./src/hooks/*.ts"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"typecheck": "tsc --noEmit"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@base-ui/react": "^1.9.0",
|
|
21
|
+
"@tabler/icons-react": "^3.49.0",
|
|
22
|
+
"class-variance-authority": "^0.7.1",
|
|
23
|
+
"cn": "^0.5.2"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^19.3.1"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/react": "^19.3.0",
|
|
30
|
+
"typescript": "~5.9.3"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -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,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "Bundler",
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"baseUrl": ".",
|
|
16
|
+
"paths": {
|
|
17
|
+
"@/*": ["./packages/ui/src/*"],
|
|
18
|
+
"@kira/ui": ["./packages/ui/src/index.ts"],
|
|
19
|
+
"@kira/ui/*": ["./packages/ui/src/*"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"include": []
|
|
23
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@custom-variant dark (&:is(.dark *));
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--radius: 0.625rem;
|
|
7
|
+
--background: oklch(1 0 0);
|
|
8
|
+
--foreground: oklch(0.145 0 0);
|
|
9
|
+
--card: oklch(1 0 0);
|
|
10
|
+
--card-foreground: oklch(0.145 0 0);
|
|
11
|
+
--popover: oklch(1 0 0);
|
|
12
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
13
|
+
--primary: oklch(0.205 0 0);
|
|
14
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
15
|
+
--secondary: oklch(0.97 0 0);
|
|
16
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
17
|
+
--muted: oklch(0.97 0 0);
|
|
18
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
19
|
+
--accent: oklch(0.97 0 0);
|
|
20
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
21
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
22
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
23
|
+
--border: oklch(0.922 0 0);
|
|
24
|
+
--input: oklch(0.922 0 0);
|
|
25
|
+
--ring: oklch(0.708 0 0);
|
|
26
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
27
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
28
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
29
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
30
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
31
|
+
--sidebar: oklch(0.985 0 0);
|
|
32
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
33
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
34
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
35
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
36
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
37
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
38
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dark {
|
|
42
|
+
--background: oklch(0.145 0 0);
|
|
43
|
+
--foreground: oklch(0.985 0 0);
|
|
44
|
+
--card: oklch(0.205 0 0);
|
|
45
|
+
--card-foreground: oklch(0.985 0 0);
|
|
46
|
+
--popover: oklch(0.205 0 0);
|
|
47
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
48
|
+
--primary: oklch(0.922 0 0);
|
|
49
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
50
|
+
--secondary: oklch(0.269 0 0);
|
|
51
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
52
|
+
--muted: oklch(0.269 0 0);
|
|
53
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
54
|
+
--accent: oklch(0.269 0 0);
|
|
55
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
56
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
57
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
58
|
+
--border: oklch(1 0 0 / 10%);
|
|
59
|
+
--input: oklch(1 0 0 / 15%);
|
|
60
|
+
--ring: oklch(0.556 0 0);
|
|
61
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
62
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
63
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
64
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
65
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
66
|
+
--sidebar: oklch(0.205 0 0);
|
|
67
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
68
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
69
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
70
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
71
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
72
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
73
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@theme inline {
|
|
77
|
+
--font-sans: ui-sans-serif, system-ui, sans-serif;
|
|
78
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
79
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
80
|
+
--radius-lg: var(--radius);
|
|
81
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
82
|
+
--color-background: var(--background);
|
|
83
|
+
--color-foreground: var(--foreground);
|
|
84
|
+
--color-card: var(--card);
|
|
85
|
+
--color-card-foreground: var(--card-foreground);
|
|
86
|
+
--color-popover: var(--popover);
|
|
87
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
88
|
+
--color-primary: var(--primary);
|
|
89
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
90
|
+
--color-secondary: var(--secondary);
|
|
91
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
92
|
+
--color-muted: var(--muted);
|
|
93
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
94
|
+
--color-accent: var(--accent);
|
|
95
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
96
|
+
--color-destructive: var(--destructive);
|
|
97
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
98
|
+
--color-border: var(--border);
|
|
99
|
+
--color-input: var(--input);
|
|
100
|
+
--color-ring: var(--ring);
|
|
101
|
+
--color-chart-1: var(--chart-1);
|
|
102
|
+
--color-chart-2: var(--chart-2);
|
|
103
|
+
--color-chart-3: var(--chart-3);
|
|
104
|
+
--color-chart-4: var(--chart-4);
|
|
105
|
+
--color-chart-5: var(--chart-5);
|
|
106
|
+
--color-sidebar: var(--sidebar);
|
|
107
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
108
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
109
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
110
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
111
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
112
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
113
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@layer base {
|
|
117
|
+
* {
|
|
118
|
+
@apply border-border outline-ring/50;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
body {
|
|
122
|
+
@apply bg-background font-sans text-foreground antialiased;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Metadata } from "next";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import "./globals.css";
|
|
4
|
+
|
|
5
|
+
export const metadata: Metadata = {
|
|
6
|
+
title: "Kira Kit App",
|
|
7
|
+
description: "A Next.js app ready for Kira Kit components",
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default function RootLayout({
|
|
11
|
+
children,
|
|
12
|
+
}: Readonly<{ children: ReactNode }>) {
|
|
13
|
+
return (
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<body>{children}</body>
|
|
16
|
+
</html>
|
|
17
|
+
);
|
|
18
|
+
}
|