Your chosen theme on Tildes now carries over to the Blog and Docs sites
No functional changes, but the themes available on Tildes itself now transfer over to the Blog/Docs sites (previously those sites were always using the "Solarized Light" color scheme). It was a little painful before if you were using a dark theme and clicking something like the "Formatting help" link took you to a bright page, so this should be a lot better.
There's currently no way to select a theme from the other sites, just on Tildes itself, but it should carry over when you've selected one here (using the dropdown in the footer if you're logged out, or through the settings page if you're logged in).
Please let me know if you come across any issues with it. It was pretty straightforward overall, but it did involve redoing a lot of the CSS and HTML for the Blog/Docs sites, so it's very possible that I messed some pages up and haven't noticed yet.
This is great, it was always jarring when switching to viewing the docs.
Pretty cool. How was this accomplished? Cookies/LocalStorage?
Right, as long as you set the
domain
field on a cookie it can be shared across subdomains. We weren't doing that before, but @Bauke updated the theme-selector code to start doing it. I also added some temporary code last night that will "upgrade" everyone's existing theme cookies to add the domain whenever they load a page, otherwise this wouldn't have worked for anyone until they picked a theme again.Perfect, thanks for the explanation Bauke.
Ah. Clever! I should take note of that. Sounds like something I could use in the future.
Nicely done. One doesn't think about sucth things a lot, but it's these details that make an experience.
How was it accomplished? I'd always assume that user data is always confined to the domain, excluding the upper-level subdomains.
That explains why I never noticed they were different! :)
Nice.