Centralize readable app theme colors

This commit is contained in:
rueeggeandre committed 2026-06-01 08:16:07 +02:00
1 parent c136f01f2e
commit 3cf07d0e1b
6 files changed
+59

No files matched your search

+54
View File
@@ -1,3 +1,57 @@
/* App-wide theme tokens
Keep Open Props' sizing/spacing, but pin semantic colors to a readable
light theme so pages do not inherit low-contrast dark-mode surfaces. */
:root {
color-scheme: light;
--surface-1: #ffffff;
--surface-2: #f8fafc;
--surface-3: #eef2f7;
--surface-4: #cbd5e1;
--text-1: #17202a;
--text-2: #3d4b5c;
--muted-text: #64748b;
--app-border: #cbd5e1;
--app-focus: #3157d5;
}
body {
background: var(--gray-0);
color: var(--text-1);
}
input,
select,
textarea,
button {
color: var(--text-1);
}
input[type="file"] {
background: var(--surface-2);
color: var(--text-1);
}
input[type="file"]::file-selector-button {
border: 1px solid var(--app-border);
border-radius: 6px;
background: var(--surface-1);
color: var(--text-1);
padding: 0.35rem 0.7rem;
margin-right: 0.75rem;
cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
background: var(--surface-3);
}
input:focus,
select:focus,
textarea:focus {
outline: 2px solid var(--app-focus);
outline-offset: 2px;
}
/* Mobile-first approach */
.map-container {
height: 100vh;