back

by porridgeraisin·3y ago·view on hn ↗
Wouldn't the following be a better version of the above.

Use css variables everywhere, and have a defs-dark.css and a defs-light.css that define the colors.

Then, on nginx, serve the correct stylesheet based on cookie value.

Better than subdomains for dark and light, no?

1 comments
My idea has the benefit that users can block the cookie if they want to and still use whatever mode they want, although they'd lose the redirection 'functionality' if they do that.