c_agri_trade/project_sdlc/06_wireframes/DESIGN.md

10 KiB

name colors typography rounded spacing
AgriTrade Mercantile
surface surface-dim surface-bright surface-container-lowest surface-container-low surface-container surface-container-high surface-container-highest on-surface on-surface-variant inverse-surface inverse-on-surface outline outline-variant surface-tint primary on-primary primary-container on-primary-container inverse-primary secondary on-secondary secondary-container on-secondary-container tertiary on-tertiary tertiary-container on-tertiary-container error on-error error-container on-error-container primary-fixed primary-fixed-dim on-primary-fixed on-primary-fixed-variant secondary-fixed secondary-fixed-dim on-secondary-fixed on-secondary-fixed-variant tertiary-fixed tertiary-fixed-dim on-tertiary-fixed on-tertiary-fixed-variant background on-background surface-variant sidebar-surface sidebar-surface-active card-surface card-border text-primary text-muted status-normal-bg status-normal-text status-watch-bg status-watch-text accent-ochre
#f9f9f6 #dadad7 #f9f9f6 #ffffff #f4f4f1 #eeeeeb #e8e8e5 #e2e3e0 #1a1c1b #434845 #2f312f #f1f1ee #737875 #c3c8c4 #55615c #030b08 #ffffff #18231f #7f8b85 #bdc9c3 #865300 #ffffff #feb55a #734700 #120705 #ffffff #2c1d1b #9a8380 #ba1a1a #ffffff #ffdad6 #93000a #d9e5df #bdc9c3 #131e1a #3e4945 #ffddb8 #ffb961 #2b1700 #663e00 #f8dcd9 #dbc1bd #261816 #554240 #f9f9f6 #1a1c1b #e2e3e0 #162A22 #2A4237 #FFFFFF #E8E6DF #1C1E1D #78716C #EAF5ED #2D6A4F #FDF6E7 #926A1D #C89332
headline-xl headline-lg headline-md headline-sm body-lg body-md body-sm label-uppercase metric-mono-lg metric-mono-md metric-mono-sm
fontFamily fontSize fontWeight lineHeight letterSpacing
Inter 2rem 700 2.5rem -0.02em
fontFamily fontSize fontWeight lineHeight letterSpacing
Inter 1.5rem 600 2rem -0.015em
fontFamily fontSize fontWeight lineHeight letterSpacing
Inter 1.25rem 600 1.75rem -0.01em
fontFamily fontSize fontWeight lineHeight
Inter 1.125rem 600 1.5rem
fontFamily fontSize fontWeight lineHeight
Inter 1rem 400 1.5rem
fontFamily fontSize fontWeight lineHeight
Inter 0.875rem 400 1.25rem
fontFamily fontSize fontWeight lineHeight
Inter 0.75rem 400 1rem
fontFamily fontSize fontWeight lineHeight letterSpacing
Inter 0.6875rem 600 0.875rem 0.06em
fontFamily fontSize fontWeight lineHeight
JetBrains Mono 1.125rem 500 1.5rem
fontFamily fontSize fontWeight lineHeight
JetBrains Mono 0.875rem 500 1.25rem
fontFamily fontSize fontWeight lineHeight
JetBrains Mono 0.75rem 400 1rem
sm DEFAULT md lg xl full
0.125rem 0.25rem 0.375rem 0.5rem 0.75rem 9999px
gutter gutter-compact margin margin-mobile space-xs space-sm space-md space-lg space-xl space-xxl
1rem 0.5rem 1.5rem 0.75rem 0.25rem 0.5rem 0.75rem 1rem 1.5rem 2rem

Brand & Style

This design system serves high-volume wholesale dry-agricultural trading, logistics tracking, and back-office settlement operations. The brand identity fuses deep mercantile tradition with modern computational efficiency. The UI communicates stability, rigorous accountability, and instantaneous legibility across dense transactional ledgers.

The aesthetic philosophy draws on Tactile Corporate Minimalism tailored for data density. Crisp off-white stone backdrops eliminate glare during extended trading shifts, balanced by an authoritative, grounded deep pine green structural shell. Visual hierarchy relies on razor-thin stone borders, deliberate monospace numerical breakouts, and disciplined ochre-amber highlights for status indicators rather than decorative distraction.

Colors

The palette balances mercantile tradition and tactical operational ergonomics:

  • Primary (#18231F) & Sidebar Base (#162A22): Authoritative deep forest pine greens establish the system frame, framing trade workspaces with stable anchoring. Active navigation elements sit in elevated pine green (#2A4237).
  • Secondary (#DF9B42) & Accent Ochre (#C89332): Warm harvest amber and rich ochre reflect bulk grain, pulses, and oilseed commodities. Applied strictly to critical alerts, entity badges, active filter tabs, and left callout borders.
  • Neutral Base (#F7F7F4) & Cards (#FFFFFF): A warm stone foundation reduces eye strain under fluorescent trading floor environments. Content cards pop forward via clean milk-white panels framed with precision borders (#E8E6DF).
  • Semantic Ledger Tags: Functional green status (#EAF5ED surface / #2D6A4F ink) indicates settled contracts or healthy stock levels. Watch status (#FDF6E7 surface / #926A1D ink) denotes pending inspections, delayed rail manifests, or margin limits.

Typography

The type hierarchy prioritizes high information density and numerical scanning precision:

  • Headlines & Interface Text: Executed in Inter with tight tracking to maximize horizontal real estate. Headings use semi-bold weights with dark charcoal ink (#1C1E1D), avoiding harsh pitch blacks.
  • Tabular Data & Measurements: Metric quantities (metric tonnes, quintals, bag counts, moisture percentages, settlement prices) render strictly in JetBrains Mono with tabular lining figures to ensure vertical decimal alignment across ledgers.
  • Section Headers & Field Keys: Set in label-uppercase using uppercase casing with widened tracking (0.06em) and muted stone ink (#78716C) to partition sub-tables without heavy horizontal rules.

Layout & Spacing

The layout model is an asymmetric fluid grid structured around a fixed 240px persistent dark pine navigation drawer on the left and an expansive multi-column operational canvas on the right.

  • Grid Architecture: 12-column dynamic grid with standard 1rem gutters, collapsing to an ultra-dense 0.5rem gutter configuration for back-office execution ledgers and commodity ticker grids.
  • Spacing Rhythm: Spacing scales in tight 4px increments (0.25rem to 2rem). Padding within tabular rows remains compressed (space-xs vertical, space-sm horizontal) to display at least 18 rows above the fold on standard desktop terminals.
  • Breakpoints:
    • Desktop (>= 1280px): Full persistent sidebar with multi-panel ledger views and side drawer inspections.
    • Tablet (768px - 1279px): Sidebar collapses to 64px icon rail; main grid shifts to 8 columns.
    • Mobile (< 768px): Sidebar converts to a full-screen bottom-sheet overlay; tabular grids convert into stacked commodity contract cards.

Elevation & Depth

This system avoids floating, high-blur shadows, relying instead on low-contrast architectural outlines and crisp structural contrast:

  • Card Baselines: Trading ticket containers and ledger modules sit flat on the warm stone background (#F7F7F4), bounded by 1px solid borders (#E8E6DF) with zero ambient shadow.
  • Structural Elevation: Deep forest pine (#162A22) delivers visual depth by anchoring the frame, while pure white surfaces (#FFFFFF) advance to form clear working panels.
  • Interactive Layers & Overlays: Quick-entry trade dialogs, commodity dropdowns, and fly-out dispatch drawers use subtle, tinted boundary depth: box-shadow: 0 4px 16px -2px rgba(22, 42, 34, 0.08), 0 1px 2px 0 rgba(22, 42, 34, 0.04) wrapped in a 1px solid boundary (#E8E6DF).
  • Amber Indicators: Critical callouts utilize a solid 3px left border accent in #C89332 on a soft amber wash (#FDF6E7) to project priority without vertical displacement.

Shapes

The interface embraces a precise, disciplined shape language suited for technical workflow software.

A unified low roundedness level (roundedness: 1, base 0.25rem / 4px) is strictly maintained for cards, form inputs, segmented control segments, table containers, and buttons to preserve clean linear alignments across dense grids.

Status pill badges and trader user avatars represent the sole exception, utilizing full pill geometry (9999px) to immediately distinguish contextual metadata and account identity from clickable interactive elements.

Components

Buttons

  • Primary Action (Execute / Confirm Settlement): Solid forest pine background (#162A22) with pure white text, 4px border radius, and space-sm vertical / space-md horizontal padding. Hover shifts to #2A4237.
  • Secondary Action (Export / Print Weighbridge Slip): Pure white background, 1px border in #E8E6DF, dark charcoal text (#1C1E1D). Hover: #F5F4EF.
  • Ochre Accent Button (Urgent Release / Margin Call): Warm ochre background (#C89332) with white text and sharp 4px geometry.

Status Pill Tags

  • Normal / Cleared: Background #EAF5ED, text #2D6A4F, fully rounded pill (9999px), padding 2px 8px, typography label-uppercase.
  • Watch / Pending: Background #FDF6E7, text #926A1D, fully rounded pill (9999px), padding 2px 8px, typography label-uppercase.

Input Fields & Selectors

  • Background #FFFFFF surrounded by 1px solid #E8E6DF, 4px radius.
  • Active focus state: 1px border #162A22 with a 2px outer outline tint of #DF9B42 (20% opacity).
  • Numerical input fields feature embedded trailing units (QTL, MT, ₹/KG) in metric-mono-sm stone gray ink.

Trading Ledger Cards & Tables

  • Cards: Surface #FFFFFF, border 1px #E8E6DF, 4px radius, header padded with space-md.
  • Table Headers: Sticky headers with #F7F7F4 background, 1px solid bottom border (#E8E6DF), uppercase Inter typography (0.6875rem, weight 600, color #78716C).
  • Table Cells: Monospace alignment for quantities, moisture readings, and rupee valuations. Alternating row zebra striping is rejected in favor of a subtle row hover fill (#F9F9F6).

Alert & Callout Badges

  • Surface #FDF6E7 with a crisp 3px solid left accent border in #C89332. Interior text blends a bold Inter body headline with monospace contract identifiers.