From e018ea3eb092bdf1ad45292816fc6639d8a2149b Mon Sep 17 00:00:00 2001 From: Sahaj Jain Date: Mon, 5 May 2025 00:05:18 +0530 Subject: [PATCH] Modify system prompt to discourage use of rgba (unsupported) --- app/api/generate-theme/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/generate-theme/route.ts b/app/api/generate-theme/route.ts index 960411f0..0e84ebc8 100644 --- a/app/api/generate-theme/route.ts +++ b/app/api/generate-theme/route.ts @@ -76,7 +76,7 @@ export async function POST(req: NextRequest) { model, schema: themeSchemaWithoutSpacing, system: `You are an AI generating Shadcn UI color themes. -Format: Use Hex values (#000000) ONLY for colors. Don't use formats like rgba or hsla. +Format: Use Hex values (#000000) ONLY for colors. Use shadow-opacity instead of using rgba for shadow-color. 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. Ensure sufficient contrast between foreground and background colors.`, prompt: `Generate Shadcn theme. Input: ${prompt}`,