49 votes

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.

8 comments

  1. tiz
    Link
    This is great, it was always jarring when switching to viewing the docs.

    This is great, it was always jarring when switching to viewing the docs.

    7 votes
  2. [4]
    unknown user
    Link
    Pretty cool. How was this accomplished? Cookies/LocalStorage?

    Pretty cool. How was this accomplished? Cookies/LocalStorage?

    5 votes
    1. [4]
      Comment deleted by author
      Link Parent
      1. Deimos
        Link Parent
        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...

        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.

        6 votes
      2. unknown user
        Link Parent
        Perfect, thanks for the explanation Bauke.

        Perfect, thanks for the explanation Bauke.

        3 votes
      3. unknown user
        Link Parent
        Ah. Clever! I should take note of that. Sounds like something I could use in the future.

        Ah. Clever! I should take note of that. Sounds like something I could use in the future.

        3 votes
  3. unknown user
    Link
    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,...

    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.

    3 votes
  4. Algernon_Asimov
    Link
    That explains why I never noticed they were different! :)

    (previously those sites were always using the "Solarized Light" color scheme).

    That explains why I never noticed they were different! :)

    1 vote