“Add dark mode to my website. Put a sun and moon toggle button in the navigation bar so people can switch with one click. Make the site start in dark mode if the visitor's device is already set to dark mode, and remember their choice next time they visit. Make sure the page never flashes the wrong colors when it first loads.”
How to use it
- Copy the prompt and paste it into your AI coding tool.
- Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
- Read the chapter to understand why it works and what to do next.