gemini-design-mcp 3.12.5 → 3.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/prompts/system.js
CHANGED
|
@@ -245,7 +245,7 @@ Gut-check questions to ensure you're not shipping mediocrity:
|
|
|
245
245
|
|
|
246
246
|
**Code Quality**: Production-grade, functional, and clean. No placeholder content unless explicitly temporary.
|
|
247
247
|
|
|
248
|
-
**Styling**: Use
|
|
248
|
+
**Styling**: Use the styling approach specified in the tech stack or design system. Adapt to whatever CSS framework or methodology the project uses.
|
|
249
249
|
|
|
250
250
|
**Responsiveness**: Design for all viewports. Mobile should feel intentional, not cramped.
|
|
251
251
|
|
|
@@ -605,8 +605,8 @@ UTILISER EXACTEMENT :
|
|
|
605
605
|
// =============================================================================
|
|
606
606
|
export const DESIGN_SYSTEM_USAGE_INSTRUCTIONS = `
|
|
607
607
|
RÈGLE CRITIQUE - DESIGN SYSTEM OBLIGATOIRE:
|
|
608
|
-
Si un design system est fourni
|
|
609
|
-
- Copier EXACTEMENT les classes
|
|
608
|
+
Si un design system est fourni, tu DOIS :
|
|
609
|
+
- Copier EXACTEMENT les styles, classes, et patterns spécifiés
|
|
610
610
|
- NE JAMAIS inventer de nouvelles couleurs, paddings, ou border-radius
|
|
611
611
|
- Utiliser les composants définis (Button Primary, Input, Card, etc.)
|
|
612
612
|
- Respecter les tailles définies (sm/md/lg) sans les modifier
|
|
@@ -650,7 +650,7 @@ RÈGLES CRITIQUES:
|
|
|
650
650
|
(et ainsi de suite jusqu'à VIBE_5)
|
|
651
651
|
|
|
652
652
|
2. CHAQUE section doit être COMPLÈTE et auto-suffisante:
|
|
653
|
-
- Tous les styles
|
|
653
|
+
- Tous les styles inline (selon le tech stack)
|
|
654
654
|
- Extractible telle quelle sans modification
|
|
655
655
|
- Pas de dépendances sur d'autres sections
|
|
656
656
|
|
|
@@ -667,7 +667,7 @@ RÈGLES CRITIQUES:
|
|
|
667
667
|
- Border-radius différent
|
|
668
668
|
- Effets différents (shadows, gradients, etc.)
|
|
669
669
|
|
|
670
|
-
5. Inclure
|
|
670
|
+
5. Inclure TOUS les styles inline - AUCUNE variable externe, AUCUN fichier CSS séparé
|
|
671
671
|
|
|
672
672
|
OUTPUT: Une page React/HTML complète et fonctionnelle avec les 5 sections bien marquées. Le code doit être prêt à être sauvegardé et ouvert dans un navigateur.`;
|
|
673
673
|
|
|
@@ -7,7 +7,7 @@ export const createFrontendSchema = {
|
|
|
7
7
|
"Be specific about functionality and content. " +
|
|
8
8
|
"Example: 'A pricing page with 3 tiers (Basic, Pro, Enterprise) with feature comparison table'"),
|
|
9
9
|
techStack: z.string().describe("The tech stack to use. Be specific. " +
|
|
10
|
-
"Examples: 'React + TypeScript + Tailwind CSS', 'Next.js 14 App Router + shadcn/ui', 'Vue 3 + Composition API
|
|
10
|
+
"Examples: 'React + TypeScript + Tailwind CSS', 'Next.js 14 App Router + shadcn/ui', 'Vue 3 + Composition API'..."),
|
|
11
11
|
designSystem: z.string().describe("REQUIRED: Copy-paste the ENTIRE content of design-system.md here. " +
|
|
12
12
|
"This contains ALL visual/design information: colors, typography, spacing, components styling, etc. " +
|
|
13
13
|
"Do NOT summarize - paste the FULL file content as-is."),
|
|
@@ -38,7 +38,7 @@ ${context}
|
|
|
38
38
|
TECH STACK: ${techStack}
|
|
39
39
|
|
|
40
40
|
CRITICAL RULES:
|
|
41
|
-
- Copy EXACTLY the
|
|
41
|
+
- Copy EXACTLY the styles, classes, colors, spacing, patterns from the design system above.
|
|
42
42
|
- NEVER invent new values. The new component must look EXACTLY like the design system.
|
|
43
43
|
- Implement the functional requirements from the context above.
|
|
44
44
|
|
|
@@ -12,7 +12,7 @@ export const generateVibesSchema = {
|
|
|
12
12
|
"Exemples: 'developers', 'enterprise clients', 'young consumers', 'creative professionals'"),
|
|
13
13
|
techStack: z.string().optional().describe("Tech stack pour la page de vibes. " +
|
|
14
14
|
"Default: 'React + TypeScript + Tailwind CSS'. " +
|
|
15
|
-
"Exemples: 'Next.js
|
|
15
|
+
"Exemples: 'Next.js', 'Vue 3', 'HTML + CSS', 'Svelte'..."),
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export async function generateVibes(params) {
|
|
@@ -73,7 +73,7 @@ FORMAT DU design-system.md:
|
|
|
73
73
|
## Instructions d'utilisation
|
|
74
74
|
|
|
75
75
|
Pour tous les composants frontend:
|
|
76
|
-
- Copier EXACTEMENT les
|
|
76
|
+
- Copier EXACTEMENT les styles de ce code de référence
|
|
77
77
|
- Utiliser les mêmes couleurs, spacing, border-radius
|
|
78
78
|
- Maintenir la même direction esthétique
|
|
79
79
|
\`\`\`
|
|
@@ -45,7 +45,7 @@ ${targetCode}
|
|
|
45
45
|
MODIFICATION REQUESTED: ${modification}
|
|
46
46
|
|
|
47
47
|
CRITICAL RULES:
|
|
48
|
-
- Copy EXACTLY the
|
|
48
|
+
- Copy EXACTLY the styles, classes, colors, spacing, patterns from the design system above.
|
|
49
49
|
- NEVER invent new values. The modified code must look EXACTLY like the design system.
|
|
50
50
|
- Implement the functional requirements from the context above.
|
|
51
51
|
|
|
@@ -9,7 +9,7 @@ export const snippetFrontendSchema = {
|
|
|
9
9
|
"'A form validation function for email and password', " +
|
|
10
10
|
"'A custom hook for handling API requests with loading/error states'"),
|
|
11
11
|
techStack: z.string().describe("The tech stack being used. " +
|
|
12
|
-
"Examples: 'React + TypeScript + Tailwind CSS', 'Vue 3 + Composition API'"),
|
|
12
|
+
"Examples: 'React + TypeScript + Tailwind CSS', 'Vue 3 + Composition API', 'Svelte + CSS'..."),
|
|
13
13
|
designSystem: z.string().describe("REQUIRED: Copy-paste the ENTIRE content of design-system.md here. " +
|
|
14
14
|
"This contains ALL visual/design information: colors, typography, spacing, components styling, etc. " +
|
|
15
15
|
"Do NOT summarize - paste the FULL file content as-is."),
|
|
@@ -45,7 +45,7 @@ INSERTION CONTEXT:
|
|
|
45
45
|
${insertionContext}
|
|
46
46
|
|
|
47
47
|
CRITICAL RULES:
|
|
48
|
-
- Copy EXACTLY the
|
|
48
|
+
- Copy EXACTLY the styles, classes, colors, spacing, patterns from the design system above.
|
|
49
49
|
- NEVER invent new values. The snippet must look EXACTLY like the design system.
|
|
50
50
|
- Implement the functional requirements from the context above.
|
|
51
51
|
|