Make web UI dark mode only, drop prefers-color-scheme light theme

This commit is contained in:
Honey committed 2026-07-21 23:59:23 +02:00
1 parent 8798466e5b
commit c0192fca7a
1 file changed
+3 -16
+3 -16
View File
@@ -5,21 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Paperwall</title> <title>Paperwall</title>
<style> <style>
:root { /* Dark mode only, no light theme -- doesn't follow prefers-color-scheme. */
--bg: #f6f6f4;
--surface: #ffffff;
--border: #e3e3e0;
--text: #1a1a1a;
--text-muted: #6b6b68;
--accent: #1a1a1a;
--accent-contrast: #ffffff;
--success: #1a7a3d;
--danger: #b3261e;
--radius: 12px;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.05);
}
@media (prefers-color-scheme: dark) {
:root { :root {
--bg: #121212; --bg: #121212;
--surface: #1c1c1c; --surface: #1c1c1c;
@@ -30,8 +16,9 @@
--accent-contrast: #121212; --accent-contrast: #121212;
--success: #3fb26f; --success: #3fb26f;
--danger: #e4685a; --danger: #e4685a;
--radius: 12px;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35); --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35);
} color-scheme: dark;
} }
* { box-sizing: border-box; } * { box-sizing: border-box; }