Adding light theme
This commit is contained in:
1 parent
4785fd5f87
commit
c5d1186b95
1 file changed
+36
-6
@@ -7,6 +7,9 @@
|
||||
--muted: #94a3b8;
|
||||
--primary: #6366f1;
|
||||
--danger: #ef4444;
|
||||
--link: #a5b4fc;
|
||||
--danger-fg: #fca5a5;
|
||||
--shadow-lg: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -22,7 +25,7 @@ body {
|
||||
}
|
||||
|
||||
a {
|
||||
color: #a5b4fc;
|
||||
color: var(--link);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -109,7 +112,7 @@ a:hover {
|
||||
|
||||
.nav-label {
|
||||
cursor: default;
|
||||
color: #a5b4fc;
|
||||
color: var(--link);
|
||||
white-space: nowrap;
|
||||
user-select: none;
|
||||
display: flex;
|
||||
@@ -138,7 +141,7 @@ a:hover {
|
||||
padding: 0.3rem 0;
|
||||
min-width: 190px;
|
||||
z-index: 200;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
||||
box-shadow: 0 8px 24px var(--shadow-lg);
|
||||
}
|
||||
|
||||
.nav-group:hover>.nav-dropdown {
|
||||
@@ -151,7 +154,7 @@ a:hover {
|
||||
gap: 0.5rem;
|
||||
padding: 0.38rem 0.9rem;
|
||||
white-space: nowrap;
|
||||
color: #a5b4fc;
|
||||
color: var(--link);
|
||||
}
|
||||
|
||||
.nav-dropdown a:hover {
|
||||
@@ -525,7 +528,7 @@ textarea:focus {
|
||||
.btn-danger {
|
||||
background: transparent;
|
||||
border-color: var(--danger);
|
||||
color: #fca5a5;
|
||||
color: var(--danger-fg);
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
@@ -558,8 +561,35 @@ textarea:focus {
|
||||
.alert {
|
||||
background: rgba(239, 68, 68, 0.15);
|
||||
border: 1px solid var(--danger);
|
||||
color: #fca5a5;
|
||||
color: var(--danger-fg);
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
/* ─── Light theme ────────────────────────────────────────────────────────── */
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--bg: #f8fafc;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #f1f5f9;
|
||||
--border: #e2e8f0;
|
||||
--text: #0f172a;
|
||||
--muted: #64748b;
|
||||
--primary: #4f46e5;
|
||||
--danger: #dc2626;
|
||||
--link: #4338ca;
|
||||
--danger-fg: #b91c1c;
|
||||
--shadow-lg: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
/* Swap the select chevron to a darker arrow that reads on light backgrounds */
|
||||
select {
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
/* Soften the danger alert background on white cards */
|
||||
.alert {
|
||||
background: rgba(220, 38, 38, 0.08);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user