Dark Theme Card
HTML / CSS
20 pts
Dark Theme Card
The cards already use var(--bg) and var(--text). Add a .dark rule that sets --bg: #1f2937; and --text: #f9fafb; so the card inside .dark becomes dark. Do not change the .card rule and keep the light card white.
Checklist
- Create a
.darkrule with the two dark values. - The dark card is dark with light text.
- The light card stays white.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
