Coding prompt library

AI Coding Prompts Library

Ready-made coding prompts to copy and adapt, with the required inputs, the expected outputs, the suitable tool and a practical example. Replace what is between the curly braces with your project's details.

3 results

Define colours, fonts and spacing as tokens that support both modes.

Interface design promptsIntermediate
View the prompt
Create a small design system for {{project}}.
The brand identity: {{extra}}
- CSS tokens for colours (primary, secondary, success, error and warning states) for light and dark modes, with verified AA contrast.
- An Arabic/English type scale, spacing, corner radii and shadows.
- Basic components: button, field, card, alert and badge, with hover, focus and disabled states.
- A component showcase page.
State the computed contrast ratio for every text/background pair.
Details

Evaluate an existing interface against the ten heuristics and rank the problems.

Interface design promptsBeginner
View the prompt
Evaluate the interface in {{project}} (attached screenshots or code) against Nielsen's ten heuristics.
For each problem: the heuristic, the location, the severity (0 to 4), the impact on the user and a suggested improvement.
Add a section on Arabic and RTL (icon direction, numerals, alignment) and a section on accessibility.
{{extra}}
Details

Build a component from a Figma design accurately, using the system's tokens.

Interface design promptsIntermediate
View the prompt
Turn the attached Figma frame into a {{stack}} component in {{project}}.
- Use the design tokens that already exist in the project instead of fixed values.
- Match the spacing and fonts, and document any deliberate difference.
- Make the component responsive and accessible, with RTL support.
- Compare a screenshot of the component with the design and list the remaining differences.
{{extra}}
Details