Skip to content

Anti-AI-slop design skill for Claude Code, Cursor, and Codex.

CSS

Phase B — banner indicator + dropdown, colophon footer

Youssef5d9354f34d9b
diff --git a/site/css/components.css b/site/css/components.css
index 46b24b1..3d9d383 100644
--- a/site/css/components.css
+++ b/site/css/components.css
@@ -199,49 +199,135 @@
.t-tooltip { animation: none; }
}
-/* The active theme name — sits to the LEFT of the theme picker so the
- page restructure registers as a deliberate event, not a passive repaint.
- Smaller text + closer to the picker on desktop; hidden on narrow viewports. */
-.banner__center {
+/* — Theme indicator + dropdown ————————————————————————————
+ Replaces the inline 23-dot strip. The indicator reads "01 / 23 —
+ Specimen" in the active theme's display face; clicking it opens
+ a compact 6×4 grid of color swatches (no theme names, deliberately
+ minimal). Dropdown is position: absolute below the indicator. */
+.banner__theme-wrap {
+ position: relative;
+ display: inline-flex;
+ align-items: center;
+}
+
+.banner__theme-indicator {
+ appearance: none;
+ display: inline-flex;
+ align-items: baseline;
+ gap: 0.4rem;
+ height: 28px;
+ padding: 0 0.65rem;
+ background: transparent;
+ border: 1px solid transparent;
+ border-radius: var(--radius-pill, 999px);
+ color: var(--color-ink);
+ cursor: pointer;
font-family: var(--font-display);
font-weight: var(--display-weight, 500);
font-style: var(--display-style, normal);
font-size: 0.95rem;
letter-spacing: -0.005em;
- text-transform: none;
- color: var(--color-ink);
font-optical-sizing: auto;
- transition: opacity var(--dur-short) var(--ease-out);
white-space: nowrap;
- margin-inline-end: var(--space-xs);
+ transition: border-color var(--dur-micro) var(--ease-out),
+ background var(--dur-micro) var(--ease-out);
+}
+
+@media (hover: hover) and (pointer: fine) {
+ .banner__theme-indicator:hover {
+ border-color: var(--color-rule-2);
+ }
+}
+
+.banner__theme-indicator:focus-visible {
+ outline: 2px solid var(--color-focus);
+ outline-offset: 2px;
}
-[data-theme="manifesto"] .banner__center,
-[data-theme="brutal"] .banner__center,
-[data-theme="sport"] .banner__center {
+.banner__theme-indicator[aria-expanded="true"] {
+ border-color: var(--color-rule-2);
+ background: var(--color-paper-2);
+}
+
+/* "01 / 23" set in mono for tabular alignment + ledger feel. */
+.banner__ordinal {
+ font-family: var(--font-mono);
+ font-size: 0.6875rem;
+ letter-spacing: 0.04em;
+ color: var(--color-muted);
+ font-feature-settings: "tnum" 1;
+ text-transform: uppercase;
+}
+
+.banner__indicator-sep {
+ color: var(--color-rule-2);
+ font-family: var(--font-display);
+ font-size: 0.95rem;
+}
+
+.banner__caret {
+ flex-shrink: 0;
+ align-self: center;
+ color: var(--color-muted);
+ margin-inline-start: 0.1rem;
+ transition: transform var(--dur-micro) var(--ease-out);
+}
+
+.banner__theme-indicator[aria-expanded="true"] .banner__caret {
+ transform: rotate(180deg);
+}
+
+/* Theme-aware overrides for the theme-name span (was on .banner__center). */
+[data-theme="manifesto"] .banner__theme-indicator,
+[data-theme="brutal"] .banner__theme-indicator,
+[data-theme="sport"] .banner__theme-indicator {
text-transform: uppercase;
letter-spacing: -0.01em;
}
-[data-theme="terminal"] .banner__center::before {
+[data-theme="terminal"] .banner__theme::before {
content: "$ ";
color: var(--color-accent);
}
-[data-theme="terminal"] .banner__center {
+[data-theme="terminal"] .banner__theme-indicator {
font-family: var(--font-mono);
}
-.banner__picker {
- display: inline-flex;
- align-items: center;
- gap: 0.4rem;
+/* Dropdown panel — appears under the indicator. Hidden by default. */
+.theme-dropdown {
+ position: absolute;
+ top: calc(100% + 8px);
+ right: 0;
+ z-index: var(--z-sticky);
+ display: grid;
+ grid-template-columns: repeat(6, 1fr);
+ gap: 6px;
+ padding: 10px;
+ background: var(--color-paper);
+ border: 1px solid var(--color-rule-2);
+ border-radius: 4px;
+ box-shadow: 0 12px 36px -10px oklch(20% 0.02 60 / 0.22);
+ animation: theme-dropdown-in 140ms var(--ease-out);
+ transform-origin: top right;
}
-.banner__dot {
+.theme-dropdown[hidden] { display: none; }
+
+@keyframes theme-dropdown-in {
+ from { opacity: 0; transform: translateY(-4px) scale(0.98); }
+ to { opacity: 1; transform: translateY(0) scale(1); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .theme-dropdown { animation: none; }
+}
+
+/* Dot inside the dropdown — same styling as the old .banner__dot. */
+.theme-dropdown__dot {
appearance: none;
- width: 16px;
- height: 16px;
+ width: 22px;
+ height: 22px;
padding: 0;
background: var(--dot, var(--color-paper));
border: 1px solid var(--color-rule-2);
@@ -253,39 +339,32 @@
box-shadow var(--dur-micro) var(--ease-out);
}
-.banner__dot::after {
+.theme-dropdown__dot::after {
content: "";
position: absolute;
- inset: 3px;
+ inset: 4px;
background: var(--dot-edge, transparent);
border-radius: 2px;
opacity: 0.85;
}
@media (hover: hover) and (pointer: fine) {
- .banner__dot:hover {
+ .theme-dropdown__dot:hover {
transform: translateY(-1px);
border-color: var(--color-ink);
}
}
-.banner__dot:focus-visible {
+.theme-dropdown__dot:focus-visible {
outline: 2px solid var(--color-focus);
outline-offset: 2px;
}
-.banner__dot[aria-pressed="true"] {
+.theme-dropdown__dot[aria-pressed="true"] {
border-color: var(--color-ink);
box-shadow: 0 0 0 2px var(--color-paper), 0 0 0 3px var(--color-ink);
}
-.banner__sep {
- width: 1px;
- height: 14px;
- background: var(--color-rule);
- margin-inline: 0.25rem;
-}
-
/* Combined shuffle button: icon + T kbd hint inside a single pill.
Click randomises; the T inside reads as a keyboard hint, not a separate
pill. Replaces the old .banner__random + .banner__kbd combo. */
@@ -356,26 +435,21 @@
@media (max-width: 60rem) {
.banner { gap: var(--space-md); }
- .banner__center { font-size: 0.825rem; }
-}
-
-@media (max-width: 50rem) {
- .banner__picker { gap: 0.28rem; }
- .banner__dot { width: 14px; height: 14px; }
- .banner__sep { display: none; }
+ .banner__theme-indicator { font-size: 0.85rem; padding: 0 0.5rem; }
+ .banner__ordinal { font-size: 0.625rem; }
}
-/* Below 44rem: hide the dot grid (would overflow); keep mark + theme name + shuffle */
@media (max-width: 44rem) {
.banner__ver { display: none; }
- .banner__picker { display: none; }
.banner__shuffle-key { display: none; }
.banner__shuffle { padding: 0 0.5rem; height: 24px; }
+ /* Hide ordinal on small viewports — keep just the theme name + caret. */
+ .banner__ordinal,
+ .banner__indicator-sep { display: none; }
}
-/* Below 26rem (very small phones): hide center label too — pure click-to-shuffle */
@media (max-width: 26rem) {
- .banner__center { display: none; }
+ .banner__theme-indicator .banner__theme { display: none; }
}
/* — Section label (01 / FOUNDATIONS) —————————————————— */
@@ -2827,6 +2901,138 @@
padding-block: var(--space-md);
}
+/* ───────── Ft5 — Editorial colophon (the unified footer) ────────
+ The publisher's signature page. Same shape across every theme;
+ theme variation comes from typography rendering, not layout.
+ Typeset prose paragraphs, no link farm, generous line-height. */
+.foot--colophon {
+ display: grid;
+ gap: var(--space-md);
+ padding-block: var(--space-2xl) var(--space-xl);
+ border-block-start: var(--rule-hair) solid var(--color-rule);
+ max-width: 64ch;
+ margin: 0;
+}
+
+.foot__sig {
+ display: flex;
+ align-items: baseline;
+ gap: var(--space-xs);
+ margin: 0;
+ margin-block-end: var(--space-sm);
+ font-family: var(--font-display);
+ font-weight: var(--display-weight, 500);
+ font-style: var(--display-style, normal);
+ font-size: var(--text-2xl);
+ line-height: 1;
+ letter-spacing: var(--tracking-display);
+ color: var(--color-ink);
+ font-optical-sizing: auto;
+}
+
+.foot--colophon .foot__wordmark {
+ /* Override the legacy 3xl rule for the masthead variant — the
+ colophon sig is intentionally smaller (it's a signature, not
+ a page title). */
+ font-size: inherit;
+ font-family: inherit;
+ letter-spacing: inherit;
+ font-weight: inherit;
+ font-style: inherit;
+}
+
+.foot__sig-ver {
+ font-family: var(--font-mono);
+ font-size: 0.6875rem;
+ font-weight: 400;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+}
+
+[data-theme="manifesto"] .foot--colophon .foot__wordmark,
+[data-theme="brutal"] .foot--colophon .foot__wordmark,
+[data-theme="sport"] .foot--colophon .foot__wordmark { text-transform: uppercase; }
+
+.foot__set,
+.foot__catalog,
+.foot__credit {
+ font-family: var(--font-serif);
+ font-style: italic;
+ font-size: 0.9375rem;
+ line-height: var(--lh-relaxed);
+ color: var(--color-ink-2);
+ margin: 0;
+ max-width: 60ch;
+}
+
+.foot__set em {
+ font-style: normal;
+ font-weight: 500;
+ color: var(--color-ink);
+}
+
+.foot__set strong {
+ font-style: normal;
+ font-weight: 500;
+ color: var(--color-ink);
+}
+
+.foot__credit .foot__powered-mark {
+ font-style: normal;
+ font-weight: 500;
+ color: var(--color-ink);
+}
+
+[data-theme="brutal"] .foot__set,
+[data-theme="brutal"] .foot__catalog,
+[data-theme="brutal"] .foot__credit,
+[data-theme="manifesto"] .foot__set,
+[data-theme="manifesto"] .foot__catalog,
+[data-theme="manifesto"] .foot__credit,
+[data-theme="terminal"] .foot__set,
+[data-theme="terminal"] .foot__catalog,
+[data-theme="terminal"] .foot__credit,
+[data-theme="sport"] .foot__set,
+[data-theme="sport"] .foot__catalog,
+[data-theme="sport"] .foot__credit,
+[data-theme="almanac"] .foot__set,
+[data-theme="almanac"] .foot__catalog,
+[data-theme="almanac"] .foot__credit,
+[data-theme="quiet"] .foot__set,
+[data-theme="quiet"] .foot__catalog,
+[data-theme="quiet"] .foot__credit,
+[data-theme="bloom"] .foot__set,
+[data-theme="bloom"] .foot__catalog,
+[data-theme="bloom"] .foot__credit {
+ font-family: var(--font-body);
+ font-style: normal;
+}
+
+.foot--colophon .foot__links {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: var(--space-sm);
+ margin: 0;
+ margin-block-start: var(--space-sm);
+ font-family: var(--font-label);
+ font-size: var(--text-xs);
+ letter-spacing: var(--tracking-label);
+ text-transform: uppercase;
+ color: var(--color-muted);
+ /* Reset legacy .foot__links rules from the masthead variant. */
+ flex-wrap: nowrap;
+}
+
+.foot--colophon .foot__sep {
+ /* Inline dot separator instead of vertical bar. */
+ width: auto;
+ height: auto;
+ background: transparent;
+ color: var(--color-rule-2);
+}
+
/* ───────────── SLOT REVEALS ─────────────
The slot fades when its archetype is replaced — supplements the
View Transition and gives a graceful enter on first paint. */
diff --git a/site/index.html b/site/index.html
index 643f5b0..78265d3 100644
--- a/site/index.html
+++ b/site/index.html
@@ -55,59 +55,67 @@
<span class="banner__spacer" aria-hidden="true"></span>
- <span class="banner__center" data-theme-current>
- <span class="banner__theme">Specimen</span>
- <span class="banner__genre" data-theme-genre>editorial</span>
- </span>
-
- <div class="banner__picker" role="radiogroup" aria-label="Theme">
- <button class="banner__dot" type="button" data-theme-btn="specimen" aria-label="Specimen"
- style="--dot: oklch(96% 0.018 80); --dot-edge: oklch(70% 0.04 75);"></button>
- <button class="banner__dot" type="button" data-theme-btn="newsprint" aria-label="Newsprint"
- style="--dot: oklch(92% 0.045 50); --dot-edge: oklch(32% 0.10 28);"></button>
- <button class="banner__dot" type="button" data-theme-btn="atelier" aria-label="Atelier"
- style="--dot: oklch(94% 0.005 60); --dot-edge: oklch(45% 0.13 60);"></button>
- <button class="banner__dot" type="button" data-theme-btn="garden" aria-label="Garden"
- style="--dot: oklch(95% 0.030 130); --dot-edge: oklch(54% 0.16 14);"></button>
- <button class="banner__dot" type="button" data-theme-btn="salon" aria-label="Salon"
- style="--dot: oklch(94% 0.030 65); --dot-edge: oklch(40% 0.085 50);"></button>
- <button class="banner__dot" type="button" data-theme-btn="linen" aria-label="Linen"
- style="--dot: oklch(89% 0.022 95); --dot-edge: oklch(46% 0.06 95);"></button>
- <button class="banner__dot" type="button" data-theme-btn="almanac" aria-label="Almanac"
- style="--dot: oklch(94% 0.008 245); --dot-edge: oklch(38% 0.135 250);"></button>
- <button class="banner__dot" type="button" data-theme-btn="midnight" aria-label="Midnight"
- style="--dot: oklch(15% 0.022 250); --dot-edge: oklch(72% 0.16 220);"></button>
- <button class="banner__dot" type="button" data-theme-btn="terminal" aria-label="Terminal"
- style="--dot: oklch(11% 0.018 145); --dot-edge: oklch(78% 0.19 138);"></button>
- <button class="banner__dot" type="button" data-theme-btn="brutal" aria-label="Brutal"
- style="--dot: oklch(98% 0.001 0); --dot-edge: oklch(60% 0.21 27);"></button>
- <button class="banner__dot" type="button" data-theme-btn="manifesto" aria-label="Manifesto"
- style="--dot: oklch(10% 0.005 60); --dot-edge: oklch(60% 0.22 27);"></button>
- <button class="banner__dot" type="button" data-theme-btn="sport" aria-label="Sport"
- style="--dot: oklch(98% 0.003 250); --dot-edge: oklch(58% 0.190 35);"></button>
- <button class="banner__dot" type="button" data-theme-btn="studio" aria-label="Studio"
- style="--dot: oklch(96.5% 0.014 95); --dot-edge: oklch(46% 0.140 145);"></button>
- <button class="banner__dot" type="button" data-theme-btn="pastel" aria-label="Pastel"
- style="--dot: oklch(98% 0.008 240); --dot-edge: oklch(54% 0.110 282);"></button>
- <button class="banner__dot" type="button" data-theme-btn="riso" aria-label="Riso"
- style="--dot: oklch(91% 0.034 30); --dot-edge: oklch(58% 0.170 220);"></button>
- <button class="banner__dot" type="button" data-theme-btn="quiet" aria-label="Quiet"
- style="--dot: oklch(100% 0 0); --dot-edge: oklch(15% 0 0);"></button>
- <button class="banner__dot" type="button" data-theme-btn="bloom" aria-label="Bloom"
- style="--dot: oklch(8% 0.012 35); --dot-edge: oklch(72% 0.190 45);"></button>
- <button class="banner__dot" type="button" data-theme-btn="coral" aria-label="Coral"
- style="--dot: oklch(96.5% 0.005 50); --dot-edge: oklch(64% 0.165 28);"></button>
- <button class="banner__dot" type="button" data-theme-btn="violet" aria-label="Violet"
- style="--dot: oklch(99% 0.003 280); --dot-edge: oklch(58% 0.16 285);"></button>
- <button class="banner__dot" type="button" data-theme-btn="aurora" aria-label="Aurora"
- style="--dot: oklch(11% 0.025 200); --dot-edge: oklch(72% 0.170 200);"></button>
- <button class="banner__dot" type="button" data-theme-btn="halo" aria-label="Halo"
- style="--dot: oklch(13% 0.005 60); --dot-edge: oklch(74% 0.16 70);"></button>
- <button class="banner__dot" type="button" data-theme-btn="plume" aria-label="Plume"
- style="--dot: oklch(96% 0.020 70); --dot-edge: oklch(68% 0.130 18);"></button>
- <button class="banner__dot" type="button" data-theme-btn="editorial" aria-label="Editorial"
- style="--dot: oklch(94% 0.020 75); --dot-edge: oklch(60% 0.160 35);"></button>
-
+ <div class="banner__theme-wrap" data-theme-wrap>
+ <button class="banner__theme-indicator" type="button"
+ aria-haspopup="listbox" aria-expanded="false"
+ aria-controls="theme-dropdown"
+ data-theme-trigger>
+ <span class="banner__ordinal tnum" data-theme-ordinal>01 / 23</span>
+ <span class="banner__indicator-sep" aria-hidden="true">—</span>
+ <span class="banner__theme" data-theme-current>Specimen</span>
+ <svg class="banner__caret" viewBox="0 0 12 12" width="10" height="10" aria-hidden="true">
+ <path d="M2 4l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
+ </svg>
+ </button>
+
+ <div class="theme-dropdown" id="theme-dropdown" role="listbox" aria-label="Theme picker" hidden>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="specimen" aria-label="Specimen"
+ style="--dot: oklch(96% 0.018 80); --dot-edge: oklch(70% 0.04 75);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="newsprint" aria-label="Newsprint"
+ style="--dot: oklch(92% 0.045 50); --dot-edge: oklch(32% 0.10 28);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="atelier" aria-label="Atelier"
+ style="--dot: oklch(94% 0.005 60); --dot-edge: oklch(45% 0.13 60);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="garden" aria-label="Garden"
+ style="--dot: oklch(95% 0.030 130); --dot-edge: oklch(54% 0.16 14);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="salon" aria-label="Salon"
+ style="--dot: oklch(94% 0.030 65); --dot-edge: oklch(40% 0.085 50);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="linen" aria-label="Linen"
+ style="--dot: oklch(89% 0.022 95); --dot-edge: oklch(46% 0.06 95);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="almanac" aria-label="Almanac"
+ style="--dot: oklch(94% 0.008 245); --dot-edge: oklch(38% 0.135 250);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="midnight" aria-label="Midnight"
+ style="--dot: oklch(15% 0.022 250); --dot-edge: oklch(72% 0.16 220);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="terminal" aria-label="Terminal"
+ style="--dot: oklch(11% 0.018 145); --dot-edge: oklch(78% 0.19 138);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="brutal" aria-label="Brutal"
+ style="--dot: oklch(98% 0.001 0); --dot-edge: oklch(60% 0.21 27);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="manifesto" aria-label="Manifesto"
+ style="--dot: oklch(10% 0.005 60); --dot-edge: oklch(60% 0.22 27);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="sport" aria-label="Sport"
+ style="--dot: oklch(98% 0.003 250); --dot-edge: oklch(58% 0.190 35);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="studio" aria-label="Studio"
+ style="--dot: oklch(96.5% 0.014 95); --dot-edge: oklch(46% 0.140 145);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="pastel" aria-label="Pastel"
+ style="--dot: oklch(98% 0.008 240); --dot-edge: oklch(54% 0.110 282);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="riso" aria-label="Riso"
+ style="--dot: oklch(91% 0.034 30); --dot-edge: oklch(58% 0.170 220);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="quiet" aria-label="Quiet"
+ style="--dot: oklch(100% 0 0); --dot-edge: oklch(15% 0 0);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="bloom" aria-label="Bloom"
+ style="--dot: oklch(8% 0.012 35); --dot-edge: oklch(72% 0.190 45);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="coral" aria-label="Coral"
+ style="--dot: oklch(96.5% 0.005 50); --dot-edge: oklch(64% 0.165 28);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="violet" aria-label="Violet"
+ style="--dot: oklch(99% 0.003 280); --dot-edge: oklch(58% 0.16 285);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="aurora" aria-label="Aurora"
+ style="--dot: oklch(11% 0.025 200); --dot-edge: oklch(72% 0.170 200);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="halo" aria-label="Halo"
+ style="--dot: oklch(13% 0.005 60); --dot-edge: oklch(74% 0.16 70);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="plume" aria-label="Plume"
+ style="--dot: oklch(96% 0.020 70); --dot-edge: oklch(68% 0.130 18);"></button>
+ <button class="theme-dropdown__dot" type="button" data-theme-btn="editorial" aria-label="Editorial"
+ style="--dot: oklch(94% 0.020 75); --dot-edge: oklch(60% 0.160 35);"></button>
+ </div>
</div>
<button class="banner__shuffle" type="button" aria-label="Random theme · T cycles · R randomises"
@@ -1030,63 +1038,36 @@
<!-- ─────────── FOOTER ARCHETYPES ─────────── -->
- <template id="footer-masthead">
- <div class="foot foot--masthead">
- <span class="foot__wordmark">Hallmark</span>
- <p class="foot__tagline">{{tagline}}</p>
- <div class="foot__links">
- <a href="https://github.com/Luffixos/hallmark" class="link">GitHub</a>
- </div>
- <p class="foot__powered"><span class="foot__powered-mark">Powered by Together AI</span></p>
- </div>
- </template>
+ <!-- The COLOPHON — a single editorial footer for every theme. The
+ publisher's signature page traditionally doesn't change across
+ volumes; the structural variety lives in the body, not here.
+ Per-theme typography still re-renders this block. -->
+ <template id="footer-colophon">
+ <div class="foot foot--colophon">
+ <p class="foot__sig">
+ <span class="foot__wordmark">Hallmark</span><span class="foot__sig-ver tnum">·&nbsp;v1.0</span>
+ </p>
- <template id="footer-inline">
- <div class="foot foot--inline">
- <span class="foot__wordmark-small">Hallmark</span>
- <span class="foot__sep" aria-hidden="true"></span>
- <span class="foot__line">{{tagline}}</span>
- <span class="foot__sep" aria-hidden="true"></span>
- <a href="https://github.com/Luffixos/hallmark" class="link">GitHub</a>
- <span class="foot__sep" aria-hidden="true"></span>
- <span class="foot__powered-mark">Powered by Together AI</span>
- </div>
- </template>
+ <p class="foot__set">
+ Set in <em>Fraunces</em> (display), <em>The Future</em> (body), and <em>The Future Mono</em> (label). Currently rendered in <strong data-theme-current-foot>Specimen</strong>.
+ </p>
- <template id="footer-index">
- <div class="foot foot--index">
- <div class="foot__col">
- <p class="foot__col-head">Skill</p>
- <ul>
- <li><a href="https://github.com/Luffixos/hallmark" class="link">GitHub</a></li>
- <li><a href="#install" class="link">Install</a></li>
- <li><a href="#examples" class="link">Examples</a></li>
- </ul>
- </div>
- <div class="foot__col">
- <p class="foot__col-head">Catalog</p>
- <ul>
- <li>23 themes</li>
- <li>21 macrostructures</li>
- <li>40 archetypes</li>
- <li>9 navs · 8 footers</li>
- <li>4 hero polish patterns</li>
- <li>55 slop-test gates</li>
- </ul>
- </div>
- <div class="foot__col">
- <p class="foot__col-head">Powered</p>
- <ul>
- <li><span class="foot__powered-mark">Together AI</span></li>
- <li>MIT licensed</li>
- <li>v1.0.0</li>
- </ul>
- </div>
- </div>
- </template>
+ <p class="foot__catalog">
+ Twenty-three named themes across four genres. Twenty-one macrostructures. Forty component archetypes. Sixty slop-test gates plus a six-axis pre-emit critique.
+ </p>
- <template id="footer-dense">
- <pre class="foot foot--dense">{{denseColophon}}</pre>
+ <p class="foot__credit">
+ Built v1.0 in 2026. Powered by <span class="foot__powered-mark">Together&nbsp;AI</span>. MIT licensed.
+ </p>
+
+ <p class="foot__links">
+ <a href="https://github.com/Luffixos/hallmark" class="link">Source</a>
+ <span class="foot__sep" aria-hidden="true">·</span>
+ <a href="#install" class="link">Install</a>
+ <span class="foot__sep" aria-hidden="true">·</span>
+ <a href="#top" class="link">Top</a>
+ </p>
+ </div>
</template>
<script type="module" src="js/main.js"></script>
diff --git a/site/js/main.js b/site/js/main.js
index 2077435..a72c6b1 100644
--- a/site/js/main.js
+++ b/site/js/main.js
@@ -56,29 +56,29 @@ const STORAGE_KEY = "hallmark-theme";
variety: switching themes literally rebuilds the page, not just
recolours it. See skill/references/component-cookbook.md. */
const ARCHETYPES = {
- specimen: { hero: "marquee", footer: "masthead" },
- newsprint: { hero: "split", footer: "index" },
- atelier: { hero: "quote-led", footer: "inline" },
- garden: { hero: "letter", footer: "masthead" },
- salon: { hero: "quote-led", footer: "masthead" },
- linen: { hero: "letter", footer: "inline" },
- almanac: { hero: "stat-led", footer: "index" },
- midnight: { hero: "stat-led", footer: "index" },
- terminal: { hero: "marquee", footer: "dense" },
- brutal: { hero: "photographic", footer: "inline" },
- manifesto: { hero: "marquee", footer: "masthead" },
- sport: { hero: "stat-led", footer: "inline" },
- studio: { hero: "photographic", footer: "index" },
- pastel: { hero: "clipped", footer: "masthead" },
- riso: { hero: "quote-led", footer: "dense" },
- quiet: { hero: "split", footer: "masthead" },
- bloom: { hero: "marquee", footer: "masthead" },
- coral: { hero: "split", footer: "masthead" },
- violet: { hero: "split", footer: "masthead" },
- aurora: { hero: "marquee", footer: "masthead" },
- halo: { hero: "clipped", footer: "index" },
- plume: { hero: "clipped", footer: "masthead" },
- editorial: { hero: "split", footer: "masthead" },
+ specimen: { hero: "marquee", footer: "colophon" },
+ newsprint: { hero: "split", footer: "colophon" },
+ atelier: { hero: "quote-led", footer: "colophon" },
+ garden: { hero: "letter", footer: "colophon" },
+ salon: { hero: "quote-led", footer: "colophon" },
+ linen: { hero: "letter", footer: "colophon" },
+ almanac: { hero: "stat-led", footer: "colophon" },
+ midnight: { hero: "stat-led", footer: "colophon" },
+ terminal: { hero: "marquee", footer: "colophon" },
+ brutal: { hero: "photographic", footer: "colophon" },
+ manifesto: { hero: "marquee", footer: "colophon" },
+ sport: { hero: "stat-led", footer: "colophon" },
+ studio: { hero: "photographic", footer: "colophon" },
+ pastel: { hero: "clipped", footer: "colophon" },
+ riso: { hero: "quote-led", footer: "colophon" },
+ quiet: { hero: "split", footer: "colophon" },
+ bloom: { hero: "marquee", footer: "colophon" },
+ coral: { hero: "split", footer: "colophon" },
+ violet: { hero: "split", footer: "colophon" },
+ aurora: { hero: "marquee", footer: "colophon" },
+ halo: { hero: "clipped", footer: "colophon" },
+ plume: { hero: "clipped", footer: "colophon" },
+ editorial: { hero: "split", footer: "colophon" },
};
/* — Theme → genre map ——————————————————————————————————
@@ -711,6 +711,9 @@ attachCopyButtons();
/* Cached banner subnodes — populated once at startup. */
const themeLabelEl = document.querySelector(".banner__theme");
const themeGenreEl = document.querySelector("[data-theme-genre]");
+const ordinalEl = document.querySelector("[data-theme-ordinal]");
+const themeKeys = Object.keys(THEMES);
+const totalThemes = themeKeys.length;
function setPressed(theme) {
dots.forEach((btn) => {
@@ -719,9 +722,16 @@ function setPressed(theme) {
});
const themeName = THEMES[theme] || "Specimen";
const genre = THEME_GENRES[theme] || "editorial";
+ const idx = themeKeys.indexOf(theme);
+ const ordinal = idx >= 0 ? String(idx + 1).padStart(2, "0") : "01";
if (themeLabelEl) themeLabelEl.textContent = themeName;
if (themeGenreEl) themeGenreEl.textContent = genre;
+ if (ordinalEl) ordinalEl.textContent = `${ordinal} / ${totalThemes}`;
+
+ // Colophon footer — update the "Currently rendered in <theme>" line.
+ const footThemeEl = document.querySelector("[data-theme-current-foot]");
+ if (footThemeEl) footThemeEl.textContent = themeName;
// Fallback for older callers — keep the public theme-current span up to date.
if (currentLabel && !themeLabelEl) currentLabel.textContent = themeName;
@@ -761,9 +771,52 @@ try { localStorage.setItem(STORAGE_KEY, initial); } catch (e) { }
dots.forEach((btn) => {
btn.addEventListener("click", () => {
applyTheme(btn.dataset.themeBtn);
+ closeThemeDropdown();
});
});
+/* — Theme dropdown — open/close + outside-dismiss ————————————
+ The indicator button toggles the panel. Outside clicks, Escape,
+ and theme selection all close it. The dropdown is hidden via the
+ `hidden` attribute (CSS handles `[hidden] { display: none }`). */
+const themeTrigger = document.querySelector("[data-theme-trigger]");
+const themeDropdown = document.getElementById("theme-dropdown");
+const themeWrap = document.querySelector("[data-theme-wrap]");
+
+function openThemeDropdown() {
+ if (!themeDropdown || !themeTrigger) return;
+ themeDropdown.hidden = false;
+ themeTrigger.setAttribute("aria-expanded", "true");
+}
+
+function closeThemeDropdown() {
+ if (!themeDropdown || !themeTrigger) return;
+ themeDropdown.hidden = true;
+ themeTrigger.setAttribute("aria-expanded", "false");
+}
+
+if (themeTrigger && themeDropdown) {
+ themeTrigger.addEventListener("click", (e) => {
+ e.stopPropagation();
+ if (themeDropdown.hidden) openThemeDropdown(); else closeThemeDropdown();
+ });
+
+ // Click outside the wrap closes the dropdown.
+ document.addEventListener("click", (e) => {
+ if (themeDropdown.hidden) return;
+ if (themeWrap && themeWrap.contains(e.target)) return;
+ closeThemeDropdown();
+ });
+
+ // Escape closes too.
+ document.addEventListener("keydown", (e) => {
+ if (e.key === "Escape" && !themeDropdown.hidden) {
+ closeThemeDropdown();
+ themeTrigger.focus();
+ }
+ });
+}
+
/* — Shuffle button + R shortcut ——————————————————————————— */
const shuffleBtn = document.querySelector(".banner__shuffle, .banner__random");
function pickRandomTheme() {