create-rotor 0.3.2 → 0.3.4
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/dist/index.js +3 -1
- package/package.json +1 -1
- package/template/CLAUDE.md +10 -2
- package/template/app/globals.css +89 -26
- package/template/components.json +1 -0
- package/template/package.json +2 -0
package/dist/index.js
CHANGED
|
@@ -1162,7 +1162,9 @@ var MODULES = {
|
|
|
1162
1162
|
"class-variance-authority": "0.7.1",
|
|
1163
1163
|
clsx: "2.1.1",
|
|
1164
1164
|
"tailwind-merge": "3.5.0",
|
|
1165
|
-
"lucide-react": "0.577.0"
|
|
1165
|
+
"lucide-react": "0.577.0",
|
|
1166
|
+
shadcn: "4.0.8",
|
|
1167
|
+
"tw-animate-css": "1.4.0"
|
|
1166
1168
|
},
|
|
1167
1169
|
devDependencies: {},
|
|
1168
1170
|
envMarker: "shadcn"
|
package/package.json
CHANGED
package/template/CLAUDE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Commands
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
bun dev # Start dev server
|
|
6
|
+
bun dev # Start dev server (Turbopack)
|
|
7
7
|
bun build # Production build
|
|
8
8
|
bun start # Start production server
|
|
9
9
|
bun run check # Lint and format with Biome
|
|
@@ -14,7 +14,7 @@ bun run check # Lint and format with Biome
|
|
|
14
14
|
Next.js App Router project.
|
|
15
15
|
|
|
16
16
|
- **Styling**: Tailwind CSS v4 — CSS-first config in `app/globals.css`, no `tailwind.config`
|
|
17
|
-
- **Code quality**: Biome (lint + format)
|
|
17
|
+
- **Code quality**: Biome (lint + format), pre-commit hook via husky + lint-staged
|
|
18
18
|
- **Path alias**: `@/*` maps to project root
|
|
19
19
|
|
|
20
20
|
## Key Directories
|
|
@@ -22,3 +22,11 @@ Next.js App Router project.
|
|
|
22
22
|
- `app/` — Routes, layouts, pages, API routes
|
|
23
23
|
- `lib/` — Utilities, database client, shared logic
|
|
24
24
|
- `components/` — React components
|
|
25
|
+
|
|
26
|
+
## Code Style (Biome)
|
|
27
|
+
|
|
28
|
+
- Single quotes, no semicolons, trailing commas
|
|
29
|
+
- File names must be `kebab-case`
|
|
30
|
+
- No unused imports/parameters, no barrel files, no `any`
|
|
31
|
+
- Tailwind classes are auto-sorted (in `cn`, `clsx`, `cva` calls too)
|
|
32
|
+
- Prefer `import type` / `export type` for type-only imports
|
package/template/app/globals.css
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
|
+
/* [shadcn] */
|
|
3
|
+
@import "tw-animate-css";
|
|
4
|
+
@import "shadcn/tailwind.css";
|
|
5
|
+
/* [/shadcn] */
|
|
6
|
+
|
|
7
|
+
@custom-variant dark (&:is(.dark *));
|
|
2
8
|
|
|
3
9
|
@theme inline {
|
|
4
10
|
--font-sans: var(--font-geist-sans);
|
|
@@ -6,30 +12,13 @@
|
|
|
6
12
|
}
|
|
7
13
|
|
|
8
14
|
/* [shadcn] */
|
|
9
|
-
@theme inline {
|
|
10
|
-
--color-background: var(--background);
|
|
11
|
-
--color-foreground: var(--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-border: var(--border);
|
|
22
|
-
--color-input: var(--input);
|
|
23
|
-
--color-ring: var(--ring);
|
|
24
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
25
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
26
|
-
--radius-lg: var(--radius);
|
|
27
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
15
|
:root {
|
|
31
16
|
--background: oklch(1 0 0);
|
|
32
17
|
--foreground: oklch(0.145 0 0);
|
|
18
|
+
--card: oklch(1 0 0);
|
|
19
|
+
--card-foreground: oklch(0.145 0 0);
|
|
20
|
+
--popover: oklch(1 0 0);
|
|
21
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
33
22
|
--primary: oklch(0.205 0 0);
|
|
34
23
|
--primary-foreground: oklch(0.985 0 0);
|
|
35
24
|
--secondary: oklch(0.97 0 0);
|
|
@@ -42,13 +31,30 @@
|
|
|
42
31
|
--border: oklch(0.922 0 0);
|
|
43
32
|
--input: oklch(0.922 0 0);
|
|
44
33
|
--ring: oklch(0.708 0 0);
|
|
34
|
+
--chart-1: oklch(0.809 0.105 251.813);
|
|
35
|
+
--chart-2: oklch(0.623 0.214 259.815);
|
|
36
|
+
--chart-3: oklch(0.546 0.245 262.881);
|
|
37
|
+
--chart-4: oklch(0.488 0.243 264.376);
|
|
38
|
+
--chart-5: oklch(0.424 0.199 265.638);
|
|
45
39
|
--radius: 0.625rem;
|
|
40
|
+
--sidebar: oklch(0.985 0 0);
|
|
41
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
42
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
43
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
44
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
45
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
46
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
47
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
.dark {
|
|
49
51
|
--background: oklch(0.145 0 0);
|
|
50
52
|
--foreground: oklch(0.985 0 0);
|
|
51
|
-
--
|
|
53
|
+
--card: oklch(0.205 0 0);
|
|
54
|
+
--card-foreground: oklch(0.985 0 0);
|
|
55
|
+
--popover: oklch(0.205 0 0);
|
|
56
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
57
|
+
--primary: oklch(0.922 0 0);
|
|
52
58
|
--primary-foreground: oklch(0.205 0 0);
|
|
53
59
|
--secondary: oklch(0.269 0 0);
|
|
54
60
|
--secondary-foreground: oklch(0.985 0 0);
|
|
@@ -56,13 +62,70 @@
|
|
|
56
62
|
--muted-foreground: oklch(0.708 0 0);
|
|
57
63
|
--accent: oklch(0.269 0 0);
|
|
58
64
|
--accent-foreground: oklch(0.985 0 0);
|
|
59
|
-
--destructive: oklch(0.
|
|
60
|
-
--border: oklch(0
|
|
61
|
-
--input: oklch(0
|
|
62
|
-
--ring: oklch(0.
|
|
65
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
66
|
+
--border: oklch(1 0 0 / 10%);
|
|
67
|
+
--input: oklch(1 0 0 / 15%);
|
|
68
|
+
--ring: oklch(0.556 0 0);
|
|
69
|
+
--chart-1: oklch(0.809 0.105 251.813);
|
|
70
|
+
--chart-2: oklch(0.623 0.214 259.815);
|
|
71
|
+
--chart-3: oklch(0.546 0.245 262.881);
|
|
72
|
+
--chart-4: oklch(0.488 0.243 264.376);
|
|
73
|
+
--chart-5: oklch(0.424 0.199 265.638);
|
|
74
|
+
--sidebar: oklch(0.205 0 0);
|
|
75
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
76
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
77
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
78
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
79
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
80
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
81
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@theme inline {
|
|
85
|
+
--color-background: var(--background);
|
|
86
|
+
--color-foreground: var(--foreground);
|
|
87
|
+
--color-card: var(--card);
|
|
88
|
+
--color-card-foreground: var(--card-foreground);
|
|
89
|
+
--color-popover: var(--popover);
|
|
90
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
91
|
+
--color-primary: var(--primary);
|
|
92
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
93
|
+
--color-secondary: var(--secondary);
|
|
94
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
95
|
+
--color-muted: var(--muted);
|
|
96
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
97
|
+
--color-accent: var(--accent);
|
|
98
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
99
|
+
--color-destructive: var(--destructive);
|
|
100
|
+
--color-border: var(--border);
|
|
101
|
+
--color-input: var(--input);
|
|
102
|
+
--color-ring: var(--ring);
|
|
103
|
+
--color-chart-1: var(--chart-1);
|
|
104
|
+
--color-chart-2: var(--chart-2);
|
|
105
|
+
--color-chart-3: var(--chart-3);
|
|
106
|
+
--color-chart-4: var(--chart-4);
|
|
107
|
+
--color-chart-5: var(--chart-5);
|
|
108
|
+
--color-sidebar: var(--sidebar);
|
|
109
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
110
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
111
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
112
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
113
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
114
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
115
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
116
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
117
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
118
|
+
--radius-lg: var(--radius);
|
|
119
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
120
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
121
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
122
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
63
123
|
}
|
|
64
124
|
|
|
65
125
|
@layer base {
|
|
126
|
+
* {
|
|
127
|
+
@apply border-border outline-ring/50;
|
|
128
|
+
}
|
|
66
129
|
body {
|
|
67
130
|
@apply bg-background text-foreground;
|
|
68
131
|
}
|
package/template/components.json
CHANGED