# UI_DESIGN_THEME_ENTERPRISE.md — Bettersight Statement Extractor, Enterprise Variant Standing design reference for this app's UI specifically — same role as `UI_DESIGN_THEME.md` (the Bettersight brand system), but documenting a deliberate, explicit deviation from it: a light, enterprise-SaaS surface instead of the brand's default dark-first theme. This file is the source of truth for `templates/index.html`'s visual tokens. `UI_DESIGN_THEME.md` remains the source of truth for Bettersight marketing-site/brand work and for any token this file doesn't override. **Why this exists as a separate file rather than edits to the brand doc:** `UI_DESIGN_THEME.md` §1 states dark-first is a brand decision, not a per-project choice, and explicitly says "don't build a light variant unless explicitly asked." It was asked, for this app specifically, to match a provided enterprise-software reference screenshot. Keeping that request scoped to its own document — rather than overwriting the brand doc's values — keeps the brand default intact for every other Bettersight surface while giving this app its own correct reference. --- ## 1. Design Philosophy - **Light-first, not dark-first.** This app intentionally inverts `UI_DESIGN_THEME.md` §1's dark-first default: a near-white page (`#EEF1F6`) with white raised cards (`#FFFFFF`), not a deep navy base. This inversion is specific to this app's enterprise-dashboard identity and should not be read as a brand-wide change. - **One accent color, carried over from the brand system's own rule.** Still a single vivid accent doing all brand-meaning work — just a standard enterprise blue instead of the brand's lime green. Status colors (success green, warning amber, danger red) remain separate and never conflict with it, exactly as in the brand doc. - **Flat and restrained over textured and decorative.** The brand site's subtle accent-tinted dot-grid background texture was deliberately dropped here — enterprise software reads as flat, bordered surfaces with minimal shadow, not a marketing-site texture. Shadows are tuned down from the brand doc's dark-surface shadow strength to a much lighter touch (a 1–2px hairline effect, not a glow). - **One typeface family, not a display/body split.** The brand doc's 3-font system (Archivo display / Inter body / JetBrains Mono labels) is kept structurally (three font variables still exist), but the display slot now points at the same family as body copy (Inter) so headings, labels, and prose all read as one consistent enterprise typeface rather than a stylized display face layered over body text. Mono stays reserved for small label-like text (card eyebrow labels, status chips, table figures) exactly as the brand doc intends. - **Sharper corners.** Radius drops from the brand doc's `14px` (soft, pill-leaning) to `8px` (standard rounded-rectangle), matching typical enterprise dashboard chrome rather than a marketing-site softness. --- ## 2. Color Tokens Same variable names and count as `UI_DESIGN_THEME.md` — only the values change, per that document's own stated conversion discipline (§2, "Converting an existing site to a new accent color"): never hardcode a color inside a component rule, always reference the variable, so the whole surface can be reskinned by editing this block alone. ```css :root{ /* Accent — single brand color, enterprise variant: standard blue */ --blue:#2563EB; /* primary accent */ --blue-b:#1D4ED8; /* darker variant, for hover (light surfaces darken on hover, not lighten) */ --cyan:#2563EB; /* alias, set equal to --blue in this single-accent system */ /* Status colors — never reused as brand accent */ --green:#16A34A; --green-l:#DCFCE7; --green-d:#15803D; --amber:#D97706; --amber-l:#FEF3C7; --red:#DC2626; --red-l:#FEE2E2; /* Background stack — light surfaces (inverted from the brand doc's dark-first stack) */ --navy:#EEF1F6; /* base page background */ --navy-2:#FFFFFF; /* raised panels / cards */ --navy-3:#F8FAFD; /* hover/active states on light surfaces */ /* Text on light surfaces */ --t1:#0D1526; --t2:#2D3A52; --t3:#6B7A99; --t4:#9BA8C0; /* Borders */ --border:rgba(28,56,121,.11); --border-2:rgba(28,56,121,.18); --border-b:rgba(37,99,235,.28); /* accent-tinted border, e.g. focused/edited cells */ /* Shadows — tuned down from the brand doc's dark-surface strength */ --shadow:0 2px 8px rgba(12,26,60,.06),0 8px 28px rgba(12,26,60,.09),0 0 0 1px rgba(28,56,121,.06); --shadow-h:0 4px 16px rgba(12,26,60,.10),0 16px 48px rgba(12,26,60,.13),0 0 0 1px rgba(37,99,235,.18); } ``` Note on `--navy*` naming: the variable *names* are carried over unchanged from `UI_DESIGN_THEME.md` even though their role flips (they now hold light values, not dark) — this was a deliberate choice so the token *structure* stays identical between the two documents and a future accent or theme change can still be a pure find-and-replace on values, per the brand doc's own central rule. ### Converting this theme to a new accent color Same five-step procedure as `UI_DESIGN_THEME.md` §2, applied here: 1. Update `--blue`, `--blue-b`, `--cyan` above. 2. Search `templates/index.html` for any hardcoded hex/rgba that duplicates what a variable now holds (several component rules use a literal `rgba(37,99,235,.0N)` tint rather than a var-derived one, since CSS custom properties can't be partially-opacity-blended without `color-mix()`) — replace the RGB triplet to match the new accent. 3. `.btn-primary` uses a flat `background:var(--blue)` with `color:var(--navy-2)` (white, on this light stack) for contrast — if a future accent is dark instead of a mid-tone blue, re-evaluate that text color the same way the brand doc flags for its own lime/white button text swap. 4. Status colors (`--green`, `--amber`, `--red`) are never touched during an accent conversion. 5. Render and visually verify: upload card, status banner (all three states), table flagged-row tint, resizer hover state, collapsed/expanded Result card — before shipping. --- ## 3. Typography ```css --fd:'Inter',sans-serif; /* Display — headings, card labels (collapsed to the body face, see §1) */ --fb:'Inter',sans-serif; /* Body — all paragraph and UI text */ --fm:'JetBrains Mono',monospace; /* Mono — card eyebrow labels, status chips, table amounts/balances */ ``` Loaded via Google Fonts: ```html ``` **Why Inter for both display and body, departing from the brand doc's Archivo/Inter split:** the reference enterprise screenshot used one consistent sans throughout — no separate stylized display face. Archivo's weight range (500–900) is what gave the brand site's headings real presence; here, Inter at weight 700–800 does the equivalent job while keeping every piece of text, from `h1` to a table label, visually part of the same system — closer to how enterprise dashboard software (Workday, Stripe-style back-office tools, the reference screenshot itself) reads. **Usage rules** — unchanged from the brand doc: - `--fd` for anything meant to carry weight/presence: `h1`, card section labels (`.card h2`), the checks-list item names. - `--fb` for everything else: body copy, form inputs, buttons that aren't using the mono face. - `--fm` stays reserved for short, label-like, data-flavored text: card eyebrow labels, status chips/tags, the status banner, and right-aligned table figures (Amount/Balance columns) — never body prose. --- ## 4. Spacing, Radius & Shadow ```css --r:8px; /* standard card/button radius across this app — down from the brand doc's 14px */ ``` - Card padding: `28px 26px` — one consistent value across every card in this single-page app (no pricing-card-vs-feature-card distinction to make, unlike the marketing site). - Two shadow levels only, same discipline as the brand doc — `--shadow` (resting) and `--shadow-h` (hover) — both tuned to a light-surface strength (a few percent opacity, not the brand doc's 25–35% dark-surface values). Component-level accents (the primary button's blue glow, the resizer knob's hover ring) use their own small bespoke shadow rather than inventing a third shared level, consistent with "if something needs more weight than `--shadow-h`, that's a sign of a different surface treatment, not a heavier shadow." --- ## 5. Component Patterns - **Primary button (`.btn.btn-primary`):** solid accent (`--blue`) background, white (`--navy-2`) text, `--fd` font, weight 700, `10px` radius, a soft blue glow shadow (`0 4px 18px rgba(37,99,235,.18)`). Darkens to `--blue-b` on hover (light-surface convention: hover darkens, not lightens, the opposite of the brand doc's lime-on-dark hover rule). - **Toggle button (`.btn-toggle`):** the same filled-blue treatment as the primary button, scaled down for inline placement inside a card header (compact padding, `12px` font, `8px` radius) — used for "Download Excel" and "Hide/Show Source Doc". Explicitly matches the primary button's fill/shadow/hover behavior rather than the brand doc's ghost/outline secondary-button pattern, since this app has no need for a visually "lesser" secondary action next to its CTAs — both of this app's header buttons are equally primary actions. - **Card section label (`.card h2`):** small, mono-font, uppercase, colored `var(--blue)` — every card's name ("Statement PDF", "Result", "Source Document", "Transactions") reads in the accent color, not the brand doc's neutral `--t4` gray. This was an explicit choice to tie every section's identity visually to the one brand color on an otherwise mostly-neutral light surface. - **Collapsible section header:** a left-aligned, clickable group (chevron + `h2`) that toggles a sibling details block, with any persistent action (here, Download Excel) kept as a separate, always-visible control on the opposite side of the same header row — so collapsing detail never hides the one action a user is most likely to want immediately. The chevron rotates 90° via CSS transform on expand; defaults to collapsed on every fresh result. - **Status banner / tag / chip:** small, mono-font, rounded-pill, colored by status meaning (green=pass, amber=needs review, red=fail) — exempt from the one-accent rule exactly as the brand doc specifies, since it carries operational, not brand, meaning. - **Resizer / drag handle:** a vertical pill-shaped knob (not a bare line) with horizontally-spaced grip ticks, signaling sideways drag. Light-surface gradient fill, subtle top-edge highlight, accent-tinted ring on hover/drag. - **Row edit lock:** table cells are read-only by default; a pencil icon per row is the only way in, with per-row Save/Cancel rather than a global edit mode — deliberately makes every edit a two-step, visible commit rather than an accidental keystroke. --- ## 6. Copy Discipline This is an operational tool, not a marketing surface, so the brand doc's §6 (outcome-language pricing/hero copy, no-duplicate-wording-across- sections) mostly doesn't apply here. What carries over: - Status and check copy states facts plainly (what was checked, what the numbers are) rather than persuading — this is the inverse instinct from marketing copy, and intentional: a bookkeeper verifying arithmetic needs the number and the reason, not a sell. - Never silently correct or guess a value the system isn't confident about — surface it as a flag with specifics instead. This is a product behavior rule as much as a copy rule, and it shows up directly in this UI (e.g. the "not available" balance-check state explicitly says why, rather than omitting the check). --- ## 7. What This Document Does Not Cover - The Bettersight brand/marketing-site system — that's `UI_DESIGN_THEME.md`, unchanged and still dark-first, still lime-accent. This file only overrides tokens for this specific app's surface. - Anything in this app not yet built per its own build plan (the review- screen cell-level suggested fixes, the layout mapper UI, multi-tenant account chrome) — those will need their own component entries here once they exist, following the same patterns documented in §5.