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.
@@ -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 CONTEXT IS PROVIDED)
264
-
265
- When existing project context is provided, you MUST:
266
- - NEVER add inline <style> tags - use ONLY the styling approach from the context
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 project's existing font definitions
269
- - NEVER hardcode colors - use the project's existing color tokens/variables/classes
270
- - Match the EXACT spacing scale, typography scale, and color palette
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 OBLIGATOIRE:
608
- Si un design system est fourni, tu DOIS :
609
- - Copier EXACTEMENT les styles, classes, et patterns spécifiés
610
- - NE JAMAIS inventer de nouvelles couleurs, paddings, ou border-radius
611
- - Utiliser les composants définis (Button Primary, Input, Card, etc.)
612
- - Respecter les tailles définies (sm/md/lg) sans les modifier
613
- - Si un élément n'existe pas dans le design system, le créer en utilisant UNIQUEMENT les tokens définis
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 INTEGRATION (CRITICAL - READ THIS FIRST)**
689
- - NEVER add inline <style> tags or CSS-in-JS style objects - use ONLY the styling approach from the context
690
- - NEVER hardcode pixel values (padding: 120px, font-size: 42px) - use the project's existing variables, tokens, or utility classes
691
- - NEVER introduce new fonts - use the project's existing font definitions
692
- - NEVER hardcode colors - use the project's existing color tokens/variables/classes
693
- - If context includes design tokens, variables, or classes, you MUST use them exclusively
694
- - The snippet must integrate SEAMLESSLY - it should look like it was always part of the codebase, not a "foreign block"
695
- - Match the exact spacing scale, typography scale, and color palette of the existing project
696
- - Adapt to whatever styling system the project uses (CSS modules, utility classes, SCSS, styled-components, etc.)
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemini-design-mcp",
3
- "version": "3.12.8",
3
+ "version": "3.12.9",
4
4
  "description": "MCP server that uses Gemini 3 Pro for frontend/design code generation",
5
5
  "main": "build/index.js",
6
6
  "bin": {