Interview practice question
Implementing dark mode in an existing app
Frontend Engineering · HTML and CSS · Intermediate
You're asked to add dark mode to an existing web app with hard-coded colours everywhere. How do you approach it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Audit colours; define semantic tokens.
- Replace hard-coded values with custom properties.
- System preference + user toggle saved.
- Avoid flash on load (set theme early).
- Test contrast, images, shadows.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.