byte[]
Philomena Contributor
The default color scheme for the site is dark if your browser reports having dark color scheme as a system preference. This requires no login at all (and indeed, when I open a new tab in private mode, the site renders with the dark theme).
link rel="stylesheet" href=stylesheet_path(@conn, @current_user)
= if is_nil(@current_user) do
link rel="stylesheet" href=dark_stylesheet_path(@conn) media="(prefers-color-scheme: dark)"
Obviously this isn’t 100% ideal, and it should be a local setting.