Repository navigation
frontend(feat): Datasheet rebrand phase 1 — brand layer, preview scope, pinout hero - #604
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou'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. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
⛔ Files ignored due to path filters (4)
📒 Files selected for processing (30)
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. Comment |
This was referenced Oct 4, 2026
…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]>
Ducksss
force-pushed
the
claude/datasheet-rebrand-phase-1
branch
from
October 4, 2026 12:41
ecc30de to
f7b2566
Compare
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]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 drawshero-basicas 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
globals.csssection 4). New tokens--trace*,--wire,--font-display(Archivo),--font-spec(Azeret Mono); both faces load throughnext/fontwith their variables on<html>, and are mirrored in the sharedsrc/app/fumadocs.csspartial 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--brandramp → trace — so existing utilities follow without per-class edits.SiteHeaderandSiteFooteron every route, and the landing,/aboutand/brand-guide<main>. Docs, blog, catalog and template content is untouched in phase 1.PC-HERO-BASIC · Rev 0.1.1 · MITfrom the manifest), condensed Archivo H1, the Datasheet install field (ink rule + trace key, shared with the closing CTA), andDatasheetPinout— a server-rendered static SVG (desktop drawing + a phone drawing turned on its side). Data comes fromsrc/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 underprefers-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.SectionHeading/Eyebrowgettype-heading/type-eyebrowhooks 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..preview-scope, Archivo/Azeret specimens beside the Geist/Instrument Serif block faces).Logomarkreads a new--marktoken (snapshotted from--brandon:root), so the brand remap cannot recolour it. Geometry, favicon and OG files are untouched.DESIGN.md(brand layer + preview scope) and anAGENTS.mdgotcha for future twin hosts.How previews stay isolated
.preview-scopesits 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:rootsnapshot (--component-*). Custom properties inherit computed values, so the snapshot is exactly what:rootresolves. The catalog's hue/radius knobs ride on top via.preview-themed(unchanged behaviour). Template shells set their own tokens, so.preview-scopeis 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 staticoklch()tokens tolab(), but cannot compile a value containingvar(), 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
mainand 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).tests/int/brand-layer.int.spec.tsfails 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-scopeon the branded landing paints Geist and the component emerald while the chrome paints Archivo and trace.components-visualandtemplates-visualcompare against the committed baselines unchanged.Performance (landing, six cold loads per profile)
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:pnpm install --frozen-lockfile·pnpm source:buildpnpm lint·pnpm format:check·pnpm exec tsc --noEmitpnpm run test:intE2E_PORT=3333(build and run): frontend, a11y, components-visual, templates-visual, blog-visuala728944d(CPU raster).preview-scopeon its preview route and its catalog card6c0aabf3Before the rebase (on
f603b5a2) the full production e2e also passed (418 passed, 0 failed), withi18n:checkandtest:registryexit 0, 8 / 8 repeated axe runs, and all CI green onecc30dee. 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-revealis removed).Visual baselines
Minted on this branch with
visual-baselines.yml(update=all) and copied in only where the render legitimately changed:landing-home-desktop/landing-home-mobile: re-minted after the rebase, on top of components(feat): add the related-posts file-only article component #600's footer row (run 37202985409), copied in6c0aabf3, and verified by blob against the bot branch: desktopdb09a226628afd2001c0274f23ea864ece8d5d97(1280×10764, the hero's +120px plus components(feat): add the related-posts file-only article component #600's +34px), mobileb8261ae09bcea510cb0c5aefc97485b763537189. The branded footer carries components(feat): add the related-posts file-only article component #600's Related link and the 83-component count.blog-index-desktop/blog-article-desktop(run 37192108152), inf7b25664: the shared header only, 0.31% of pixels, which is under the 1% tolerance, soupdate=changedwould have left stale references. They still hold after the rebase: the blog folds are pixel-identical before and after it, and components(feat): add the related-posts file-only article component #600 changed no blog or header code.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
src/lib/datasheet.tsis shaped for it).--mark,favicon.svg/.icoand the three OGMARK_SVGs to trace, or keep emerald.next/font/local.🤖 Generated with Claude Code