Skip to content

Commit 3e1cc00

Browse files
committed
fix(overclock-assets): dark-theme contrast and phone layout
globals.css repaints hex utility classes (text-[#120f0a], border-[#120f0a], bg-[#fee9cf]...) under .dark, which turned the kit cream-on-paper. The page now uses its own palette vars. On phones: 2-up swatches, shorter tiles, stacked captions.
1 parent 57cc1d0 commit 3e1cc00

1 file changed

Lines changed: 37 additions & 31 deletions

File tree

‎app/overclock-assets/page.tsx‎

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,41 @@ const RULES = [
4949
<>no aggregate numbers (members, forks, events). per-event facts stay with the event.</>,
5050
];
5151

52+
// page palette as CSS vars: globals.css repaints the hex classes (text-[#120f0a] etc.) under .dark
53+
const PALETTE = {
54+
"--ink": "#120f0a", "--ink-2": "#413f3b", "--mute": "#716f6c", "--paper": "#faf8f5", "--paper-2": "#f1eee9",
55+
"--cream": "#fee9cf", "--orange": "#fc920d", "--burgundy": "#97192c", "--warm": "#c94218", "--red": "#ff2b2b",
56+
} as React.CSSProperties;
57+
5258
const shadow = "shadow-[4px_4px_0_#120f0a]";
5359
const anton = "font-[family-name:var(--font-accent-sans)] uppercase";
5460

5561
function Tile({ a, wide }: { a: Asset; wide?: boolean }) {
5662
const ground =
5763
a.tile === "dark"
58-
? "bg-[#120f0a]"
59-
: "bg-[#f1eee9] [background-image:radial-gradient(circle,rgba(18,15,10,.1)_1px,transparent_1.4px)] [background-size:7px_7px]";
64+
? "bg-[var(--ink)]"
65+
: "bg-[var(--paper-2)] [background-image:radial-gradient(circle,rgba(18,15,10,.1)_1px,transparent_1.4px)] [background-size:7px_7px]";
6066
return (
61-
<figure className={`flex flex-col border-2 border-[#120f0a] bg-[#faf8f5] ${shadow} ${wide ? "sm:col-span-2" : ""}`}>
62-
<div className={`flex flex-1 items-center justify-center border-b-2 border-[#120f0a] p-4 ${ground}`}>
67+
<figure className={`flex flex-col border-2 border-[var(--ink)] bg-[var(--paper)] ${shadow} ${wide ? "sm:col-span-2" : ""}`}>
68+
<div className={`flex flex-1 items-center justify-center border-b-2 border-[var(--ink)] p-3 sm:p-4 ${ground}`}>
6369
<Image
6470
src={`/overclock-assets/${a.slug}.png`}
6571
alt={a.title}
6672
width={a.w}
6773
height={a.h}
68-
className="h-auto max-h-[420px] w-auto max-w-full"
74+
className="h-auto max-h-[240px] w-auto max-w-full sm:max-h-[420px]"
6975
/>
7076
</div>
71-
<figcaption className="flex items-end justify-between gap-3 p-3">
77+
<figcaption className="flex flex-col items-start gap-2 p-3 sm:flex-row sm:items-end sm:justify-between sm:gap-3">
7278
<div className="min-w-0">
7379
<div className={`${anton} text-lg leading-none`}>{a.title}</div>
74-
{a.hex && <div className="mt-1 font-mono text-xs font-bold text-[#97192c]">{a.hex}</div>}
75-
{a.note && <p className="mt-1 font-serif text-xs text-[#413f3b]">{a.note}</p>}
80+
{a.hex && <div className="mt-1 font-mono text-xs font-bold text-[var(--burgundy)]">{a.hex}</div>}
81+
{a.note && <p className="mt-1 font-serif text-xs text-[var(--ink-2)]">{a.note}</p>}
7682
</div>
7783
<a
7884
href={`/overclock-assets/${a.slug}.png`}
7985
download
80-
className="shrink-0 border-2 border-[#120f0a] bg-[#fc920d] px-2 py-1 font-mono text-[11px] font-bold uppercase tracking-widest text-[#120f0a] hover:bg-[#120f0a] hover:text-[#fee9cf]"
86+
className="shrink-0 border-2 border-[var(--ink)] bg-[var(--orange)] px-2 py-1 font-mono text-[11px] font-bold uppercase tracking-widest text-[var(--ink)] hover:bg-[var(--ink)] hover:text-[var(--cream)]"
8187
>
8288
download .png
8389
</a>
@@ -86,9 +92,9 @@ function Tile({ a, wide }: { a: Asset; wide?: boolean }) {
8692
);
8793
}
8894

89-
function Grid({ items, cols = "sm:grid-cols-2 lg:grid-cols-3" }: { items: Asset[]; cols?: string }) {
95+
function Grid({ items, cols = "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3" }: { items: Asset[]; cols?: string }) {
9096
return (
91-
<div className={`grid grid-cols-1 gap-6 ${cols}`}>
97+
<div className={`grid gap-4 sm:gap-6 ${cols}`}>
9298
{items.map((a) => (
9399
<Tile key={a.slug} a={a} wide={a.w > 700 && !a.slug.startsWith("layout")} />
94100
))}
@@ -99,9 +105,9 @@ function Grid({ items, cols = "sm:grid-cols-2 lg:grid-cols-3" }: { items: Asset[
99105
function Section({ id, children, lede }: { id: string; children: React.ReactNode; lede?: React.ReactNode }) {
100106
const s = SECTIONS.find((x) => x.id === id)!;
101107
return (
102-
<section id={id} className="scroll-mt-6 border-t-2 border-[#120f0a] py-10">
108+
<section id={id} className="scroll-mt-6 border-t-2 border-[var(--ink)] py-10">
103109
<div className="mb-6 flex items-baseline gap-3">
104-
<span className="font-mono text-sm font-bold tracking-widest text-[#c94218]">{s.n}</span>
110+
<span className="font-mono text-sm font-bold tracking-widest text-[var(--warm)]">{s.n}</span>
105111
<h2 className={`${anton} text-4xl leading-none sm:text-5xl`}>{s.title}</h2>
106112
</div>
107113
{lede && <p className="mb-6 max-w-3xl font-serif text-lg leading-relaxed">{lede}</p>}
@@ -116,14 +122,14 @@ export default function OverclockAssets() {
116122
const colourGroups = [...new Set(of("colour").map((a) => a.group ?? ""))];
117123

118124
return (
119-
<div className="min-h-screen bg-[#faf8f5] text-[#120f0a]">
120-
<header className="relative overflow-hidden bg-[linear-gradient(118deg,#1e0509_0%,#3c0a12_18%,#97192c_48%,#c94218_78%,#fc920d_100%)] text-[#fee9cf]">
125+
<div className="min-h-screen bg-[var(--paper)] text-[var(--ink)]" style={PALETTE}>
126+
<header className="relative overflow-hidden bg-[linear-gradient(118deg,#1e0509_0%,#3c0a12_18%,#97192c_48%,#c94218_78%,#fc920d_100%)] text-[var(--cream)]">
121127
<div className="absolute inset-0 [background-image:radial-gradient(circle,rgba(254,233,207,.13)_1.1px,transparent_1.5px)] [background-size:9px_9px]" />
122128
<div className="relative mx-auto max-w-6xl px-6 py-12">
123129
<div className="font-mono text-xs font-bold uppercase tracking-[.16em]">bits&amp;bytes™ · for designers · not public</div>
124130
<h1 className={`${anton} mt-4 text-7xl leading-[.84] [text-shadow:6px_6px_0_#120f0a] sm:text-9xl`}>overclock</h1>
125131
<div className="mt-4 flex items-center gap-3">
126-
<span className="h-[3px] w-24 bg-[#ff2b2b] shadow-[0_0_10px_rgba(255,43,43,.8)]" />
132+
<span className="h-[3px] w-24 bg-[var(--red)] shadow-[0_0_10px_rgba(255,43,43,.8)]" />
127133
<span className="font-[family-name:var(--font-yellowtail)] text-4xl">past the redline.</span>
128134
</div>
129135
<p className="mt-5 max-w-2xl font-serif text-lg">
@@ -132,7 +138,7 @@ export default function OverclockAssets() {
132138
<a
133139
href="/overclock-assets/overclock-brandkit.zip"
134140
download
135-
className="mt-6 inline-block border-2 border-[#120f0a] bg-[#fee9cf] px-4 py-2 font-mono text-sm font-bold uppercase tracking-widest text-[#120f0a] shadow-[4px_4px_0_#120f0a] hover:bg-[#fc920d]"
141+
className="mt-6 inline-block border-2 border-[var(--ink)] bg-[var(--cream)] px-4 py-2 font-mono text-sm font-bold uppercase tracking-widest text-[var(--ink)] shadow-[4px_4px_0_#120f0a] hover:bg-[var(--orange)]"
136142
>
137143
download everything (.zip)
138144
</a>
@@ -142,8 +148,8 @@ export default function OverclockAssets() {
142148
<main className="mx-auto max-w-6xl px-6 pb-20">
143149
<nav className="grid grid-cols-2 gap-2 py-8 sm:grid-cols-4 lg:grid-cols-8">
144150
{SECTIONS.map((s) => (
145-
<a key={s.id} href={`#${s.id}`} className={`border-2 border-[#120f0a] bg-[#faf8f5] px-3 py-2 ${shadow} hover:bg-[#fee9cf]`}>
146-
<span className="block font-mono text-[11px] font-bold text-[#c94218]">{s.n}</span>
151+
<a key={s.id} href={`#${s.id}`} className={`border-2 border-[var(--ink)] bg-[var(--paper)] px-3 py-2 ${shadow} hover:bg-[var(--cream)]`}>
152+
<span className="block font-mono text-[11px] font-bold text-[var(--warm)]">{s.n}</span>
147153
<span className={`${anton} text-lg leading-none`}>{s.title}</span>
148154
</a>
149155
))}
@@ -156,52 +162,52 @@ export default function OverclockAssets() {
156162
<Section id="colour" lede="burgundy is the core voice, orange the pop, red the redline. hex values come straight from the doc's style.css.">
157163
{colourGroups.map((g) => (
158164
<div key={g} className="mb-10">
159-
<h3 className="mb-4 font-mono text-sm font-bold uppercase tracking-[.16em] text-[#c94218]">{g}</h3>
160-
<Grid items={of("colour").filter((a) => a.group === g)} cols="sm:grid-cols-2 lg:grid-cols-4" />
165+
<h3 className="mb-4 font-mono text-sm font-bold uppercase tracking-[.16em] text-[var(--warm)]">{g}</h3>
166+
<Grid items={of("colour").filter((a) => a.group === g)} cols="grid-cols-2 lg:grid-cols-4" />
161167
</div>
162168
))}
163169
</Section>
164170

165171
<Section id="type" lede="Anton for display and headings, Georgia for reading, Space Mono Bold for labels and data, Yellowtail for the tagline only, Archivo Black for the bits&bytes™ wordmark. Font files live in scripts/fonts.">
166-
<Grid items={of("type")} cols="sm:grid-cols-2" />
172+
<Grid items={of("type")} cols="grid-cols-1 sm:grid-cols-2" />
167173
</Section>
168174

169175
<Section id="motif" lede={<>overclocking is running a chip past the clock it was rated for. <b>you bring the push, we bring the cooling.</b> everything visual comes from chip-tuning tools: clock dials, sliders, hardware monitors. never a car tachometer.</>}>
170-
<Grid items={of("motif")} cols="sm:grid-cols-1" />
176+
<Grid items={of("motif")} cols="grid-cols-1" />
171177
</Section>
172178

173179
<Section id="elements" lede="the building blocks, lifted from the doc. dials, wordmarks and chips export with a transparent background.">
174180
<Grid items={of("elements")} />
175181
</Section>
176182

177183
<Section id="layouts" lede="three real pages of the A–Z doc at 2x: the cover, the contents, and a chapter page with its rail and meter.">
178-
<Grid items={of("layouts")} cols="sm:grid-cols-2 lg:grid-cols-3" />
184+
<Grid items={of("layouts")} cols="grid-cols-1 sm:grid-cols-2 lg:grid-cols-3" />
179185
</Section>
180186

181187
<Section id="rules">
182188
<ul className="max-w-3xl space-y-3 font-serif text-lg">
183189
{RULES.map((r, i) => (
184190
<li key={i} className="flex gap-3">
185-
<span className="mt-2 h-2 w-2 shrink-0 rotate-45 border border-[#120f0a] bg-[#fc920d]" />
191+
<span className="mt-2 h-2 w-2 shrink-0 rotate-45 border border-[var(--ink)] bg-[var(--orange)]" />
186192
<span>{r}</span>
187193
</li>
188194
))}
189195
</ul>
190-
<p className="mt-6 font-mono text-xs font-bold uppercase tracking-widest text-[#716f6c]">
196+
<p className="mt-6 font-mono text-xs font-bold uppercase tracking-widest text-[var(--mute)]">
191197
the rest of the brand rules live in AGENTS.md
192198
</p>
193199
</Section>
194200

195201
<Section id="ai" lede={<>for ChatGPT, Higgsfield, Claude, Nano Banana and friends. paste the <b>style block</b> first, then one prompt. never let the model draw words or logos: generate the art, then put the wordmark, tagline and lockups on top from the PNGs above. check every output against the usage rules before it ships.</>}>
196-
<div className={`border-2 border-[#120f0a] bg-[#120f0a] p-5 text-[#fee9cf] ${shadow}`}>
197-
<div className="font-mono text-xs font-bold uppercase tracking-[.16em] text-[#ff2b2b]">style block · paste this first</div>
198-
<pre className="mt-3 whitespace-pre-wrap font-mono text-sm leading-relaxed">{STYLE}</pre>
202+
<div className={`border-2 border-[var(--ink)] bg-[var(--ink)] p-5 text-[var(--cream)] ${shadow}`}>
203+
<div className="font-mono text-xs font-bold uppercase tracking-[.16em] text-[var(--red)]">style block · paste this first</div>
204+
<pre className="mt-3 whitespace-pre-wrap break-words font-mono text-xs sm:text-sm leading-relaxed">{STYLE}</pre>
199205
</div>
200206
<div className="mt-6 grid grid-cols-1 gap-6 sm:grid-cols-2">
201207
{PROMPTS.map((p) => (
202-
<div key={p.title} className={`border-2 border-[#120f0a] bg-[#faf8f5] p-5 ${shadow}`}>
208+
<div key={p.title} className={`border-2 border-[var(--ink)] bg-[var(--paper)] p-5 ${shadow}`}>
203209
<div className={`${anton} text-xl leading-none`}>{p.title}</div>
204-
<div className="mt-1 font-mono text-[11px] font-bold uppercase tracking-widest text-[#c94218]">{p.tools}</div>
210+
<div className="mt-1 font-mono text-[11px] font-bold uppercase tracking-widest text-[var(--warm)]">{p.tools}</div>
205211
<pre className="mt-3 whitespace-pre-wrap font-serif text-sm leading-relaxed">{p.text}</pre>
206212
</div>
207213
))}

0 commit comments

Comments
 (0)