DEV Community

Discussion on: Notable dev.to Issues Up for Grabs

Collapse
 
ben profile image
Ben Halpern

Night mode ++ πŸ™‚

I wrote about the implementation here. It may not be super easy to get going with for community folks, so feel free to ping me with questions.

@CanNuhlar super in favor of the color scheme. I think it needs to be refined, but we can do that.

What I care more about is how this will technically work.

We'll have a setting on the user's profile, but we don't render the page from origin based on the user. Basically we load straight from the CDN and then load user data.

So I think this should be inserted at either:

  • The CDN layer on Fastly via custom VCL
  • Service worker layer.

I'd prefer service worker I think because it would be modestly more scalable. It's slightly less clear to me exactly how we'd do it but I'd love to go down that road and figure it out.

This is sort of separate from the concerns at the CSS layer. So we could start with just making this work some how with the CSS and go from there.

I may take a first cut at the basic alpha if I can squeeze it in at some point.