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}`,