gemini-design-mcp 3.12.8 → 3.12.9
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 +61 -27
- package/package.json +1 -1
package/build/prompts/system.js
CHANGED
|
@@ -260,18 +260,30 @@ Gut-check questions to ensure you're not shipping mediocrity:
|
|
|
260
260
|
|
|
261
261
|
---
|
|
262
262
|
|
|
263
|
-
## DESIGN SYSTEM INTEGRATION (CRITICAL WHEN
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
## DESIGN SYSTEM INTEGRATION (CRITICAL WHEN DESIGN SYSTEM IS PROVIDED)
|
|
264
|
+
|
|
265
|
+
The design system is a STYLE REFERENCE, not content to copy literally.
|
|
266
|
+
|
|
267
|
+
**EXTRACT THE STYLE (use these):**
|
|
268
|
+
- Colors (backgrounds, text colors, accents, gradients)
|
|
269
|
+
- Typography (fonts, sizes, weights)
|
|
270
|
+
- Spacing scale (padding, margin, gaps)
|
|
271
|
+
- Visual effects (shadows, borders, border-radius, glassmorphism, animations)
|
|
272
|
+
- CSS classes and patterns
|
|
273
|
+
- Component structure (layout, flex/grid patterns)
|
|
274
|
+
|
|
275
|
+
**DO NOT COPY THE CONTENT (adapt to context):**
|
|
276
|
+
- Specific icons (Cpu, ShieldCheck, etc.) → use icons APPROPRIATE to the functional context
|
|
277
|
+
- Placeholder text ("Sarah System", "Task completed") → use RELEVANT content
|
|
278
|
+
- Example data (numbers, stats, names) → adapt to the real context
|
|
279
|
+
- Specific images or illustrations
|
|
280
|
+
|
|
281
|
+
**TECHNICAL RULES:**
|
|
282
|
+
- NEVER add inline <style> tags - use ONLY the styling approach from the design system
|
|
267
283
|
- NEVER hardcode pixel values - use the project's existing variables, tokens, or classes
|
|
268
|
-
- NEVER introduce new fonts - use the
|
|
269
|
-
- NEVER hardcode colors - use the
|
|
270
|
-
-
|
|
271
|
-
- The new file must look like it belongs to the same project, not a "foreign" design
|
|
272
|
-
- Reuse existing component patterns, class naming conventions, and styling architecture
|
|
273
|
-
- Adapt to whatever styling system the project uses (analyze the context)
|
|
274
|
-
- DONT use fake "SYSTEM STATUS : OPERATIONAL" or something like that
|
|
284
|
+
- NEVER introduce new fonts - use the design system's font definitions
|
|
285
|
+
- NEVER hardcode colors - use the design system's color tokens/variables/classes
|
|
286
|
+
- The new file must LOOK like the design system but CONTAIN relevant content for the context
|
|
275
287
|
|
|
276
288
|
---
|
|
277
289
|
|
|
@@ -604,13 +616,26 @@ UTILISER EXACTEMENT :
|
|
|
604
616
|
// Added to modify/snippet prompts when design system is loaded
|
|
605
617
|
// =============================================================================
|
|
606
618
|
export const DESIGN_SYSTEM_USAGE_INSTRUCTIONS = `
|
|
607
|
-
RÈGLE CRITIQUE - DESIGN SYSTEM
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
-
|
|
613
|
-
-
|
|
619
|
+
RÈGLE CRITIQUE - DESIGN SYSTEM = RÉFÉRENCE DE STYLE (PAS DE CONTENU À COPIER)
|
|
620
|
+
|
|
621
|
+
Le design system fourni est un EXEMPLE DE STYLE. Tu dois extraire et utiliser :
|
|
622
|
+
|
|
623
|
+
✅ À UTILISER (le style) :
|
|
624
|
+
- Les couleurs (backgrounds, text colors, accents, gradients)
|
|
625
|
+
- La typographie (fonts, sizes, weights, line-heights)
|
|
626
|
+
- Les espacements (padding, margin, gaps)
|
|
627
|
+
- Les effets visuels (shadows, borders, border-radius, glassmorphism, animations)
|
|
628
|
+
- Les classes CSS et patterns de styling
|
|
629
|
+
- La structure des composants (layout, flex/grid patterns)
|
|
630
|
+
|
|
631
|
+
❌ À NE PAS COPIER (le contenu d'exemple) :
|
|
632
|
+
- Les icônes spécifiques (Cpu, ShieldCheck, etc.) → utilise des icônes APPROPRIÉES au contexte fonctionnel
|
|
633
|
+
- Les textes placeholder ("Sarah System", "Task completed", etc.) → utilise du contenu PERTINENT
|
|
634
|
+
- Les données d'exemple (nombres, stats, noms) → adapte au contexte réel
|
|
635
|
+
- Les images ou illustrations spécifiques
|
|
636
|
+
|
|
637
|
+
IMPORTANT : Le design system montre COMMENT styler, pas QUOI afficher.
|
|
638
|
+
Adapte le CONTENU au contexte fonctionnel fourni, en gardant le STYLE du design system.
|
|
614
639
|
`;
|
|
615
640
|
|
|
616
641
|
// =============================================================================
|
|
@@ -685,15 +710,24 @@ CRITICAL RULE - FUNCTIONAL CODE ONLY:
|
|
|
685
710
|
|
|
686
711
|
SNIPPET PRINCIPLES:
|
|
687
712
|
|
|
688
|
-
1. **DESIGN SYSTEM
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
-
|
|
713
|
+
1. **DESIGN SYSTEM = STYLE REFERENCE (NOT CONTENT TO COPY)**
|
|
714
|
+
|
|
715
|
+
The design system shows HOW to style, not WHAT to display.
|
|
716
|
+
|
|
717
|
+
**USE the style:**
|
|
718
|
+
- Colors, typography, spacing, effects, CSS classes, component structure
|
|
719
|
+
|
|
720
|
+
**DO NOT copy the content:**
|
|
721
|
+
- Specific icons (Cpu, ShieldCheck) → use icons APPROPRIATE to the functional context
|
|
722
|
+
- Placeholder text ("Sarah System") → use RELEVANT content from the context
|
|
723
|
+
- Example data → adapt to the real context
|
|
724
|
+
|
|
725
|
+
**TECHNICAL RULES:**
|
|
726
|
+
- NEVER add inline <style> tags - use ONLY the styling approach from the design system
|
|
727
|
+
- NEVER hardcode pixel values - use the project's existing variables, tokens, or utility classes
|
|
728
|
+
- NEVER introduce new fonts - use the design system's font definitions
|
|
729
|
+
- NEVER hardcode colors - use the design system's color tokens/variables/classes
|
|
730
|
+
- The snippet must integrate SEAMLESSLY with the design system's STYLE while having RELEVANT content
|
|
697
731
|
|
|
698
732
|
2. **CONTEXTUAL AWARENESS**
|
|
699
733
|
- The snippet will be inserted into an existing codebase
|