20 of the best prompts for identify design rule violations, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.
20 of the best prompts for identify design rule violations, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.
The tool is generating output that does not adhere to specified spacing, color, or component style rules. This can lead to a disjointed user interface that fails to meet design specifications. By following this guide, developers can ensure that their applications maintain consistent design standards. Built across 4 distinct stages covering Diagnose the Wall, Isolate and Fix, Verify the Resolution and more, this guide gives you one expert prompt per step so you never have to write from scratch or guess what the AI needs. The prompts work in ChatGPT, Claude, and Gemini and are designed to get usable output on the first try.
Check the output generated by Bolt for discrepancies in design rules. Pay attention to any specific components that do not match the expected styles.
Quote the Violated Design Rule
Please provide the exact output for the component 'Header' that you generated. Then, compare this output to the design rule stated in the prompt regarding spacing and color. Highlight the specific differences between the generated output and the design rule, detailing how each aspect deviates from the expected design standards.
Paste Component for Analysis
Please analyze the following code for the 'Button' component: [CODE SNIPPET]. Identify the specific design constraints that are not being followed and explain how the styles differ from the provided specifications. Additionally, suggest potential adjustments to align the component with the design requirements, and format your response as a detailed report highlighting each discrepancy.
Interpret Original Instruction
Please interpret the design constraints I provided for the project. Specifically, outline the required spacing, color palette, and component styles that should be adhered to in the new output. Present this interpretation in a structured format, clearly detailing each aspect of the design constraints and how they influence the overall design.
Expected vs. Actual Design Behavior
Compare the expected design behavior of the 'Card' component with the actual output generated. Detail the expected spacing, color, and any other relevant design specifications. Additionally, analyze discrepancies between the expected and actual behaviors, and suggest improvements to align the output with the design requirements. Format your response in a table with columns for 'Aspect', 'Expected Behavior', 'Actual Output', and 'Recommendations'.
Identify Violated Design Constraint
Identify the specific design rule that was violated in the last output related to the 'Footer' component. Please quote the exact clause from the prompt that outlines the expected styling for this component. Additionally, provide a brief explanation of how the output deviated from the specified design rule and suggest a correction to align with the expected styling.
Target the specific components and styles that are not adhering to the design rules. Focus on correcting these discrepancies.
Fix Header Spacing
Please review the 'Header' component and identify the current top and bottom margin values. Change the margin values to match the design specifications of 'margin-top: 20px; margin-bottom: 20px;'. After making the adjustments, provide a detailed diff of the changes made before applying them to the code.
Correct Button Color
Please update the background color of the 'Button' component to '#007BFF' according to the design rules. After making the change, provide a confirmation that the update has been applied successfully. Additionally, explain how this color aligns with the overall design guidelines and any potential impact on user experience.
Adjust Card Component Styles
Please update the styles for the 'Card' component to include the required box-shadow effect. Specifically, add the following CSS property: 'box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);'. After making this adjustment, provide the complete updated code snippet for the 'Card' component, ensuring that all relevant styles are included.
Enforce Footer Color Scheme
Please update the 'Footer' component to ensure it uses the correct text color as specified in the design guidelines. Change the text color to '#FFFFFF'. Provide the updated CSS code reflecting this change, and include any relevant comments to explain the modifications made.
Update Layout Grid
Please update the layout grid to adhere to the specified column widths. Change the grid to use 'grid-template-columns: 1fr 2fr;' according to the design specifications. After making the adjustments, confirm that the changes have been applied correctly and provide a brief summary of the modifications made.
Confirm that the design issues have been resolved and the output matches the expected styles. Focus on specific components.
Test Header Output
Please verify the output of the 'Header' component to ensure it has the correct spacing. Specifically, check the rendered output for the margins and confirm that they are applied correctly according to the design specifications. Provide a detailed report on any discrepancies found, including suggestions for adjustments if necessary.
Show Button Style Diff
Display the differences for the 'Button' component in the codebase to confirm that the background color has been updated. Please provide a side-by-side comparison of the previous and updated styles, highlighting the specific changes made. Additionally, verify that the new background color aligns with the design specifications outlined in the style guide.
Replay Card Component Render
Render the 'Card' component again and check if the box-shadow effect is now applied correctly. Please confirm whether the visual appearance aligns with the design guidelines. If there are discrepancies, provide specific details on what does not match and suggest adjustments to achieve compliance with the design standards.
Check Footer Text Color
Verify that the 'Footer' component displays the correct text color as specified in the design guidelines. Please check the rendered output to ensure it complies with the specified color values and document any discrepancies. Provide a summary of your findings, including the expected color and the actual color displayed, along with any recommendations for adjustments if necessary.
Confirm Layout Grid Structure
Inspect the layout grid for the project titled [PROJECT NAME] to ensure it adheres to the specified column widths of [COLUMN WIDTHS]. Provide a detailed assessment of whether the grid structure aligns with the design requirements outlined in the documentation. Include any discrepancies found and suggest adjustments if necessary.
Create artefacts that will help prevent similar design issues from occurring in the future. Focus on reusable constraints.
Design Rule Enforcement Prompt
Before generating any component for the project, please verify that the output adheres to the following design rules: [SPACING RULE], [COLOR RULE], and [COMPONENT STYLES]. If any rule is violated, stop the generation process and provide a detailed report of the issues encountered, including which specific rules were not followed and suggestions for correction before proceeding.
Component Style Verification Template
Please create a conversation-starter template for verifying component styles in design. For each component generated, include a checklist that confirms adherence to specified design rules regarding spacing, color, and style. Additionally, provide a section to list any deviations found, along with suggestions for corrections. Format this as a clear and structured document that can be easily referenced during design reviews.
Design Specification Message
Draft a project specification message that emphasizes the importance of adherence to design specifications. The message should state that "All components must adhere to the design specifications outlined in the project documentation." Additionally, include specific instructions to ensure that the team checks for spacing, color, and component styles before finalizing any output. Format the message in a clear and professional manner, suitable for distribution to the project team.
Style Naming Convention Reminder
Please create a reminder message regarding the naming convention for CSS classes. The message should state that all CSS classes must follow the format [COMPONENT]__[STYLE] (e.g., Button__primary) and emphasize the importance of ensuring that styles are consistently applied across all components. Format the message in a clear and concise manner suitable for team communication.
Self-Check for Design Compliance
Please create a self-check request for the agent to ensure compliance with design specifications. The request should include a detailed checklist that covers spacing, color, and style requirements. Additionally, if any discrepancies are found, the agent should provide a summary report outlining the specific areas of non-compliance and suggestions for adjustments to meet the design standards.
Bolt may not be correctly interpreting the design constraints provided in the prompt. Ensure that the constraints are clearly defined and check the output for specific violations.
You can enforce design rules by adding session-opening constraints that require compliance with specific spacing, color, and style guidelines before generating components.
If Bolt ignores design constraints, review the prompt for clarity and specificity. It may also help to provide explicit examples of the expected output format.
You can verify compliance by running tests that check the rendered output against the specified design rules for each component generated.
If design rules are violated, the output may not align with the intended user experience, leading to a disjointed interface. Implement checks to catch these violations early.
AI Prompts for Identifying Design Constraint Violations
The tool is generating UI components that do not adhere to specified spacing, color, or style rules.
See promptsAI Prompts for Ensuring Design Constraints Compliance
Lovable sometimes generates apps that ignore specified design constraints, causing inconsistent UI/UX.
See promptsAI Prompts for Ensuring Config File Compliance
Bolt is not reading or applying the project rules, config file, or instructions file, causing unexpected behavior and potential project failures.
See prompts