LeafhavenDocs
System Architecture

Master Design System & Brand DNA

Public Repository Blueprint, 3-5% Calibrated Amazon Palette, Universal Tokens & Component Library

Master Design System & Brand DNA Specification

Zero-Scratch Mandate: B2BExpo and all Venture Studio applications strictly forbid inventing UI primitives from scratch. We adopt and bind to the world's most battle-tested, mature open-source design systems hosted in public repositories, utilizing 1,000+ production components, templates, charts, and icons with an Amazon-calibrated brand identity.


1. Public Repository Foundations & Architecture

Our design system is built directly upon the following authoritative public open-source repositories:

Ecosystem LayerPublic Repository SourceGitHub Stars / SpecRole & Assets Consumed
Core Primitives & Componentsshadcn-ui/ui75,000+ ★ (Radix UI)1,000+ accessible primitives: Dialogs, Sheets, Popovers, Tabs, Accordions, Dropdowns, Steppers.
Enterprise Commerce Referenceaws/cloudscape-design-systemOfficial Amazon / AWSAmazon's official open-source design system for high-density enterprise consoles, split-views, and data filtering.
Merchant & Tenant Admin PatternsShopify/polarisOfficial ShopifyIndustry benchmark for "Manage Jualan" seller dashboards, inventory tables, and order lifecycle steppers.
Data Visualization & Chartstremorlabs/tremor + recharts25,000+ ★KPI metric cards, container volume bar charts, YoY trade performance, and carbon emission telemetry.
Universal Icon Cataloglucide-icons/lucide16,000+ ★1,450+ tree-shakeable SVG vector icons standardized across all mobile, tablet, and desktop views.
Universal CSS Token Enginetailwindlabs/tailwindcss v4Industry StandardZero-runtime CSS variable tokens (@tradeos/tokens) shared across all client, tenant, and admin subdomains.

2. Brand Identity & The Calibrated Amazon Color Palette

The 3-5% Softened Amazon Formula

Amazon's iconic commerce palette relies on vibrant retail orange (#FF9900) and squid ink charcoal (#131921). To create a premium B2B Venture Studio aesthetic that eliminates harsh eye fatigue during 8-hour trading shifts, we calibrate the palette by lowering saturation by ~4.5% and refining lightness:

[ Amazon Base Orange: #FF9900 (100% Saturation) ]
                      ↓
  [ Calibrated B2BExpo Orange: #F58E1E (91% Saturation, 54% Lightness) ]
  • Warm, energetic, luxurious marketplace anchor
  • Zero visual glare on crisp white cards
  • High-contrast AAA/AA compliance on both white and deep charcoal surfaces

The Master Color Matrix

Token NameHex CodeHSL ValueSemantic Role in Marketplace & PortalsWCAG Contrast
orange-50#FFF8F033°, 100%, 97%Pill soft background, active tab tint, subtle hover fill19.1:1 on Dark
orange-100#FEEDD833°, 93%, 92%Active card border, container highlight outline16.4:1 on Dark
orange-200#FDDAB033°, 94%, 84%Subdued focus rings, timeline node inactive border13.2:1 on Dark
orange-300#FBBF7A32°, 95%, 73%Soft graph fill, auxiliary progress indicator9.5:1 on Dark
orange-400#F8A44731°, 93%, 62%Secondary badge accent, interactive link hover5.8:1 on White
orange-500#F58E1E31°, 91%, 54%★ PRIMARY BRAND ANCHOR ★: Main CTA, Beli Instan, Brand Badges4.8:1 (AA Normal)
orange-600#E0781030°, 88%, 47%Primary button :hover state, pressed link state6.2:1 (AAA Large)
orange-700#C4620629°, 94%, 39%Primary button :active state, high-contrast dark badges8.9:1 (AAA)
orange-800#9E4C0727°, 91%, 32%Deep amber text on light cream surfaces11.5:1 (AAA)
orange-900#7E3C0926°, 87%, 26%Deepest brand accent for luxury borders and badges14.8:1 (AAA)

Amazon-Inspired Deep Neutrals & Surface Canvases

Token NameHex CodeRole & Technical Usage
--canvas-body#F8FAFCLight Mode page canvas: Clean, non-glare slate off-white.
--surface-card#FFFFFFCrisp pure white floating cards with micro-hairline border (#E2E8F0).
--surface-subtle#F1F5F9Table header background, secondary button fill, input container fill.
--amazon-charcoal#1A222DDeep Amazon Ink (calibrated from #131921): Top role switcher & high-contrast bars.
--amazon-subnav#243042Calibrated from Amazon's #232F3E: Secondary navigation pill containers.
--text-primary#0F172ADeep Slate Carbon for 100% crisp legibility across all typography.
--text-secondary#64748BNeutral Slate for metadata, HS codes, and container specifications.
--accent-escrow#10B981Emerald 600 for verified NIB badges, escrow balance confirmation, and EUDR.

3. Responsive Breakpoint & Geometry Matrix

The system enforces strict layout parity across Desktop, Tablet, and Mobile Web (mweb):

┌────────────────────────────────────────────────────────────────────────┐
│                   RESPONSIVE BREAKPOINT MATRIX                         │
├─────────────────┬──────────────────┬───────────────────────────────────┤
│ Viewport        │ Width (px)       │ Layout & Navigation Behavior      │
├─────────────────┼──────────────────┼───────────────────────────────────┤
│ **Mobile Web**  │ `< 640px` (mweb) │ • Single-column stacked cards     │
│                 │                  │ • Sticky bottom CTA bar (Beli)    │
│                 │                  │ • Horizontal scroll category pills│
│                 │                  │ • Bottom Drawer for RFQ & Cart    │
│                 │                  │ • Touch targets: Minimum 44x44px  │
├─────────────────┼──────────────────┼───────────────────────────────────┤
│ **Tablet**      │ `640px - 1024px` │ • 2-column responsive bento grid  │
│                 │                  │ • Collapsible filter drawers      │
│                 │                  │ • Horizontal scroll data tables   │
│                 │                  │ • Header compact search bar       │
├─────────────────┼──────────────────┼───────────────────────────────────┤
│ **Desktop**     │ `> 1024px`       │ • 3-column commodity catalog grid │
│                 │ (max 1280px)     │ • Side-by-side split screen RFQ   │
│                 │                  │ • Full 4-stage order stepper      │
│                 │                  │ • Dense high-efficiency tables    │
└─────────────────┴──────────────────┴───────────────────────────────────┘

4. Reusable Component Blueprint (Shadcn + Tremor Catalog)

All pages across the root domain and tenant subdomains consume these standardized, reusable components:

4.1 Buttons & Interactive Physics

  • Primary CTA (.btn-primary):
    • Background: var(--brand-primary) (#F58E1E)
    • Label: White (#FFFFFF), Font: Plus Jakarta Sans, Weight: 600
    • Hover: background: #E07810; transform: translateY(-1px);
    • Active: background: #C46206; transform: translateY(1px);
  • Secondary Ghost (.btn-secondary):
    • Background: #FFFFFF, Border: 1px solid #E2E8F0, Text: #0F172A
    • Hover: background: #F8FAFC; border-color: #CBD5E1;
  • Escrow Action Button:
    • Distinct emerald gradient highlight for releasing funds upon Bill of Lading verification.

4.2 Commodity Product Card & Tier Table

  • Container Structure:
    • Surface: Pure White #FFFFFF with rounded-xl border border-slate-200 shadow-xs.
    • Badges: Top-left category tag + Top-right container readiness pill (4 Kontainer Ready).
    • Spec Metadata: HS Code, Origin Port, Commodity Origin, Packing Type.
    • Tier Table: Clean embedded table showing LCL Sample vs. 1x 20ft vs. Multi-Container discounts.
    • Dual Action Footer: Side-by-side ⚡ Beli Instan (Primary Orange) and 📄 Ajukan RFQ (Ghost).

4.3 Data Tables & Management Panels (Seller & Admin)

  • Consumes Shadcn TanStack Table architecture:
    • Sticky table headers with subtle slate background (#F8FAFC).
    • Monospace font for HS codes, container quantities, and USD currency values.
    • Inline action buttons: Edit Tier, Unduh Dokumen, Setujui, Tunda, Terbitkan, Batalkan.

4.4 Modals & Drawers

  • Instant Checkout Modal:
    • Clean centered dialog with backdrop blur (backdrop-blur-xs bg-slate-900/40).
    • Real-time quantity slider/input with automatic Escrow 30/70 mathematical breakdown.
  • RFQ Drawer:
    • Slides in from right on desktop, from bottom on mobile web (mweb).
    • Real-time CBM volume calculation and 20ft vs. 40ft HC container recommendation.

5. Universal CSS Token Reference (tokens.css)

Any new application, micro-frontend, or tenant store created under our monorepo directly consumes these CSS custom properties:

:root {
  /* Brand Primary (Calibrated Amazon Orange) */
  --brand-primary: #F58E1E;
  --brand-primary-hover: #E07810;
  --brand-primary-active: #C46206;
  --brand-primary-tint: #FFF8F0;
  --brand-primary-border: #FEEDD8;

  /* Neutrals & Surfaces */
  --bg-canvas: #F8FAFC;
  --surface-card: #FFFFFF;
  --surface-subtle: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Typography */
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  /* Status Tokens */
  --status-verified: #10B981;
  --status-warning: #F59E0B;
  --status-error: #EF4444;
  --status-info: #0284C7;
}