Websites, apps & code / Building websites

Add dark mode to a page

The page is glaring at night and you want a light and dark switch that remembers the visitor choice.

1Fill in your details

Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).

2Pick a variationSwitching method

3Copy the prompt

I have a web page: A plain HTML and CSS single page, orange and white. Please add dark mode.

First ask me up to 3 questions (for example whether any images have white backgrounds) and list the places that need changing. Give code only after I agree.

Requirements:
- Switching method: Follow the phone light or dark setting with no button, the simplest route.
- Move colours into CSS variables instead of copying a dark stylesheet everywhere
- Dark background should not be pure black and text must keep clear contrast
- Images and icons must stay visible in dark mode; list which ones need separate handling
- No white flash on load
- No paid services

Output format: questions and change list first, then the CSS and JavaScript to change after I confirm, with a note on where to paste each.

[Make it sound human]
- Explain in plain words; no pleasantry openers or empty summaries.
- Only necessary, short, practical code comments; the simplest working approach, no over-engineering.
- Interface text (buttons, hints, error messages) should sound like a person wrote it; no "seamless", "empower", "unlock".
[Quality] Code must run as is and handle common errors; tell me how to test it and confirm it works; ask first if a requirement is unclear; never put passwords or API keys in the code.

Paste it into ChatGPT, Gemini, Claude or Meta AI.

Test result

This one was not tested on its own. Uses in this category share the same structure, and we spot-tested several of them, for example: Restaurant or café menu page, Service business page

AI tools that suit this

  • Claude Suggested tool Free plan

    Strong at long documents, editing and code

  • ChatGPT Suggested tool Free plan

    The most widely used AI chat, for writing, questions and images

  • Cursor Suggested tool Free plan

    AI code editor

Recommendations only, not sponsored. Check each site for what the free plan includes.

This site is made by FullMark Tech

Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.

Ask on WhatsApp See FullMark Tech services