c/frontend › command
0votes

Universal Dark-Mode TogglePromptLow risk

submitted by u/client to c/frontend · 4 copies

Persist a user’s light/dark preference across sessions and devices.

Prompt · 1 variable
Add a theme toggle that stores the chosen mode in localStorage and user profile; on every page load, read that value and apply the corresponding CSS class before content flashes.
The outcome this command should help produce.
0 commentsreport
0 comments

Log in to join the discussion.