Skip to content

frontend(feat): Datasheet rebrand phase 1 — brand layer, preview scope, pinout hero - #604

Merged
Ducksss merged 3 commits into
mainfrom
claude/datasheet-rebrand-phase-1
Oct 4, 2026
Merged

Ducksss merged 3 commits into
mainfrom
claude/datasheet-rebrand-phase-1

Conversation

@Ducksss

@Ducksss Ducksss commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Phase 1 of the B · Datasheet rebrand picked from the concept round: the site chrome is drawn like a component datasheet — Archivo (condensed for display, through its width axis), Azeret Mono, and one trace green #0B6B4F — and the landing hero draws hero-basic as a ten-pin part: its real fields in, five traces out to "J1 · your project".

Before/after review (desktop + 390px, reduced motion): https://claude.ai/artifact/BT6n31bqHfZDCCdmwYg73j (private; share it from its Share menu if others should open it)

What changed

  • Brand layer (globals.css section 4). New tokens --trace*, --wire, --font-display (Archivo), --font-spec (Azeret Mono); both faces load through next/font with their variables on <html>, and are mirrored in the shared src/app/fumadocs.css partial so docs and blog chrome resolve them identically (extended e2e token check covers both routes). [data-brand='datasheet'] remaps the tokens the chrome already uses — --font-sans, --font-mono, their Tailwind defaults, and the --brand ramp → trace — so existing utilities follow without per-class edits.
  • Where it applies: SiteHeader and SiteFooter on every route, and the landing, /about and /brand-guide <main>. Docs, blog, catalog and template content is untouched in phase 1.
  • Landing hero: document strip (existing eyebrow copy + PC-HERO-BASIC · Rev 0.1.1 · MIT from the manifest), condensed Archivo H1, the Datasheet install field (ink rule + trace key, shared with the closing CTA), and DatasheetPinout — a server-rendered static SVG (desktop drawing + a phone drawing turned on its side). Data comes from src/lib/datasheet.ts (manifest version, files, patched files, post-install outputs); the five field names are checked against the block config source by a new int spec. One-shot trace draw only under prefers-reduced-motion: no-preference (stroke/fill/transform, no loop); the resting state is the finished drawing. The component wall and count line stay below it.
  • Section chrome: SectionHeading / Eyebrow get type-heading / type-eyebrow hooks styled only inside the brand scope; the one italic-serif accent word becomes plain heading type there (spans kept, so heading names are unchanged). The emerald bloom/grid behind branded hero bands is hidden; the pulsing eyebrow dot (an infinite animation) is gone.
  • About / brand guide: Datasheet typography; the brand guide now documents both layers (trace swatches for the site, emerald component tokens shown inside .preview-scope, Archivo/Azeret specimens beside the Geist/Instrument Serif block faces).
  • Mark unchanged: Logomark reads a new --mark token (snapshotted from --brand on :root), so the brand remap cannot recolour it. Geometry, favicon and OG files are untouched.
  • Docs: DESIGN.md (brand layer + preview scope) and an AGENTS.md gotcha for future twin hosts.

How previews stay isolated

.preview-scope sits on every surface that renders a demo twin — the preview route <main>, DemoFitFrame, DemoScaleFrame, the wall cards, the specimen, CaseWork — and restores every token the brand scope remaps from a :root snapshot (--component-*). Custom properties inherit computed values, so the snapshot is exactly what :root resolves. The catalog's hue/radius knobs ride on top via .preview-themed (unchanged behaviour). Template shells set their own tokens, so .preview-scope is never nested in them; previews and templates also never sit inside the brand scope.

A first version restored the emerald as oklch(… var(--preview-hue, 165.6deg)). Lightning CSS compiles static oklch() tokens to lab(), but cannot compile a value containing var(), so that restore took a different conversion path for the same out-of-gamut green — 1–2 levels off on hero-aurora / hero-kinetic. The snapshot design fixed it; the int guard now requires snapshot restores.

Proof the preview baselines do not move

  • Pixel-identical: all 82 component previews and 150 template captures (75 pages × desktop/mobile) rendered from a clean build of main and from this branch, with the visual specs' exact capture recipe, are pixel-identical (232/232). Captured with CPU raster (--disable-gpu), because GPU raster varies between runs on photographic templates (the same build captured twice differs; with CPU raster it is 150/150 identical).
  • Inside the chrome: computed font family, size, weight, stretch, tracking, leading, colour, background and radius of all 6,607 elements inside twin hosts on the landing and catalog are equal before and after.
  • Guards: tests/int/brand-layer.int.spec.ts fails if a remapped token is not restored from its own snapshot (mutation-tested: perturbing one restore fails it), if the mark leaves --mark, or if a file renders a twin outside a preview scope / puts one inside a template. A new frontend e2e asserts at runtime that every .preview-scope on the branded landing paints Geist and the component emerald while the chrome paints Archivo and trace.
  • On Linux CI, components-visual and templates-visual compare against the committed baselines unchanged.

Performance (landing, six cold loads per profile)

Profile LCP before → after CLS before → after LCP element
390×844, 4× CPU, slow 4G 1,246 → 1,304 ms 0.0009 → 0.0047 H1 at first paint
412×823, 4× CPU, slow 4G 1,234 → 1,298 ms 0.0175 → 0.0055 H1 at first paint
1440×900 144 → 152 ms 0 → 0.0001 H1 at first paint

The H1 keeps .hero-rise (transform-only), and the lead and install field rise too. Archivo (90 KB variable) is preloaded for the H1; Azeret Mono only sets labels and is not preloaded, which recovered ~60 ms of the phone delta.

Checks

Rebased onto a728944d (#600, related-posts). The feature commit applied cleanly; the only conflicts were the two landing PNGs, re-minted below. Exit codes captured to files, on the rebased tree:

Check Result
pnpm install --frozen-lockfile · pnpm source:build exit 0 · exit 0
pnpm lint · pnpm format:check · pnpm exec tsc --noEmit exit 0 · exit 0 · exit 0
pnpm run test:int exit 0 — 65 files, 813 passed, 1 skipped
Production e2e on E2E_PORT=3333 (build and run): frontend, a11y, components-visual, templates-visual, blog-visual exit 0 — 178 passed, 242 skipped (screenshot comparisons are Linux-only), 0 failed
Isolation re-check against a clean build of a728944d (CPU raster) 83 / 83 component previews pixel-identical, including the new related-posts; 6,631 / 6,631 in-chrome twin element styles equal; related-posts renders inside .preview-scope on its preview route and its catalog card
CI on 6c0aabf3 all success (run 37203219627): pr-gate, release-gate, quick-checks, node-20-compat, fresh-payload-smoke ×5. release-gate: int 813 passed; e2e frontend 158 passed (1 skipped), components-visual 85 passed (every component against the committed Linux baselines, including main's related-posts), templates-visual 152, templates-a11y 63, remaining 202; 0 failed

Before the rebase (on f603b5a2) the full production e2e also passed (418 passed, 0 failed), with i18n:check and test:registry exit 0, 8 / 8 repeated axe runs, and all CI green on ecc30dee. That first full e2e run had caught a transient axe contrast failure: the hero link row used the fading .hero-reveal, and axe sampled it mid-fade. Every hero band now rises without fading (.hero-reveal is removed).

Visual baselines

Minted on this branch with visual-baselines.yml (update=all) and copied in only where the render legitimately changed:

The blog mobile shots re-minted byte-identical. No component or template baseline changed. The transport PRs #605, #606 and #607 are closed, and their branches are deleted.

Out of scope / phase 2

  1. Per-component datasheets: render the pinout for every block from its manifest + config on its docs page (src/lib/datasheet.ts is shaped for it).
  2. Decide the mark's green: move --mark, favicon.svg/.ico and the three OG MARK_SVGs to trace, or keep emerald.
  3. OG images in the Datasheet direction.
  4. Recover the remaining ~60 ms phone LCP: vendor a trimmed Archivo (wdth 62–100, wght 400–800) via next/font/local.
  5. Brand the docs/blog/catalog chrome (sidebar, cards, filters) and the consent banner (after frontend(fix): ship the consent banner in the static HTML so it paints with the page #590).
  6. The concept's selection-guide / title-block sections, once the landing IA can change.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
payload-components Ready Ready Preview Oct 4, 2026 12:52pm UTC
payload-components-97bf Ready Ready Preview Oct 4, 2026 12:52pm UTC

@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: Ducksss/payload-components/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fdda857c-a283-4201-84f4-190ae33841c5
📥 Commits

Reviewing files that changed from the base of the PR and between a728944 and 6c0aabf.

⛔ Files ignored due to path filters (4)
  • tests/e2e/blog-visual.e2e.spec.ts-snapshots/blog-article-desktop-chromium-linux.png is excluded by !**/*.png
  • tests/e2e/blog-visual.e2e.spec.ts-snapshots/blog-index-desktop-chromium-linux.png is excluded by !**/*.png
  • tests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-desktop-chromium-linux.png is excluded by !**/*.png
  • tests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-mobile-chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (30)
  • AGENTS.md
  • DESIGN.md
  • src/app/[locale]/about/page.tsx
  • src/app/[locale]/brand-guide/page.tsx
  • src/app/[locale]/components/preview/[slug]/page.tsx
  • src/app/[locale]/layout.tsx
  • src/app/[locale]/page.tsx
  • src/app/fumadocs.css
  • src/app/globals.css
  • src/components/site/CatalogThemeControl.tsx
  • src/components/site/CommandCopyButton.tsx
  • src/components/site/ComponentPreviewThumb.tsx
  • src/components/site/ComponentSpecimen.tsx
  • src/components/site/HeroProductFrame.tsx
  • src/components/site/InstallCommand.tsx
  • src/components/site/Logomark.tsx
  • src/components/site/SiteFooter.tsx
  • src/components/site/SiteHeader.tsx
  • src/components/site/Wordmark.tsx
  • src/components/site/case-study/CaseWork.tsx
  • src/components/site/demos/DemoFitFrame.tsx
  • src/components/site/demos/DemoScaleFrame.tsx
  • src/components/site/graphics/ComponentWall.tsx
  • src/components/site/graphics/DatasheetPinout.tsx
  • src/components/site/section.tsx
  • src/components/site/sections/CommunityCta.tsx
  • src/components/site/sections/HeroSection.tsx
  • src/lib/datasheet.ts
  • tests/e2e/frontend.e2e.spec.ts
  • tests/int/brand-layer.int.spec.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Ducksss and others added 2 commits October 4, 2026 17:57
…e, pinout hero

Phase 1 of direction B (Datasheet) from the 2026-10 concept round. The site
chrome is drawn like a component datasheet; the blocks it shows keep the
component tokens they install with.

- Brand layer (globals.css section 4): trace green tokens, Archivo (variable
  on width, so the condensed display face is the same file) and Azeret Mono
  via next/font with their variables on <html>, mirrored in the shared
  fumadocs.css partial. [data-brand='datasheet'] remaps --font-sans,
  --font-mono and the --brand ramp for the header, footer, and the landing,
  /about and /brand-guide <main>.
- Preview scope: .preview-scope restores every remapped token from a :root
  snapshot (--component-*) on every surface that renders a demo twin, so the
  82 component and 150 template preview captures are pixel-identical to main.
  Restoring from snapshots matters: an oklch() restore with var() cannot be
  compiled to the lab() form the build gives :root, and drifted by a level.
  The catalog's hue knob moves to --preview-brand* on .preview-themed.
- Landing hero: document strip, condensed headline, a shared Datasheet
  install field (also used by the closing CTA), and DatasheetPinout — a
  static SVG of hero-basic as a ten-pin part, fed from the manifest via
  src/lib/datasheet.ts, with a one-shot trace draw under no-preference
  motion only. Hero bands rise without fading; .hero-reveal is gone.
- The mark keeps the blocks' emerald through a new --mark token.
- About and brand guide adopt the Datasheet typography; the brand guide
  documents both layers. DESIGN.md and AGENTS.md describe the scopes.
- Guards: tests/int/brand-layer.int.spec.ts (scope symmetry, snapshot
  restores, mark, twin hosts, hero fields vs block config), plus frontend
  e2e checks for brand faces on docs/blog chrome, twin isolation inside the
  branded landing, and the pinout drawing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Minted with visual-baselines.yml (run 37192108152, spec=blog-visual,
update=all) and cherry-picked to the two files that changed:
blog-index-desktop and blog-article-desktop. Only the shared header moves
(wordmark, MIT badge and nav in the brand faces; 0.31% of pixels, under the
1% tolerance, hence update=all). The blog mobile shots re-minted
byte-identical. The landing baselines are re-minted separately on top of
#600's main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Minted with visual-baselines.yml on this branch after rebasing onto
a728944 (run 37202985409, spec=frontend, update=all) and copied in from
the bot branch, verified by blob:

- landing-home-desktop-chromium-linux.png  db09a22
  (1280x10764: the Datasheet hero +120px over the old main, plus #600's
  +34px Related footer row)
- landing-home-mobile-chromium-linux.png   b8261ae

The branded footer carries #600's Related link and the 83-component count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Ducksss
Ducksss merged commit 05c931d into main Oct 4, 2026
16 of 17 checks passed
@Ducksss
Ducksss deleted the claude/datasheet-rebrand-phase-1 branch October 4, 2026 14:17

This branch was successfully deployed

2 active deployments
Preview – payload-components — 6c0aabf3 Deployed Oct 4, 2026 by vercel[bot]
Preview – payload-components-97bf — 6c0aabf3 Deployed Oct 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants