← Tasks

Design: Dark mode

It seems inevitable that at some point I will add this… 😅

The good news is that the entire site only uses 16 semantic colour variables and they’re quite easy to swap out. (Colours taken from Open UI)

Steps

  1. Determine dark mode CSS vars
  2. Pattern: Dark mode icons
  3. Pattern: Dark mode toggle button
  4. Frontend: Add dark mode toggle to sidebar
  5. Frontend: Switch CSS vars when in dark mode
  6. Frontend: Save dark mode setting to local storage
  7. Frontend: Load dark mode setting from local storage
T
tyro 1 year ago

Now live! Click the moon icon in the bottom left to turn dark mode on. ☀️🌑

C
chris 1 year ago

Dark mode looks sweet! Only thing I would say is that to me the icon to turn it back to light mode looks like a settings icon. I didn’t clock initially that it’s meant to be a sun.

👍 1
tyro reacted with :thumbs_up
T
tyro 1 year ago

Yes. Totally agree.

I use FontAwesome for icons, and it looks like they have some better options in the paid plans. Might have to shell out. 💰

T
tyro 1 year ago

And I’ve just noticed the scrollbar isn’t styled for dark mode. Will fix that too.

T
tyro 1 year ago

Updated the light mode icon and styled the scrollbars. ✅

image.png

Status
Done
Assignee
T
tyro
Due Not set
Following
C
T
Follow You're not tracking this item.