4 ms·
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. T
by porridgeraisin 3y ago
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?
- onion2k 3y agoMy 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.