Re:I use excalidraw to manage my diagrams for my blog
by tasuki on Monday March 30, 2026 @03:42PM
(#47578789)
Ah, you have a button for the toggle! Did you know that you can conform to the user's light/dark preference with CSS? Like this:
Edit: To expand on this, I dislike light/dark toggles. If I have dark mode on, seeing a bright screen and having to search for a toggle is jarring. Just show me the colours according to my preference!
[ Parent
| on HN ]
Re:I use excalidraw to manage my diagrams for my blog
by auraham on Monday March 30, 2026 @05:06PM
(#47579708)
How can you detect the system preferences in the browser?
Re:I use excalidraw to manage my diagrams for my blog
by tasuki on Monday March 30, 2026 @05:26PM
(#47579911)
I answered that in the comment you're replying to. If you want a more authoritative answer: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...