From 35bc541bda9dcda06ff1e9922c61ba24c964c61f Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 20 Nov 2026 09:17:40 +0100 Subject: [PATCH] style(website): tighten display-scale Paseo Hub lockup gap --- .../website/src/components/landing-page.tsx | 2 +- .../src/components/paseo-brand.test.tsx | 10 +++++ .../website/src/components/paseo-brand.tsx | 44 +++++++++++++------ .../website/src/routes/{-$locale}/hub.tsx | 2 +- 4 files changed, 42 insertions(+), 16 deletions(-) diff --git a/packages/website/src/components/landing-page.tsx b/packages/website/src/components/landing-page.tsx index 6b31b8374b..a1b0503b3a 100644 --- a/packages/website/src/components/landing-page.tsx +++ b/packages/website/src/components/landing-page.tsx @@ -914,7 +914,7 @@ function HubSection() { >

- + {t("hub.title")}

diff --git a/packages/website/src/components/paseo-brand.test.tsx b/packages/website/src/components/paseo-brand.test.tsx index 483b676068..9359f634cb 100644 --- a/packages/website/src/components/paseo-brand.test.tsx +++ b/packages/website/src/components/paseo-brand.test.tsx @@ -50,6 +50,16 @@ describe("paseo brand assets", () => { } }); + it("tightens symbol-to-wordmark spacing for display-scale lockups while keeping canonical paths", () => { + const html = renderToStaticMarkup(); + const canonical = readFileSync(path.join(BRAND_ROOT, "lockups/paseo-hub-white.svg"), "utf8"); + + expect(html).toContain('viewBox="0 0 798 144"'); + expect(html).toContain('width="798"'); + expect(html).toContain('transform="translate(-44 0)"'); + expect(extractPathData(html)).toEqual(extractPathData(canonical)); + }); + it("keeps public/logo.svg and public/favicon.svg aligned with assets/brand", () => { const canonicalPaseo = readFileSync(path.join(BRAND_ROOT, "marks/paseo-white.svg"), "utf8"); const publicLogo = readFileSync(path.join(WEBSITE_PUBLIC, "logo.svg"), "utf8"); diff --git a/packages/website/src/components/paseo-brand.tsx b/packages/website/src/components/paseo-brand.tsx index 73c620a83a..662de2cfbc 100644 --- a/packages/website/src/components/paseo-brand.tsx +++ b/packages/website/src/components/paseo-brand.tsx @@ -99,22 +99,34 @@ function BrandMark({ asset, props }: { asset: ParsedMark; props: React.SVGProps< ); } -function BrandLockup({ - asset, - props, -}: { - asset: ParsedLockup; - props: React.SVGProps; -}) { +/** + * Optical horizontal tightening (in 144-unit lockup coordinates) for display-scale lockups. + * Canonical lockups have a ~91-unit ink-to-ink gap calibrated for ~18–22px header sizes; at + * 36–48px display sizes that gap reads ~25–30px wide, so `size="display"` pulls the wordmark + * 44 units closer (~14–16px visual gap, ~1/3 of the mark width) and trims the viewBox to match. + */ +const DISPLAY_GAP_TIGHTEN_UNITS = 44; + +export interface BrandLockupProps extends React.SVGProps { + /** Optical spacing scale: `"default"` for small UI/header lockups, `"display"` for large headings. */ + size?: "default" | "display"; +} + +function BrandLockup({ asset, props }: { asset: ParsedLockup; props: BrandLockupProps }) { + const { size = "default", ...svgProps } = props; + const tighten = size === "display" ? DISPLAY_GAP_TIGHTEN_UNITS : 0; + const width = asset.width - tighten; + const viewBox = tighten > 0 ? `0 0 ${width} ${asset.height}` : asset.viewBox; + return ( ); } @@ -139,16 +155,16 @@ export function PaseoHubMark(props: React.SVGProps) { } /** Canonical Paseo lockup (butterfly mark at 94% optical scale + Plus Jakarta Sans SemiBold). */ -export function PaseoLockup(props: React.SVGProps) { +export function PaseoLockup(props: BrandLockupProps) { return ; } /** Canonical Paseo Hub lockup (flower mark + Plus Jakarta Sans SemiBold). */ -export function PaseoHubLockup(props: React.SVGProps) { +export function PaseoHubLockup(props: BrandLockupProps) { return ; } /** Canonical Hub lockup (flower mark + "Hub"), used where Paseo is already on screen. */ -export function HubLockup(props: React.SVGProps) { +export function HubLockup(props: BrandLockupProps) { return ; } diff --git a/packages/website/src/routes/{-$locale}/hub.tsx b/packages/website/src/routes/{-$locale}/hub.tsx index 9169cd1ea4..e69e391209 100644 --- a/packages/website/src/routes/{-$locale}/hub.tsx +++ b/packages/website/src/routes/{-$locale}/hub.tsx @@ -114,7 +114,7 @@ function HubHero() { return (

- + {t("hub.title")}

{t("hub.intro")}