what's the laziest dark mode implementation? is there a 3-liner code change? 😄 asking for a friend (not me)
Conversation
Notices
-
ayo (ayo@social.ayco.io)'s status on Thursday, 16-May-2024 21:56:36 JST ayo -
Chee Aun (cheeaun@mastodon.social)'s status on Thursday, 16-May-2024 21:56:33 JST Chee Aun @ayo I'm aware of these two:
- 2019: https://chenhuijing.com/blog/friends-dont-let-friends-implement-dark-mode-alone/
- 2023: https://meyerweb.com/eric/thoughts/2023/01/16/minimal-dark-mode-styling/ -
Aral Balkan (aral@mastodon.ar.al)'s status on Thursday, 16-May-2024 21:56:33 JST Aral Balkan @cheeaun @ayo Also: https://ar.al/2021/08/24/implementing-dark-mode-in-a-handful-of-lines-of-css-with-css-filters/
In conversation permalink Attachments
-
Aral Balkan (aral@mastodon.ar.al)'s status on Thursday, 16-May-2024 21:58:58 JST Aral Balkan @ayo @cheeaun PS. There was an issue with full screen videos getting inverted by mistake on some browser, will look it up and send you a link to the fix
In conversation permalink -
ayo (ayo@social.ayco.io)'s status on Thursday, 16-May-2024 21:58:59 JST ayo In conversation permalink -
Aral Balkan (aral@mastodon.ar.al)'s status on Thursday, 16-May-2024 23:36:12 JST Aral Balkan @ayo @cheeaun Ah, actually, I’d apparently updated the blog post with it so you should be fine :) (Go me, being organised and all.)
In conversation permalink -
ayo (ayo@social.ayco.io)'s status on Thursday, 16-May-2024 23:36:13 JST ayo In conversation permalink -
Aral Balkan (aral@mastodon.ar.al)'s status on Friday, 17-May-2024 01:42:11 JST Aral Balkan @sknob @cheeaun @ayo Ah, yes, you’d have to apply a span and a class to those to fix it. Which is not a bad idea as you will likely want to provide aria descriptions for them or hide them from screen readers if they’re purely cosmetic.
In conversation permalink -
sknob ⏚ (sknob@mamot.fr)'s status on Friday, 17-May-2024 01:42:13 JST sknob ⏚ @aral @cheeaun @ayo
Nice, thanks! Only issue I have is with emoji inside the text, although they do look cool and spooky inverted :)In conversation permalink
-