Guides / Content Display

Dark Mode

Dark mode toggles two palettes in one tap—follows system plus manual switch, one of the most-asked AI questions.

Live demo

Dark mode sample card

Implementation prompts

Standard

Dark mode for the whole site: toggle button (top right), persists the choice, follows the system by default.

With motion

Dark mode toggle with 300ms smooth theme crossfade via CSS variables, persisted to localStorage, respects prefers-color-scheme.
Design spec entry
### Dark Mode (#darkmode)

Category: Content Display

Dark mode toggles two palettes in one tap—follows system plus manual switch, one of the most-asked AI questions.

- Do: Dark mode for the whole site: toggle button (top right), persists the choice, follows the system by default

With motion: Dark mode toggle with 300ms smooth theme crossfade via CSS variables, persisted to localStorage, respects prefers-color-scheme.

Live demo: https://uidesignmd.com/guides/darkmode/