Post 9lmLufmCoNhgDi2gPw by syme@masto.nixnet.xyz
 (DIR) More posts by syme@masto.nixnet.xyz
 (DIR) Post #9lmHvUVJo9LfjTHIx6 by kev@fosstodon.org
       2019-08-11T13:27:57Z
       
       0 likes, 0 repeats
       
       Playing around with re-doing my website in Grav. Questions is, do I code a light theme, or dark?
       
 (DIR) Post #9lmIRDVgWjOmIDZs6y by mjjzf@mstdn.io
       2019-08-11T13:33:30Z
       
       0 likes, 0 repeats
       
       @kev I always thought your light theming was very pleasant to look at.
       
 (DIR) Post #9lmITKgAqKcv6gUb9E by kev@fosstodon.org
       2019-08-11T13:33:57Z
       
       0 likes, 0 repeats
       
       @mjjzf that's very kind, thank you.
       
 (DIR) Post #9lmJeXw3zrKbMNpsaO by sheogorath@microblog.shivering-isles.com
       2019-08-11T13:47:05Z
       
       0 likes, 0 repeats
       
       @kev Don't know why but while I like dark themes for applications, when it comes to reading articles, I prefer a white background.I recently even switched my code editor to a light theme for a while. It makes it a lot easier to work and read outside :)
       
 (DIR) Post #9lmLufmCoNhgDi2gPw by syme@masto.nixnet.xyz
       2019-08-11T14:09:36Z
       
       0 likes, 0 repeats
       
       @kev Lots of text -> whiteException is code, because contrast
       
 (DIR) Post #9lmRLuWCbpfFWyMds0 by murtezayesil@fosstodon.org
       2019-08-11T15:13:31Z
       
       0 likes, 0 repeats
       
       @kev It should switch according the time of the day. Can you add a JavaScript which loads CSS according to client's system time?
       
 (DIR) Post #9lmRR10buBkX6n1O8e by kev@fosstodon.org
       2019-08-11T15:14:30Z
       
       0 likes, 0 repeats
       
       @murtezayesil yeah, I could do that, but if I were to go to the trouble of doing so, I'd probably just place a rocker switch on the site, rather than forcing visitors to have one theme or the other.
       
 (DIR) Post #9lmUbm6lwg6vwWj3tA by lx@infosec.exchange
       2019-08-11T15:49:53Z
       
       0 likes, 0 repeats
       
       @kev @murtezayesil a switch with the daytime used for the default setting? 🤔
       
 (DIR) Post #9lmUfYopIUO9sv8Y2i by lx@infosec.exchange
       2019-08-11T15:50:39Z
       
       0 likes, 0 repeats
       
       @kev honestly, unless you are in a dark place, a light theme is more comfortable, to me at least.
       
 (DIR) Post #9lnTW5Tp6S5nURBwqe by blunaxela@fosstodon.org
       2019-08-12T03:12:10Z
       
       0 likes, 0 repeats
       
       @kevI thought I read about a web standard that covered just this. That way your site can let the client choose depending on their preference! No idea where it's at.
       
 (DIR) Post #9lnownnN3oU1UvumWm by kev@fosstodon.org
       2019-08-12T07:12:36Z
       
       0 likes, 0 repeats
       
       @blunaxela yeah, I'm considering implementing something like that.
       
 (DIR) Post #9lo10XZ8XhOjlro1iq by _mark@fosstodon.org
       2019-08-12T09:27:40Z
       
       0 likes, 0 repeats
       
       @kevPat David covered a way of switching themes using local storage to keep the setting without using cookies.https://patdavid.net/2018/05/switching-themes/He's on Mastodon too I've just seen. @patdavid thanks for your content. :)
       
 (DIR) Post #9lo2ofyhdibaILEbke by kev@fosstodon.org
       2019-08-12T09:48:02Z
       
       0 likes, 0 repeats
       
       @_mark excellent, this will save me a couple hours research!Thank you, @patdavid, this is awesome.
       
 (DIR) Post #9lo8pH6wBEOzBXksJE by _mark@fosstodon.org
       2019-08-12T10:55:22Z
       
       0 likes, 0 repeats
       
       @kev @patdavidNo worries. I've been stalking Pats site for a while now, just don't tell him ;)
       
 (DIR) Post #9locTQhapwjRBaOrFg by blunaxela@fosstodon.org
       2019-08-12T16:27:38Z
       
       0 likes, 0 repeats
       
       @kev Ah, it's part of CSS called prefers-color-scheme. Pretty neat feature, but not universally supported, although that might change since IE/Edge will be (is?) based on chromium.https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme