xonecas.io
8356
Wx

www-xonecas-io / commit cd50e09

dark mode draws structural lines in a quiet warm grey (edge), not bright ink (1039)

Co-Authored-By: Claude Opus 5.5

Sean Caetano Martin2026-11-08 cd50e09122d0b9fd870e45756251a960ccf08dde parent 912e3a0

12 files changed

internal/site/assets/site.css+9−7
@@ -1,7 +1,7 @@
11 @import "tailwindcss";
22 @plugin "@tailwindcss/typography";
33 @source "../templates";
4-@source inline("bg-{fe,be,both,none,h0,h1,h2,h3,h4,h5,h6,paper,card,ink,soft,line,empty,accent,det,pre,add,del} text-{t0,t1,t2,t3,t4,t5,t6}");
4+@source inline("bg-{fe,be,both,none,h0,h1,h2,h3,h4,h5,h6,paper,card,ink,soft,edge,line,empty,accent,det,pre,add,del} text-{t0,t1,t2,t3,t4,t5,t6}");
55
66 /* Every colour is light-dark(): the page follows the system, and data-theme forces one. */
77 @theme {
@@ -9,6 +9,8 @@
99 --color-card: light-dark(#fffaf0, #1d1b15);
1010 --color-ink: light-dark(#1a1a1a, #f1ead8);
1111 --color-soft: light-dark(#1a1a1ab3, #f1ead899);
12+ /* edge: structural lines. ink in light; in dark a quiet warm grey (3:1 on paper), so borders do not outshine text. */
13+ --color-edge: light-dark(#1a1a1a, #6b6453);
1214 --color-line: light-dark(#1a1a1a22, #f1ead81f);
1315 --color-empty: light-dark(#e7dfcd, #25231c);
1416 --color-accent: light-dark(#9e411c, #ffc94d);
@@ -70,7 +72,7 @@
7072 --tw-prose-code: var(--color-accent);
7173 --tw-prose-pre-code: var(--color-pre-fg);
7274 --tw-prose-pre-bg: var(--color-pre);
73- --tw-prose-th-borders: var(--color-ink);
75+ --tw-prose-th-borders: var(--color-edge);
7476 --tw-prose-td-borders: var(--color-line);
7577 font-size: 15.5px;
7678 }
@@ -106,14 +108,14 @@
106108 /* Two-thumb range: two range inputs stacked on a track under a bar per month, and only their thumbs take the pointer.
107109 The bars are inset by half a thumb so each lines up with the thumb position of its month. */
108110 .range { position: relative; height: 4rem; }
109-.range::before { content: ""; position: absolute; inset: auto 0 calc(.75rem - 1.5px); height: 3px; background: var(--color-ink); }
111+.range::before { content: ""; position: absolute; inset: auto 0 calc(.75rem - 1.5px); height: 3px; background: var(--color-edge); }
110112 #bars { position: absolute; inset: 0 .625rem 1.75rem; display: flex; align-items: flex-end; }
111113 #bars i { flex: 1; min-height: 2px; background: var(--color-line); }
112114 #bars i.on { background: var(--color-accent); }
113115 @media (width >= 40rem) { #bars { gap: 1px; } }
114116 .range input { position: absolute; inset: auto 0 0; height: 1.5rem; width: 100%; margin: 0; appearance: none; background: none; pointer-events: none; }
115-.range input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--color-ink); border-radius: 2px; background: var(--color-accent); cursor: grab; }
116-.range input::-moz-range-thumb { pointer-events: auto; width: 1.25rem; height: 1.25rem; box-sizing: border-box; border: 1.5px solid var(--color-ink); border-radius: 2px; background: var(--color-accent); cursor: grab; }
117+.range input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--color-edge); border-radius: 2px; background: var(--color-accent); cursor: grab; }
118+.range input::-moz-range-thumb { pointer-events: auto; width: 1.25rem; height: 1.25rem; box-sizing: border-box; border: 1.5px solid var(--color-edge); border-radius: 2px; background: var(--color-accent); cursor: grab; }
117119 .range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--color-ink); outline-offset: 2px; }
118120 .range input:focus-visible::-moz-range-thumb { outline: 2px solid var(--color-ink); outline-offset: 2px; }
119121
@@ -128,14 +130,14 @@
128130 /* Tag pools: linked chips pop in one after another (--i is their place), then lift and fill on hover. */
129131 .pool > a { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 18ms); transition: transform .12s, box-shadow .12s; }
130132 .pool > a > span { transition: background-color .12s, color .12s; }
131-.pool > a:hover, .pool > a:focus-visible { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--color-ink); }
133+.pool > a:hover, .pool > a:focus-visible { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--color-edge); }
132134 .pool > a:hover > span, .pool > a:focus-visible > span { background: var(--color-accent); color: var(--color-paper); }
133135 .pool > a:active { transform: none; box-shadow: none; }
134136 @keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.85); } }
135137 @media (prefers-reduced-motion: reduce) { .pool > a { animation: none; transition: none; } .pool > a:hover, .pool > a:focus-visible { transform: none; } }
136138
137139 /* Search suggestions (search.js): a card under the header search, the selected row in accent. */
138-#suggest { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; width: 100%; min-width: min(24rem, calc(100vw - 2rem)); background: var(--color-card); border: 1.5px solid var(--color-ink); border-radius: 2px; box-shadow: 3px 3px 0 var(--color-ink); font-size: .875rem; }
140+#suggest { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; width: 100%; min-width: min(24rem, calc(100vw - 2rem)); background: var(--color-card); border: 1.5px solid var(--color-edge); border-radius: 2px; box-shadow: 3px 3px 0 var(--color-edge); font-size: .875rem; }
139141 #suggest a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: baseline; padding: .375rem .75rem; color: inherit; text-decoration: none; }
140142 #suggest a + a { border-top: 1px solid var(--color-line); }
141143 #suggest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-soft); font-size: .8rem; }
internal/site/style.go+1−1
@@ -8,7 +8,7 @@ func styleData() map[string]any {
88 xc := Element{13, 61, "Xc", "xonecas.com", "fe", false}
99 cl := Element{75, 17, "Cl", "clanker-and-the-dev", "both", true}
1010 return map[string]any{
11- "Colours": []string{"paper", "card", "ink", "soft", "line", "empty", "accent", "det", "pre", "add", "del"},
11+ "Colours": []string{"paper", "card", "ink", "soft", "edge", "line", "empty", "accent", "det", "pre", "add", "del"},
1212 "Groups": []Element{{1, 0, "Fe", "frontend", "fe", false}, {2, 0, "Be", "backend", "be", false}, {3, 0, "Bo", "both", "both", false}, {4, 0, "Ne", "neither", "none", false}, {5, 0, "Po", "post-AI", "none", true}},
1313 "Big": mc,
1414 "Heat": []int{0, 2, 8, 27, 62, 205, 625},
internal/site/templates/activity.html+1−1
@@ -16,7 +16,7 @@
1616 {{range .Months}}<span class="h-7 rounded-[2px] bg-h{{.Heat}} text-t{{.Heat}} grid place-items-center font-semibold" title="{{.Month}}: {{.Count}} commits">{{if .Count}}{{.Count}}{{end}}</span>{{end}}
1717 </div>
1818 {{range .Days}}<section class="mt-5">
19- <div class="flex items-baseline justify-between border-b-[1.5px] border-ink pb-1"><h2 class="font-bold">{{.Label}}</h2><span class="text-xs text-soft">{{len .Commits}} commit{{if gt (len .Commits) 1}}s{{end}}</span></div>
19+ <div class="flex items-baseline justify-between border-b-[1.5px] border-edge pb-1"><h2 class="font-bold">{{.Label}}</h2><span class="text-xs text-soft">{{len .Commits}} commit{{if gt (len .Commits) 1}}s{{end}}</span></div>
2020 {{range .Commits}}{{template "commit-row" .}}{{end}}
2121 </section>{{else}}<p class="mt-6 font-serif italic text-soft">No commits in {{.Year}}.</p>{{end}}
2222 <nav class="pager" aria-label="Pages" data-page="{{.Page}}" data-pages="{{.Pages}}" data-href="/activity/{{.Year}}/{n}" hidden></nav>
internal/site/templates/browse.html+2−2
@@ -8,8 +8,8 @@
88 <div class="min-w-0">
99 <p class="font-mono text-sm mb-3 break-all">{{range $i, $c := .Crumbs}}{{if $i}} / {{end}}{{if eq (inc $i) (len $.Crumbs)}}<b>{{$c.Name}}</b>{{else}}<a href="{{$c.Href}}">{{$c.Name}}</a>{{end}}{{end}}</p>
1010 {{if .Entries}}{{template "file-tree" (dict "Entries" .Entries)}}
11- {{else}}<div class="border-[1.5px] border-ink rounded-[2px] bg-card overflow-hidden">
12- <div class="px-4 py-2 border-b-[1.5px] border-ink text-sm text-soft">{{.Size}}</div>
11+ {{else}}<div class="border-[1.5px] border-edge rounded-[2px] bg-card overflow-hidden">
12+ <div class="px-4 py-2 border-b-[1.5px] border-edge text-sm text-soft">{{.Size}}</div>
1313 {{with .Note}}<p class="px-4 py-6 font-serif italic text-soft">{{.}}</p>
1414 {{else}}<div class="bg-pre text-pre-fg overflow-x-auto [scrollbar-width:thin] font-mono text-[12.5px] leading-relaxed py-2">{{.Code}}</div>{{end}}
1515 </div>{{end}}
internal/site/templates/commit.html+1−1
@@ -1,7 +1,7 @@
11 {{define "commit.html"}}{{template "head" (list (printf "%s · %s" .C.Subject .Name) (printf "Commit %s in %s: %s" .C.Short .Name .C.Subject))}}{{template "nav" "Projects"}}
22 <main class="px-4 sm:px-8 py-6 max-w-[1440px] mx-auto">
33 {{template "project-head" (dict "Row" .Row "Here" (printf "commit %s" .C.Short))}}
4- <article class="border-[1.5px] border-ink rounded-[2px] bg-card mb-6">
4+ <article class="border-[1.5px] border-edge rounded-[2px] bg-card mb-6">
55 <h2 class="px-4 pt-3 text-xl font-bold break-words">{{.C.Subject}}</h2>
66 {{with .C.Body}}<pre class="px-4 pt-2 font-sans whitespace-pre-wrap break-words">{{.}}</pre>{{end}}
77 <p class="flex flex-wrap gap-x-3 px-4 py-3 mt-3 border-t border-line text-sm bg-empty">
internal/site/templates/components.html+7−7
@@ -1,14 +1,14 @@
11 {{/* Components. Each takes its view type from view.go. */}}
22
33 {{define "nav"}}
4-<header class="border-b-[1.5px] border-ink"><div class="flex flex-wrap items-center gap-x-6 gap-y-2 px-4 sm:px-8 py-3 max-w-[1440px] mx-auto">
4+<header class="border-b-[1.5px] border-edge"><div class="flex flex-wrap items-center gap-x-6 gap-y-2 px-4 sm:px-8 py-3 max-w-[1440px] mx-auto">
55 <a href="/" id="face" class="group relative flex items-center gap-2 font-bold text-xl"><img src="{{asset "/logo.svg"}}" alt="" width="32" height="32" class="rounded-[2px]">xonecas.io
66 <span id="quip" role="tooltip" class="pointer-events-none absolute left-0 top-full mt-2 z-10 hidden group-hover:block group-focus-visible:block w-max max-w-[18rem] rounded-[2px] bg-ink text-paper px-2 py-1 text-xs font-normal">Don't click!</span></a>
77 <nav class="flex gap-5 font-semibold">
88 {{range $l := list "Overview" "Projects" "Activity"}}<a href="{{if eq $l "Overview"}}/{{else}}/{{lower $l}}/{{end}}" class="{{if eq $l $}}underline underline-offset-[6px] decoration-[3px]{{else}}no-underline{{end}}">{{$l}}</a>{{end}}
99 </nav>
1010 <button id="theme" type="button" title="Light or dark" aria-label="Switch between light and dark" class="ml-auto p-1 cursor-pointer hover:text-accent"><svg viewBox="0 0 16 16" width="20" height="20" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5a6.5 6.5 0 0 1 0 13z" fill="currentColor"/></svg></button>
11- <form action="/projects/" class="relative w-full sm:w-auto"><input name="q" aria-label="Search projects" placeholder="Search projects" class="w-full sm:w-80 px-3 py-1.5 border-[1.5px] border-ink rounded-[2px] bg-card text-sm placeholder:text-soft">
11+ <form action="/projects/" class="relative w-full sm:w-auto"><input name="q" aria-label="Search projects" placeholder="Search projects" class="w-full sm:w-80 px-3 py-1.5 border-[1.5px] border-edge rounded-[2px] bg-card text-sm placeholder:text-soft">
1212 <div id="suggest" role="listbox" aria-label="Suggestions" hidden></div></form>
1313 </div></header>
1414 {{end}}
@@ -23,13 +23,13 @@
2323 {{end}}
2424
2525 {{define "tag"}}{{/* one of frontend, backend, small, big, pre-AI, post-AI */}}
26-<span class="inline-flex items-center gap-1.5 border-[1.5px] border-ink rounded-[2px] px-2 py-px text-[13px] font-semibold whitespace-nowrap">
26+<span class="inline-flex items-center gap-1.5 border-[1.5px] border-edge rounded-[2px] px-2 py-px text-[13px] font-semibold whitespace-nowrap">
2727 <i class="inline-block rounded-[1px] {{if eq . "frontend"}}size-2.5 bg-fe outline outline-tile-ink{{else if eq . "backend"}}size-2.5 bg-be outline outline-tile-ink{{else if eq . "small"}}size-1.5 bg-ink{{else if eq . "big"}}size-3 bg-ink{{else if eq . "pre-AI"}}size-2.5 bg-none{{else}}size-2.5 bg-none outline-[2.5px] -outline-offset-[2.5px] outline-tile-ink{{end}}"></i>{{.}}
2828 </span>
2929 {{end}}
3030
3131 {{define "topic"}}{{/* a specific tag, from the project's dependencies and docs: a tag without the marker */}}
32-<span class="inline-flex items-center border-[1.5px] border-ink rounded-[2px] px-2 py-px text-[13px] whitespace-nowrap">{{.}}</span>
32+<span class="inline-flex items-center border-[1.5px] border-edge rounded-[2px] px-2 py-px text-[13px] whitespace-nowrap">{{.}}</span>
3333 {{end}}
3434
3535 {{define "project-row"}}
@@ -45,7 +45,7 @@
4545 {{end}}
4646
4747 {{define "file-tree"}}{{/* dict "Head" Commit "Entries" []TreeEntry */}}
48-<div class="@container"><div class="border-[1.5px] border-ink rounded-[2px] bg-card text-[14.5px]">
48+<div class="@container"><div class="border-[1.5px] border-edge rounded-[2px] bg-card text-[14.5px]">
4949 {{with .Head}}<div class="flex flex-wrap gap-x-3 px-4 py-2 bg-empty text-sm"><b>{{.Author}}</b><span class="min-w-0 flex-1 truncate">{{.Msg}}</span>{{if .Href}}<a href="{{.Href}}" class="font-mono text-accent no-underline hover:underline">{{.Hash}}</a>{{else}}<code class="font-mono text-accent">{{.Hash}}</code>{{end}}<span class="text-soft">{{.Date}}</span></div>{{end}}
5050 {{range .Entries}}<div class="grid grid-cols-[1.25rem_minmax(0,1fr)_auto] @xl:grid-cols-[1.25rem_14rem_minmax(0,1fr)_6rem] gap-x-3 px-4 py-1.5 border-t border-line">
5151 <span class="text-accent">{{if .Dir}}▸{{else}}·{{end}}</span>
@@ -64,8 +64,8 @@
6464 {{end}}
6565
6666 {{define "diff"}}
67-<div class="border-[1.5px] border-ink rounded-[2px] bg-card overflow-hidden">
68- <div class="flex gap-3 px-4 py-2 border-b-[1.5px] border-ink text-sm"><b class="font-mono min-w-0 truncate">{{.Path}}</b><span class="ml-auto text-h4 font-semibold">+{{.Adds}}</span><span class="text-accent font-semibold">−{{.Dels}}</span></div>
67+<div class="border-[1.5px] border-edge rounded-[2px] bg-card overflow-hidden">
68+ <div class="flex gap-3 px-4 py-2 border-b-[1.5px] border-edge text-sm"><b class="font-mono min-w-0 truncate">{{.Path}}</b><span class="ml-auto text-h4 font-semibold">+{{.Adds}}</span><span class="text-accent font-semibold">−{{.Dels}}</span></div>
6969 <div class="overflow-x-auto [scrollbar-width:thin] [scrollbar-color:var(--color-soft)_transparent] font-mono text-[12.5px] leading-relaxed">
7070 {{range .Lines}}{{if eq .Op "@"}}<div class="px-4 py-1 bg-empty text-soft whitespace-pre">{{.Text}}</div>{{else}}<div class="dl{{if eq .Op "+"}} add{{else if eq .Op "-"}} del{{end}}"><i>{{if .Old}}{{.Old}}{{end}}</i><i>{{if .New}}{{.New}}{{end}}</i><b>{{.Op}}</b><span>{{.Text}}</span></div>{{end}}{{end}}
7171 {{with .Note}}<div class="px-4 py-2 font-sans text-sm text-soft italic">{{.}}</div>{{end}}
internal/site/templates/index.html+1−1
@@ -21,7 +21,7 @@
2121 </div>
2222 <div class="flex items-baseline justify-between mt-8 mb-2"><h2 class="font-bold text-lg">Recent</h2><span class="text-xs text-soft">by last commit</span></div>
2323 <div class="grid gap-3 sm:grid-cols-2 xl:grid-cols-3">{{range .Recent}}
24- <a href="/projects/{{.P.Name}}/" class="block border-[1.5px] border-ink rounded-[2px] bg-card p-3 no-underline hover:bg-empty">
24+ <a href="/projects/{{.P.Name}}/" class="block border-[1.5px] border-edge rounded-[2px] bg-card p-3 no-underline hover:bg-empty">
2525 <div class="flex items-center gap-3">{{template "element" (dict "El" .Row.El "Size" "sm")}}<b class="text-lg truncate">{{.P.Name}}</b><span class="ml-auto text-xs text-soft">{{.Row.Lang}}</span></div>
2626 <p class="mt-2 text-sm text-soft line-clamp-2 min-h-10">{{or .P.Description "No description"}}</p>
2727 <div class="grid grid-cols-12 gap-[2px] mt-2">{{range .Strip}}<span class="h-2.5 rounded-[1px] bg-h{{.Heat}}" title="{{.Month}}: {{.Count}}"></span>{{end}}</div>
internal/site/templates/project.html+5−5
@@ -16,28 +16,28 @@
1616 <div class="grid grid-cols-1 gap-8 lg:grid-cols-[minmax(0,1fr)_20rem]">
1717 <div class="min-w-0 space-y-6">
1818 {{template "file-tree" (dict "Head" .Head "Entries" .Entries)}}
19- <article class="border-[1.5px] border-ink rounded-[2px] bg-card">
20- <h2 class="px-4 py-2 border-b-[1.5px] border-ink font-mono text-sm font-semibold">{{or .P.Readme "README"}}</h2>
19+ <article class="border-[1.5px] border-edge rounded-[2px] bg-card">
20+ <h2 class="px-4 py-2 border-b-[1.5px] border-edge font-mono text-sm font-semibold">{{or .P.Readme "README"}}</h2>
2121 {{if .Readme}}<div class="prose max-w-none px-4 sm:px-6 py-4 overflow-x-auto">{{.Readme}}</div>
2222 {{else}}<p class="px-4 py-6 font-serif italic text-soft">No README. The files above are all there is.</p>{{end}}
2323 </article>
2424 </div>
2525 <aside class="space-y-6 text-sm">
2626 <section>
27- <h2 class="font-bold border-b-[3px] border-ink pb-1 mb-2">Languages</h2>
27+ <h2 class="font-bold border-b-[3px] border-edge pb-1 mb-2">Languages</h2>
2828 {{range .P.Languages}}<div class="grid grid-cols-[6rem_1fr_2.5rem] gap-2 items-center py-0.5"><span class="truncate">{{.Name}}</span>
2929 <div class="h-2.5 bg-empty rounded-[2px]"><div class="h-full bg-h3 rounded-[2px]" style="width:{{.Percent}}%"></div></div><span class="text-right text-soft">{{.Percent}}%</span></div>
3030 {{else}}<p class="text-soft">None detected</p>{{end}}
3131 </section>
3232 <section>
33- <h2 class="font-bold border-b-[3px] border-ink pb-1 mb-2">Sources</h2>
33+ <h2 class="font-bold border-b-[3px] border-edge pb-1 mb-2">Sources</h2>
3434 {{range .P.Sources}}<div class="py-1.5 border-b border-line">
3535 <a href="https://{{web .URL}}" class="font-semibold break-all">{{web .URL}}</a>
3636 <div class="text-soft">{{.Branch}} · {{.Commits}} commits</div>
3737 </div>{{end}}
3838 </section>
3939 <section>
40- <h2 class="flex items-baseline justify-between font-bold border-b-[3px] border-ink pb-1 mb-2">Clone <span id="copied" class="text-xs font-normal text-soft">click to copy</span></h2>
40+ <h2 class="flex items-baseline justify-between font-bold border-b-[3px] border-edge pb-1 mb-2">Clone <span id="copied" class="text-xs font-normal text-soft">click to copy</span></h2>
4141 <pre id="clone" title="Click to copy" class="bg-pre text-pre-fg rounded-[2px] px-4 py-3 font-mono text-[12.5px] whitespace-nowrap overflow-x-auto [scrollbar-width:thin] select-all cursor-pointer">git clone https://xonecas.io/{{.P.Name}}.git</pre>
4242 <script>/* The Clipboard API needs https or localhost; elsewhere, copy the selection. */
4343 clone.addEventListener("click", async () => {
internal/site/templates/style.html+7−7
@@ -3,9 +3,9 @@
33 <h1 class="text-4xl font-bold">Style</h1>
44 <p class="font-serif italic text-soft mt-1 mb-8">02's heat wall in 20's periodic table. Light and dark, side by side.</p>
55
6- <h2 class="text-xl font-bold border-b-[3px] border-ink pb-1 mb-4">Colour</h2>
6+ <h2 class="text-xl font-bold border-b-[3px] border-edge pb-1 mb-4">Colour</h2>
77 <div class="grid gap-4 lg:grid-cols-2 mb-10">{{range $t := list "light" "dark"}}
8- <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-ink rounded-[2px] p-4">
8+ <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-edge rounded-[2px] p-4">
99 <h3 class="font-bold mb-3">{{$t}}</h3>
1010 <div class="grid grid-cols-2 sm:grid-cols-4 gap-2 text-xs">{{range $.Colours}}
1111 <div><div class="h-10 rounded-[2px] border border-line bg-{{.}}"></div><code class="font-mono">{{.}}</code></div>{{end}}
@@ -17,7 +17,7 @@
1717 </section>{{end}}
1818 </div>
1919
20- <h2 class="text-xl font-bold border-b-[3px] border-ink pb-1 mb-4">Type</h2>
20+ <h2 class="text-xl font-bold border-b-[3px] border-edge pb-1 mb-4">Type</h2>
2121 <div class="mb-10 space-y-2">
2222 <div class="inline-block bg-det text-det-fg text-[88px] font-bold leading-[.9] tracking-tight px-3.5 pt-2.5 pb-1.5 rounded-[2px]">2,770</div>
2323 <p class="text-4xl font-bold">IBM Plex Sans Condensed 700 · headings</p>
@@ -27,15 +27,15 @@
2727 <p class="font-mono text-[12.5px]">Plex Mono 12.5px · hashes, paths, code</p>
2828 </div>
2929
30- <h2 class="text-xl font-bold border-b-[3px] border-ink pb-1 mb-4">Tags</h2>
30+ <h2 class="text-xl font-bold border-b-[3px] border-edge pb-1 mb-4">Tags</h2>
3131 <div class="grid gap-4 lg:grid-cols-2 mb-10">{{range $t := list "light" "dark"}}
32- <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-ink rounded-[2px] p-4 flex flex-wrap gap-2">{{range $.Tags}}{{template "tag" .}}{{end}}</section>{{end}}
32+ <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-edge rounded-[2px] p-4 flex flex-wrap gap-2">{{range $.Tags}}{{template "tag" .}}{{end}}</section>{{end}}
3333 </div>
3434
3535 {{range $c := list "nav" "project-row" "file-tree" "code" "diff" "commit-row"}}
36- <h2 class="text-xl font-bold border-b-[3px] border-ink pb-1 mb-4">{{$c}}</h2>
36+ <h2 class="text-xl font-bold border-b-[3px] border-edge pb-1 mb-4">{{$c}}</h2>
3737 <div class="grid gap-4 {{if ne $c "project-row"}}lg:grid-cols-2{{end}} mb-10">{{range $t := list "light" "dark"}}
38- <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-ink rounded-[2px] {{if ne $c "nav"}}p-4{{end}} min-w-0">
38+ <section data-theme="{{$t}}" class="bg-paper text-ink border-[1.5px] border-edge rounded-[2px] {{if ne $c "nav"}}p-4{{end}} min-w-0">
3939 {{if eq $c "nav"}}{{template "nav" "Projects"}}
4040 {{else if eq $c "project-row"}}{{range $.Rows}}{{template "project-row" .}}{{end}}
4141 {{else if eq $c "file-tree"}}{{template "file-tree" $.Tree}}
tickets/1039-dark-mode-needs-a-look-at-the-colors.md+20−0
@@ -0,0 +1,20 @@
1+---
2+id: 1039
3+title: Dark mode needs a look at the colors
4+type: bug
5+status: review
6+priority: p2
7+created: 2026-11-08T05:33:05Z
8+updated: 2026-11-08T05:45:09Z
9+source: human
10+moves: 2026-11-08T05:33:40Z inbox doing drag; 2026-11-08T05:33:43Z doing todo drag; 2026-11-08T05:40:33Z todo doing drag; 2026-11-08T05:45:09Z doing review agent
11+area: site
12+---
13+
14+Something is not quite right, the white lines are very dominant, making it not so dark. Take a pass at it with a designers eye
15+
16+## Notes
17+
18+- 2026-11-08 05:45Z (agent): Done. Dark mode drew every structural line (header rule, cards, chips, search box, file tree, h2 rules, slider track, suggest box, tag-hover shadow) in ink #f1ead8, which is 15:1 on paper, as bright as body text. That's why it read as not so dark.
19+ Change: a new token --color-edge = light-dark(#1a1a1a, #6b6453). Light mode is identical (edge = ink). In dark, edge is a warm grey at 3.1:1 on paper, which keeps the WCAG non-text minimum for the search input border while letting text and the accent lead. All 24 border-ink classes in the templates became border-edge, and site.css points the slider track, thumb border, tag-pool hover shadow, #suggest border and shadow, and README table header borders at edge. Focus outlines, the current pager …
20+ Checked: computed borders rgb(107,100,83) dark and rgb(26,26,26) light; dark screenshots of /, /projects/, a project page and /activity/ at 390; go vet and go test pass. Before/after crop attached. Not changed: text ink, paper and card, which the ticket didn't fault.
tickets/attachments/1039/dark-project-after.png+0−0
Binary file, not shown.
tickets/attachments/1039/dark-tags-before-after.png+0−0
Binary file, not shown.