mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-18 21:45:06 -04:00
add auto theme
switches between white and dark, based on browser's theme
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
if(user_preferences.theme === 'auto')
|
||||
link(rel="stylesheet", type="text/css", href="/css/dark.css", media="(prefers-color-scheme: dark)")
|
||||
if(user_preferences.theme === 'dark')
|
||||
link(rel="stylesheet", type="text/css", href="/css/dark.css")
|
||||
if(user_preferences.theme === 'sepia')
|
||||
|
||||
Reference in New Issue
Block a user