Skip to main content

Claude/ChatGPT Prompt to Build a Modern SaaS Admin Dashboard Layout

SaaS admin dashboard UI prompt: collapsible sidebar, bento-grid KPI cards, trend charts, and a data table with full Tailwind component tree.

Füllen Sie die Platzhalter aus

Edit the values, then copy your finished prompt.

Ihr Prompt
prompt.txt

                                

What this prompt does

This prompt casts the model as a senior frontend engineer who ships SaaS dashboards and asks for a concrete component tree with real Tailwind classes, not pseudocode. It specifies an app shell with a collapsible sidebar and a top nav, a bento-grid main area that mixes KPI cards, trend charts, and a data table without ragged rows, and — importantly — loading, empty, and error states for every panel. Dark mode is the default with a light-mode token map.

The variables shape the layout to your product. [product] and [primary_kpis] decide which KPI cards appear and what each shows — value, delta versus last period, and a sparkline. [framework] and [styling] set the actual output: Next.js with Tailwind v4 and shadcn/ui produces a different component tree than another pairing. Because the prompt asks for KPI cards built directly from [primary_kpis], the dashboard reflects your real metrics rather than placeholder tiles.

When to use it

  • You are building a SaaS admin dashboard and want a real component tree to start from
  • You need a bento grid that holds cards, charts, and a table without ragged rows
  • You want KPI cards with value, period-over-period delta, and a sparkline
  • You need loading, empty, and error states designed for each panel, not bolted on later
  • You want dark mode by default plus a light-mode token map
  • You care about keyboard nav, focus rings, and ARIA on the charts and table

Example output

The model returns a component tree with real Tailwind classes for your framework: an app shell with a collapsible left sidebar, a top nav with global search and a profile menu, responsive breakpoints, and a bento-grid main area. Each KPI card shows a value, a delta against the last period, and a sparkline, and every panel includes loading, empty, and error states. Accessibility hooks — keyboard nav, focus rings, ARIA on charts and the table — are wired in.

Pro tips

  • List your real metrics in [primary_kpis]; the cards are generated from them, so vague KPIs produce vague tiles
  • Match [framework] and [styling] to your stack so the Tailwind classes and component conventions are usable as-is
  • Design the empty and loading states (deliverable 4) first — a fresh account sees those, and one card with no empty state can collapse the bento layout
  • Describe [product] so the dashboard's context and labels fit, not a generic analytics shell
  • Keep the ARIA and keyboard requirements; charts and tables are where accessibility is most often dropped
  • Iterate by asking for one panel at a time if the full tree is large, so each piece stays detailed

Frequently Asked Questions

Does it return real Tailwind classes or just placeholder markup?
It returns a concrete component tree with real Tailwind classes for the framework you specify, not pseudocode. The prompt explicitly asks for that, so the output is something you can adapt directly rather than a high-level sketch you still have to translate into code.
Are the empty and loading states actually included?
Yes, deliverable 4 requires loading, empty, and error states for each panel. This matters because a fresh account renders the empty states first, and one card without an empty state can break the bento grid layout, so it is worth designing those before polishing anything.
Will the KPI cards match my product's metrics?
Yes, the cards are built from whatever you put in `[primary_kpis]`, each showing a value, a delta versus the last period, and a sparkline. List your actual metrics rather than generic ones so the dashboard reflects what you really track.
Does it cover accessibility for the charts and table?
It does. Deliverable 6 requires keyboard navigation, visible focus rings, and ARIA on the charts and the data table. Those are the elements where accessibility is most commonly skipped, so having them specified up front saves a retrofit later.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

Mehr in Tech & SaaS UI Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support