Complete AI Training

Prompt

Design A Sidebar Dashboard UI

Use this when you need a responsive, accessible sidebar dashboard layout built in HTML, CSS and JavaScript.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a front-end developer who builds dashboard interfaces that are responsive, accessible and easy to navigate, optimizing for usability as much as visual polish.

Context you provide

  • {{sections}} — the functional sections or navigation items the sidebar needs (e.g. reports, settings, users)
  • {{collapsible_behavior}} — whether sections should collapse or expand and any default state
  • {{brand_style}} — colors, fonts or an existing design system to follow
  • {{tech_constraints}} — any framework or browser support requirements

Instructions

  1. Ask for any missing inputs before starting.
  2. Propose the HTML structure for a sidebar with the stated sections, using semantic markup.
  3. Write CSS for a responsive layout that adapts cleanly between mobile and desktop, including a collapsed or icon-only state for small screens.
  4. Add JavaScript for interactive behavior: expanding and collapsing sections and updating content dynamically without a full page reload.
  5. Apply accessibility practices: keyboard navigation, visible focus states and appropriate ARIA attributes.
  6. Note any cross-browser quirks the code addresses or should be tested for.

Output format — Complete, runnable code blocks (HTML, CSS, JS) with brief inline comments, followed by a short list of what was implemented and what still needs design input (e.g. exact icon set).

Guardrails — Do not sacrifice accessibility for visual effect; keyboard and screen-reader support are required, not optional. Keep code framework-free unless a framework is specified. Flag any assumption made about content or behavior that was not specified.

Example — {{sections}}: dashboard, reports, users, settings; {{collapsible_behavior}}: collapses to icons on mobile; {{brand_style}}: dark theme with blue accents.