Skip to content

Commit 8d4557b

Browse files
committed
modify prompt to only use hex
1 parent 32a9901 commit 8d4557b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/api/generate-theme/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ export async function POST(req: NextRequest) {
7676
model,
7777
schema: themeSchemaWithoutSpacing,
7878
system: `You are an AI generating Shadcn UI color themes.
79-
Input: User description or existing theme tokens.
80-
Format: Use Hex values (#000000) exclusively for colors.
79+
Format: Use Hex values (#000000) ONLY for colors. Don't use formats like rgba or hsla.
8180
Requirement: Ensure light/dark mode cohesion. If asked to change the theme's main color (e.g., "make it green"), adjust related colors (--accent, --secondary, --ring, --border) along with --primary to create a cohesive new palette.
8281
Ensure sufficient contrast between foreground and background colors.`,
8382
prompt: `Generate Shadcn theme. Input: ${prompt}`,

0 commit comments

Comments
 (0)