Give the agent the existing color-mode hook, not a local darkMode boolean
This story is from 2026-12-01. It is preserved in the archive; the latest stories are on the live feed.
The PR adds a theme toggle with a local darkMode boolean, a document.documentElement.classList.toggle("dark") , and maybe a raw localStorage key. The repo already has a useColorMode (or useTheme ) hook that owns the document class, the system preference, and persistence. Nearby header and settings…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-12-01 15:35 · DEV Community — AI
Give the agent the existing color-mode hook, not a local darkMode boolean