Design System Intelligence best practices
Follow these best practices to get the most out of Builder's Design System Intelligence feature.
Match component and token names
The Builder Agent uses several signals to match Figma components to your design system:
- Component names
- Variant properties and values
- Component structure and hierarchy
The more alignment between your Figma naming and your code implementation, the more accurate your generated code will be.
Match component names directly
Your Figma component names should match your code component names as closely as possible:
Use semantic property names
Variant properties should reflect their semantic meaning:
Be careful with generic terms
Avoid using generic component names that might confuse the AI about the actual component type:
Avoid special characters or emojis
Using special characters or emojis can have unintended consequences, as the AI may not accurately interpret your meaning:
Design tokens and variables
Map your Figma variables to your design system tokens with consistent naming:
Annotate your components
Use Figma's description field or annotations to provide additional context. This context can be interpreted by the AI and may be useful in code generation.
What's next
Read more about Design system indexing, or how to Refine design system indexes.