Make a component responsive: Free AI Prompt | SheCodes

Free AI prompt · The Design Book

Make a component responsive

A ready-to-use prompt from the chapter Responsive Design. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“This component looks good on desktop but breaks on mobile. Make it fully responsive: stack elements vertically on phones, use 2 columns on tablets, and keep the current layout on desktop. Make sure all buttons are at least 44px tall on mobile, images scale properly, and nothing overflows the screen.”

How to use it

  1. Copy the prompt and paste it into your AI coding tool.
  2. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  3. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Make my page responsive

“Make my page fully responsive. On mobile, stack everything vertically with full-width sections. On tablet, use a 2-column grid where it makes sense. On desktop, use the full layout with sidebar. Make sure text is readable and buttons are tappable at every size.”

Fix broken mobile layout

“My website looks broken on mobile. Fix the layout so all content is readable, buttons are large enough to tap, images scale down properly, and nothing overflows or gets cut off on small screens.”

Add responsive navigation

“Make my navigation responsive. On desktop, show all links in a horizontal row. On mobile, collapse the links into a hamburger menu that opens a dropdown or slide-in drawer. Add smooth transitions when opening and closing.”

Apply your colors and fonts

“Update my site to use this design system. Colors: Primary [#hex], Secondary [#hex], Background [#hex], Text [#hex], Accent [#hex]. Fonts: Headings [font name] bold, Body [font name] regular. Apply these consistently across all components (buttons, links, headings, card backgrounds, borders, and hover states). Make sure there's enough contrast for readability.”

Upload a screenshot and build it

“I'm uploading a screenshot of a website design I like. Please recreate this layout and visual style for my [type of project]. Use my color palette: Primary [#hex], Secondary [#hex], Background [#hex]. Use [font name] for headings and [font name] for body text. Match the spacing, typography hierarchy, and overall feel as closely as possible. Build it with Next.js and Tailwind CSS.”

Upload a Stitch design and build it

“I'm uploading a UI design I created in Google Stitch. Please recreate this exact design as a working website. Use my color palette: Primary [#hex], Secondary [#hex], Background [#hex]. Match the layout, fonts, spacing, and component styles as closely as possible. Build it with Next.js and Tailwind CSS.”