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
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
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
Did this prompt work?
Keep exploring
More like this
Build a Responsive Three-Tier Pricing Section with Monthly/Yearly Toggle
A single HTML file with three pricing cards, a working billing switch that recalculates prices, a highlighted recommended plan and accessible feature checkmarks.
Build a Light/Dark Mode Toggle Demo Page with Smooth Theme Switching
A single HTML page with a polished light/dark theme switch built on CSS custom properties that defaults to the system theme, honors reduced motion, and uses no storage.
Build a Playful Animated 404 Error Page with SVG Art and Site Search
A complete single-file 404 page with an original animated hot-air balloon SVG, a live-filtering search box and helpful recovery links that respect reduced motion.
Build a Responsive Navigation Bar With Mega Menu and Mobile Drawer in HTML
A complete single-file site header with a hover, click and arrow-key mega menu on desktop and an animated hamburger drawer with accordions on small screens.
Build an Accessible Modal, Toast and Tooltip Showcase in One HTML File
You get a single HTML page with a modal dialog, toast notifications and tooltips. All three use focus trapping, Escape handling, correct ARIA roles and live-region announcements.
Build a Multi-Step Onboarding Wizard with Stepper and Inline Validation
A four-step onboarding wizard in one HTML file, with a clickable stepper, progress bar, inline validation, a review screen, and keyboard and swipe navigation.
- Build a Button and Form Field States Reference Sheet in a Single HTML File
- Build a Color Blindness Simulator That Previews a Palette on a Dashboard Card
- Build a Draggable Color Harmony Wheel With Live UI Preview in One HTML File
- Build a Live Accessible Color Palette Builder with a WCAG Contrast Matrix
- Build a SaaS Landing Page Hero with a CSS-Drawn Product Mockup
- Build a Sortable, Filterable Data Table with Pagination in One HTML File