LeafhavenDocs
System Architecture

Design System Evolution & Component Architecture

Dribbble Luxury Minimalism Benchmarks, 48px Height Parity, Single-Ring Focus Geometry, and Open Layout Hierarchy

Design System Evolution & Component Architecture

Aesthetic Mandate: Enterprise B2B tools often feel like punitive 1990s accounting software—dense, claustrophobic, and cluttered with harsh borders. B2BExpo takes design cues from world-class modern marketplace references (Dribbble luxury minimalism, Linear, Stripe) to deliver a clean, spacious, and beautiful experience that commands trust.


1. Benchmarking & Design Refinement

Following visual audits of market leaders and curated Dribbble reference designs, the B2BExpo design system underwent fundamental refinements:

  [ Legacy Claustrophobic Admin ]           [ Calibrated Dribbble Luxury Minimal ]
  • Heavy multi-nested card borders   ───►  • Flat, open whitespace surfaces
  • Mismatched 36px inputs vs 44px CTA───►  • Absolute 48px (h-12) Height Parity
  • Harsh double focus rings          ───►  • Single calibrated 2px brand amber ring
  • Crowded 240px squeezed columns    ───►  • Spacious 1280px-1400px grid layouts

2. Key Architectural Directives

A. The 48px (h-12) Height Parity Rule

To create visual harmony and a solid, confident tactile feel:

  • The global search input bar is strictly locked to h-12 (48px) with px-4.
  • The primary CTA buttons ("Cari Komoditas", "Login / Register", "Minta Penawaran FCL") are strictly locked to h-12 (48px) with px-5 or px-6.
  • Mismatched heights (e.g. 40px input paired with 44px button) create visual dissonance and are strictly prohibited across all storefront and portal layouts.

B. Single Focus Ring Geometry

Default browser outlines combined with Tailwind focus:ring-2 often generate jarring double-borders (a black inner outline inside an orange outer ring). B2BExpo locks focus styles centrally in apps/web/app/globals.css:

/* Eliminates unsightly double outlines */
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #F58E1E !important;
  border-color: #F58E1E !important;
}

This guarantees an ultra-crisp, single amber halo (#F58E1E) on all interactive inputs.

C. Spacious, Open Surface Layouts (Anti-Claustrophobia)

  • Elimination of Nested Boxes: Cards inside cards inside cards have been dismantled. Operational tables, stat summaries, and lot wizards sit directly on clean #FFFFFF canvases with subtle borders (border-stone-200/80).
  • Comfortable Padding: Section padding defaults to py-8 lg:py-12 and container gutters to px-4 sm:px-6 lg:px-8.
  • Promotional & Announcement Slotting: Header areas feature unobtrusive, dismissed-by-default announcement slots (e.g. "Ekspor Kopi Arabika G1 ke Hamburg telah dibuka"), ensuring marketing visibility without invading seller workflows.

D. Strict Plus Jakarta Sans Typography

  • Headings (H1–H3): font-bold tracking-tight text-stone-900
  • Body & Subtitles: text-stone-600 leading-relaxed font-normal
  • Badges & Microcopy: text-xs font-semibold uppercase tracking-wider text-stone-700
  • Zero unvetted fonts, zero harsh text transforms.

3. Core Component Catalog

ComponentFile PathRole & Specifications
SiteHeaderapps/web/components/layout/site-header.tsxGlobal navigation, 48px search bar, currency switcher, seller portal link.
SiteFooterapps/web/components/layout/site-footer.tsxCompliance disclosures, Incoterms reference, security badges, sitemap.
ContainerPackingAdvisorEmbedded in /commodity/[slug]Interactive 20ft/40ft CBM calculator with MT capacity saturation gauge.
SampleOrderModalapps/web/app/commodity/[slug]$150 sample checkout flow with instant container voucher generation.
RfqModalapps/web/app/commodity/[slug]Multi-step FCL contract builder with 30/70 escrow milestone calculator.
ExporterLotWizardapps/web/app/sellerStep-by-step commodity lot registration for Indonesian cooperative managers.
TwentyCrmTelemetryapps/web/app/sellerReal-time outbox sync monitor, lead pipeline table, and webhook health status.