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