Skip to content

Commit 3dd4468

Browse files
committed
Retire the dark patches that were hiding a token
Twenty-two of the fifty-nine dark-theme overrides were not carrying a decision. Nine repeated what the base rule already said in tokens. Others hard-coded a value a role already had a name for: #222b49 is --surface-soft, #151b28 is --surface, #3f4960 is --line-hover. A new --surface-sunken role covers the recessed fills — media frames, moderation inputs, the remove button — where light says --paper but dark wants something a shade above it. Where the two themes genuinely differ in shape rather than in role, the value moves into light-dark() on the base declaration, so the pair now sits on one line instead of two files apart. That gap is exactly how the last contrast bug survived. Verified with the colour snapshot: eight pages, both themes, thirteen changes, all of them border-colour on sides whose width is 0 — measured in the browser, not assumed. Nothing visible moved. What stays is deliberate: the seven-component panel group that flattens elevation in dark, the header and footer gradients, the accent hover states. The five near-white light surfaces underneath the panel group want unifying, but that belongs to the elevation decision in the typography pass, not here.
1 parent 7bf8193 commit 3dd4468

4 files changed

Lines changed: 29 additions & 71 deletions

File tree

‎src/styles/components.css‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
margin: 1.15rem 0 0 3.7rem;
374374
border: 1px solid var(--line);
375375
border-radius: 0.95rem;
376-
background: var(--paper);
376+
background: var(--surface-sunken);
377377
}
378378

379379
.post-media img {
@@ -559,7 +559,7 @@
559559
padding: 0.85rem 0.9rem;
560560
border: 1px solid var(--line);
561561
border-radius: 0.8rem;
562-
background: var(--paper);
562+
background: var(--surface-sunken);
563563
}
564564

565565
.record-moderation-target strong {
@@ -591,10 +591,10 @@
591591
width: 100%;
592592
min-height: 5.7rem;
593593
padding: 0.72rem 0.78rem;
594-
border: 1px solid var(--line-dark);
594+
border: 1px solid light-dark(var(--line-dark), var(--line));
595595
border-radius: 0.75rem;
596596
color: var(--ink);
597-
background: var(--paper);
597+
background: var(--surface-sunken);
598598
font: inherit;
599599
font-size: 0.8rem;
600600
line-height: 1.5;
@@ -637,9 +637,9 @@
637637
}
638638

639639
.record-moderation-cancel {
640-
border: 1px solid var(--line-dark);
640+
border: 1px solid light-dark(var(--line-dark), var(--line));
641641
color: var(--muted);
642-
background: var(--paper);
642+
background: var(--surface-sunken);
643643
}
644644

645645
.record-moderation-confirm {
@@ -677,7 +677,7 @@
677677
.post-footer {
678678
margin: 1.1rem 0 0 3.7rem;
679679
padding-top: 0.75rem;
680-
border-top: 1px solid #edf0f5;
680+
border-top: 1px solid light-dark(#edf0f5, #242c3d);
681681
}
682682

683683
.post-footer a {

‎src/styles/pages.css‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
.pagination-direction > a:hover {
4343
color: var(--orbit-blue);
44-
background: rgba(82, 103, 217, 0.07);
44+
background: light-dark(rgba(82, 103, 217, 0.07), var(--surface-hover));
4545
}
4646

4747
.pagination-direction span:not(.pagination-placeholder) {
@@ -963,7 +963,7 @@
963963

964964
.reply-avatar-stack .agent-avatar {
965965
margin-left: -0.35rem;
966-
border: 2px solid #fff;
966+
border: 2px solid var(--surface);
967967
box-shadow: 0 2px 7px rgba(26, 34, 59, 0.14);
968968
}
969969

@@ -975,8 +975,8 @@
975975
align-items: center;
976976
gap: 0.65rem;
977977
padding: 0.72rem 1.1rem;
978-
color: #626c84;
979-
background: linear-gradient(90deg, #f6f4ff, #f4f7ff);
978+
color: light-dark(#626c84, var(--muted));
979+
background: light-dark(linear-gradient(90deg, #f6f4ff, #f4f7ff), linear-gradient(90deg, #201d32, #1a2234));
980980
font-size: 0.66rem;
981981
text-decoration: none;
982982
}
@@ -2126,7 +2126,7 @@
21262126
border: 0;
21272127
border-left: 1px solid var(--line);
21282128
color: var(--muted);
2129-
background: color-mix(in srgb, var(--paper) 48%, var(--surface));
2129+
background: light-dark(color-mix(in srgb, var(--paper) 48%, var(--surface)), var(--surface-sunken));
21302130
font-size: 0.68rem;
21312131
font-weight: 800;
21322132
cursor: pointer;

‎src/styles/theme.css‎

Lines changed: 16 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ html[data-theme="dark"] {
88
--surface-hover: #1a2232;
99
--surface-nav-active: #1a2232;
1010
--surface-soft: #222b49;
11+
--surface-sunken: #111724;
1112
--ink: #edf1fb;
1213
--ink-body: #d8deeb;
1314
--muted: #a1abc0;
@@ -42,53 +43,36 @@ html[data-theme="dark"] .site-header {
4243
box-shadow: 0 1px 16px rgba(0, 0, 0, 0.18);
4344
}
4445

46+
/* Taban kuralı zaten --line/--surface kullananlar bu listeden çıkarıldı;
47+
burada kalanlar koyu temada gerçekten farklı bir yüzeye düşüyor. */
4548
html[data-theme="dark"] .header-search-form,
4649
html[data-theme="dark"] .header-mobile-search,
4750
html[data-theme="dark"] .header-saved,
4851
html[data-theme="dark"] .search-form,
49-
html[data-theme="dark"] .search-project,
50-
html[data-theme="dark"] .search-agent,
51-
html[data-theme="dark"] .search-post,
52-
html[data-theme="dark"] .search-post-list,
5352
html[data-theme="dark"] .search-more,
54-
html[data-theme="dark"] .search-filters select,
55-
html[data-theme="dark"] .saved-record,
56-
html[data-theme="dark"] .topic-card,
5753
html[data-theme="dark"] .topic-hero,
58-
html[data-theme="dark"] .project-card,
5954
html[data-theme="dark"] .project-hero,
60-
html[data-theme="dark"] .project-agents > div > a,
6155
html[data-theme="dark"] .project-empty,
6256
html[data-theme="dark"] .reply-overview,
6357
html[data-theme="dark"] .saved-empty {
6458
border-color: var(--line);
6559
background: var(--surface);
6660
}
6761

68-
html[data-theme="dark"] .saved-remove {
69-
border-color: var(--line);
70-
background: #111724;
71-
}
72-
7362
html[data-theme="dark"] .header-search-form:focus-within {
7463
color: #aeb9ff;
75-
border-color: #3f4960;
76-
background: #1b2231;
64+
border-color: var(--line-hover);
65+
background: var(--surface-control-hover);
7766
}
7867

7968
html[data-theme="dark"] .header-saved:hover {
8069
color: #aeb9ff;
81-
border-color: #3f4960;
82-
background: #1b2231;
70+
border-color: var(--line-hover);
71+
background: var(--surface-control-hover);
8372
}
8473

8574
/* nav/kart hover'ları, kontrol yüzeyleri ve durum renkleri token'dan geliyor;
8675
bunlara ayrı dark yaması gerekmiyor. */
87-
html[data-theme="dark"] .pagination-direction > a:hover {
88-
background: var(--surface-hover);
89-
}
90-
91-
html[data-theme="dark"] .theme-toggle:hover,
9276
html[data-theme="dark"] .equinox-link:hover {
9377
color: var(--orbit-blue);
9478
}
@@ -110,6 +94,11 @@ html[data-theme="dark"] .truth-note strong {
11094
color: #c2b3f3;
11195
}
11296

97+
/* Panel yükseltisi: açık temada bu yedi bileşenin beşi birbirine yakın ama
98+
farklı beyazlar ve gölgeler kullanıyor; koyu temada hepsi tek yüzeye iniyor.
99+
Bu kasıtlı bir sadeleşme, kayıp bir token değil — bu yüzden yama olarak
100+
duruyor. Açık taraftaki beş varyantın tekilleşmesi tipografi/boşluk turunun
101+
(adım 4) elevation kararıyla birlikte yapılacak. */
113102
html[data-theme="dark"] .feed-empty,
114103
html[data-theme="dark"] .network-section,
115104
html[data-theme="dark"] .rail-links,
@@ -137,60 +126,28 @@ html[data-theme="dark"] .post-card:hover {
137126
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
138127
}
139128

140-
html[data-theme="dark"] .record-moderation-dialog {
141-
border-color: var(--line);
142-
background: #151b28;
143-
}
144-
145-
html[data-theme="dark"] .record-moderation-target,
146-
html[data-theme="dark"] .record-moderation-field textarea,
147-
html[data-theme="dark"] .record-moderation-cancel {
148-
border-color: var(--line);
149-
background: #111724;
150-
}
151-
152129
/* Metin rengi artık accent'in kelepçelenmiş türevinden geliyor; burada yalnız
153130
koyu zeminin dolgusu kalıyor. */
154131
html[data-theme="dark"] .post-byline > span {
155-
background: color-mix(in srgb, var(--agent-accent) 18%, #151b28);
132+
background: color-mix(in srgb, var(--agent-accent) 18%, var(--surface));
156133
}
157134

158135
html[data-theme="dark"] .project-attachment {
159136
border-color: var(--line);
160137
background: #111724;
161138
}
162139

163-
html[data-theme="dark"] .post-media,
164-
html[data-theme="dark"] .post-media figcaption {
165-
border-color: var(--line);
166-
background: #111724;
167-
}
168-
169140
html[data-theme="dark"] .post-media img {
170141
background: #0d121c;
171142
}
172143

173-
html[data-theme="dark"] .post-footer {
174-
border-color: #242c3d;
175-
}
176-
177-
html[data-theme="dark"] .comment-icon,
178144
html[data-theme="dark"] .reply-heading > span {
179-
background: #222b49;
180-
}
181-
182-
html[data-theme="dark"] .reply-avatar-stack .agent-avatar {
183-
border-color: #151b28;
184-
}
185-
186-
html[data-theme="dark"] .reply-context {
187-
color: var(--muted);
188-
background: linear-gradient(90deg, #201d32, #1a2234);
145+
background: var(--surface-soft);
189146
}
190147

191148
html[data-theme="dark"] .profile-hero .avatar-large {
192-
border-color: #151b28;
193-
background: #151b28;
149+
border-color: var(--surface);
150+
background: var(--surface);
194151
}
195152

196153
html[data-theme="dark"] .site-footer {

‎src/styles/tokens.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
--surface-hover: #f4f6fb;
1717
--surface-nav-active: rgba(255, 255, 255, 0.8);
1818
--surface-soft: #eef1ff;
19+
--surface-sunken: #f3f5f9;
1920
--ink: #172033;
2021
--ink-body: #2b3346;
2122
--muted: #5c667b;

0 commit comments

Comments
 (0)