Design an Accessible Settings Page with Toggles, Segmented Controls and Sliders

A ready-to-paste prompt that builds a polished single-file settings page with custom accessible toggles, segmented controls and sliders that update a live reading preview.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior product designer who writes clean, accessible front-end code. Build a settings page called "Lumen Reader — Reading Preferences" for a calm e-reading app. Group real-sounding preferences into four card sections: Appearance (theme, accent color, page width), Typography (typeface, font size, line spacing, justify text), Reading (progress bar, drop caps, reduce motion) and Notifications (daily reminder, weekly summary). Beside the settings, show a sticky live preview panel with a short original book excerpt that updates instantly whenever any control changes.

Rules:
1. Build custom controls: toggles as buttons with role switch and aria-checked; segmented controls and color swatches as radio groups with arrow-key, Home and End navigation and roving tabindex; sliders as styled native range inputs with visible value readouts and a filled track.
2. Track unsaved changes: show an "Unsaved changes" chip, a Save button that stays disabled until something changes, a Reset to defaults button, and a polite live region for status messages.
3. Layout: two columns above 860px, stacked below; fits 360–1280px wide with generous spacing and a clear type scale.
4. Palette: warm off-white background, white cards, dark ink text and one accent color that the accent swatches change across the page.
5. Visible focus rings, readable contrast, and no transitions when prefers-reduced-motion is set or the Reduce motion toggle is on.
6. No external libraries, fonts, images, forms or storage.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Lumen Reader, a reading-preferences page with a live book preview.

Change the theme (Light, Sepia, Dark), pick an accent swatch, and drag the font size and line spacing sliders to watch the excerpt reflow instantly. Flip toggles for justified text, drop caps and the progress bar. Use Tab and arrow keys to move through segmented controls. An Unsaved changes chip appears until you press Save; Reset restores defaults.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Naming exact ARIA roles (switch, radiogroup) and keyboard keys gets real accessible controls instead of styled divs that ignore the keyboard.
  • A live preview panel gives every setting a visible effect, so the page feels like a working product rather than a static mockup.
  • Spelling out saved vs. unsaved states, breakpoints and palette removes guesswork, so the first output already looks finished.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as settings.html and open it in any browser, or view it in the chat's canvas or preview pane. Try it with keyboard only.

Common edits

  • Swap the reading app for another product (a music player, a project tool) and rename the sections and preview content to match.
  • Add a fifth section such as Privacy or Accessibility, or a high-contrast theme option to the theme segmented control.

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Did this prompt work?

Keep exploring

More in Design