Skip to content

Commit 9d01a31

Browse files
authored
fix: tighten brand color palette in buildPrompt imagePrompt template
Natural language color descriptions + explicit negative constraints for Imagen brand consistency. Black bg, emerald green #15b27b, white only.
1 parent bf9fde0 commit 9d01a31

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

app/api/cron/ingest/route.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ CRITICAL: This video will be a visual infographic explainer. There will be NO te
337337
338338
For EACH scene, generate an "imagePrompts" array with 2-5 image generation prompts. Each prompt should follow this exact template:
339339
340-
"Infographic 2D architecture style, black background. [SPECIFIC VISUAL FOR THIS SCENE]. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations."
340+
"Infographic 2D architecture style, pure black background. [SPECIFIC VISUAL FOR THIS SCENE]. Highlighted elements filled with bright emerald green (#15b27b). White lines connecting components and white text annotations. Color palette: ONLY black, emerald green, and white — no purple, no blue, no gradients."
341341
342342
Replace [SPECIFIC VISUAL FOR THIS SCENE] with a detailed description of what the infographic should show for that particular scene. Be specific — reference the actual technical concepts, comparisons, or workflows being discussed.
343343
@@ -349,6 +349,7 @@ Guidelines for image prompts:
349349
- For comparison scenes: show side-by-side comparison charts or feature matrices
350350
- For list scenes: show each item as a distinct visual element in the infographic
351351
- Make prompts visually varied — don't repeat the same layout
352+
- STRICT color palette: pure black background (#000000), bright emerald green (#15b27b) for highlighted elements, white for lines and text annotations. Do NOT use purple, blue, orange, red, or gradient backgrounds
352353
353354
## JSON Schema
354355
@@ -369,7 +370,7 @@ Return ONLY a JSON object matching this exact schema:
369370
"visualDescription": "string - what to show on screen (fallback for all types)",
370371
"bRollKeywords": ["keyword1", "keyword2"],
371372
"durationEstimate": 15,
372-
"imagePrompts": ["Infographic 2D architecture style, black background. [specific visual]. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations."],
373+
"imagePrompts": ["Infographic 2D architecture style, pure black background. [specific visual]. Highlighted elements filled with bright emerald green (#15b27b). White lines and text annotations. ONLY black, green, white colors."],
373374
"code": {
374375
"snippet": "string - actual code to display (only for sceneType: code)",
375376
"language": "typescript | javascript | jsx | tsx | css | html | json | bash",
@@ -405,7 +406,7 @@ Requirements:
405406
- For "code" scenes, provide real, syntactically correct code
406407
- The qualityScore should be your honest self-assessment (0-100)
407408
- Each scene MUST include an "imagePrompts" array with 2-5 image generation prompts
408-
- Image prompts must follow the template: "Infographic 2D architecture style, black background. [specific]. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations."
409+
- Image prompts must follow the template: "Infographic 2D architecture style, pure black background. [specific]. Highlighted elements filled with bright emerald green (#15b27b). White lines connecting components and white text annotations. Color palette: ONLY black, emerald green, and white."
409410
- Do NOT include any text overlays, titles, or script words in the video — narration audio carries all words
410411
- Calculate prompt count per scene: Math.ceil(durationEstimate / 4)
411412
- Return ONLY the JSON object, no markdown or extra text`;

0 commit comments

Comments
 (0)