Create a page layout
“Create a responsive page layout with a [sidebar / header / grid] using CSS Grid or Flexbox. It should work on mobile, tablet, and desktop. On mobile, stack everything vertically. On desktop, show the full layout.”
Free AI prompt · The Design Book
A ready-to-use prompt from the chapter Layout Patterns. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.
“Build a dashboard layout with a fixed sidebar on the left (240px wide), a top header bar (64px tall), and a scrollable main content area. The sidebar should collapse to icons on tablet and become a hamburger menu on mobile.”
“Create a responsive page layout with a [sidebar / header / grid] using CSS Grid or Flexbox. It should work on mobile, tablet, and desktop. On mobile, stack everything vertically. On desktop, show the full layout.”
“Create a landing page layout with these sections in order: navbar, hero with headline and CTA button, 3-column features grid, testimonials, pricing table with 3 tiers, FAQ accordion, and a footer. Make it fully responsive.”
“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.”
“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.”
“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.”
“Add more breathing room between sections. Use at least 80px padding between major sections, 24px padding inside cards, 16px gaps in grids.”