by pmontra · 4y ago · 0 comments
How would you do it differently? Icons outside the toggle at either end?
Your proposal is good, sun to the left, moon to the right, the toggle on the active side.
Or, as the active state is self evident, only a moon button when the light theme is on and only a sun button when the dark them is active. No toggle needed.
Makes the most sense to me.
Sun <0- > Moon
Sun < -0> Moon
This one is also quite interesting: https://codemyui.com/sun-to-moon-on-off-switch/
This one is sort of the opposite of the first - lovely execution, but the actual switch has the same problem as OP identified: https://codepen.io/steve_walson/pen/oNprgre
I'll think about it and I'll see what can I do.