Skip to content

Commit 47f2968

Browse files
authored
Merge pull request #584 from chaibuilder/dep-fixes
fix: added dependencies to avoid installation
2 parents 349e15c + 95f89d0 commit 47f2968

File tree

3 files changed

+30
-31
lines changed

3 files changed

+30
-31
lines changed

frameworks/nextjs/package/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
"dependencies": {
9393
"@chaibuilder/sdk": "link:../../../",
9494
"concurrently": "^9.2.0",
95+
"dotenv": "^16.4.5",
96+
"prompts": "^2.4.2",
9597
"postgres": "^3.4.8",
9698
"ai": "^6.0.11",
9799
"drizzle-orm": "^0.45.1",
@@ -103,8 +105,6 @@
103105
"@tailwindcss/typography": "^0.5.15"
104106
},
105107
"devDependencies": {
106-
"dotenv": "^16.4.5",
107-
"prompts": "^2.4.2",
108108
"tsup": "^8.0.0",
109109
"typescript": "^5.9.3"
110110
}

frameworks/nextjs/package/scripts/constants/default-theme.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

frameworks/nextjs/package/scripts/create-app.cjs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,39 @@ const prompts = require("prompts");
44
const postgres = require("postgres");
55
const dotenv = require("dotenv");
66
const { LANGUAGES } = require("@chaibuilder/sdk/actions");
7-
const defaultTheme = require("./constants/default-theme.json");
87
dotenv.config();
98

109
/**
1110
* ChaiBuilder Create App CLI
1211
*/
12+
const defaultTheme = {
13+
fontFamily: {
14+
heading: "Inter",
15+
body: "Inter",
16+
},
17+
borderRadius: "6px",
18+
colors: {
19+
background: ["#FFFFFF", "#09090B"],
20+
foreground: ["#09090B", "#FFFFFF"],
21+
primary: ["#2563EB", "#3B82F6"],
22+
"primary-foreground": ["#FFFFFF", "#FFFFFF"],
23+
secondary: ["#F4F4F5", "#27272A"],
24+
"secondary-foreground": ["#09090B", "#FFFFFF"],
25+
muted: ["#F4F4F5", "#27272A"],
26+
"muted-foreground": ["#71717A", "#A1A1AA"],
27+
accent: ["#F4F4F5", "#27272A"],
28+
"accent-foreground": ["#09090B", "#FFFFFF"],
29+
destructive: ["#EF4444", "#7F1D1D"],
30+
"destructive-foreground": ["#FFFFFF", "#FFFFFF"],
31+
border: ["#E4E4E7", "#27272A"],
32+
input: ["#E4E4E7", "#27272A"],
33+
ring: ["#2563EB", "#3B82F6"],
34+
card: ["#FFFFFF", "#09090B"],
35+
"card-foreground": ["#09090B", "#FFFFFF"],
36+
popover: ["#FFFFFF", "#09090B"],
37+
"popover-foreground": ["#09090B", "#FFFFFF"],
38+
},
39+
};
1340

1441
const EXIT_CODES = {
1542
SUCCESS: 0,

0 commit comments

Comments
 (0)