274 lines
14 KiB
Markdown
274 lines
14 KiB
Markdown
# UI_DESIGN_THEME.md — Bettersight Brand System
|
||
|
||
Standing design reference, same role as `ENTERPRISE_STANDARDS.md` but for
|
||
visual identity. Any site or app carrying the Bettersight brand should be
|
||
built or converted against this document — it's what made the
|
||
BettersightBox marketing site conversion (blue/cyan → lime-on-navy-black)
|
||
a token swap instead of a rebuild, and it should do the same for the next
|
||
site or app.
|
||
|
||
---
|
||
|
||
## 1. Design Philosophy
|
||
|
||
- **Dark-first.** Every Bettersight surface uses a deep, near-black navy
|
||
as its base, not a light theme. This is a brand decision, not a
|
||
per-project choice — don't build a light variant unless explicitly
|
||
asked.
|
||
- **One accent color, not a palette of accents.** Earlier iterations used
|
||
a blue→cyan gradient; the current system uses a single vivid accent
|
||
(currently lime green). Whichever accent is current, it should be the
|
||
*only* brand color carrying meaning — status colors (success green,
|
||
warning amber, danger red) are separate and never conflict with it.
|
||
- **Outcome language over mechanism language in customer-facing copy.**
|
||
This is a copy rule, not a visual one, but it's part of the same brand
|
||
discipline: pricing and hero copy describe what the customer gets, not
|
||
how the product is built. Feature-level detail belongs in supporting
|
||
sections (a Features grid), never in the first thing a prospect reads.
|
||
- **Enterprise-grade without enterprise cost.** Visually, this means
|
||
restraint — real shadows and spacing discipline, not maximalism. No
|
||
gradients on more than a small number of hero elements. No more than
|
||
one accent color per screen doing persuasive work.
|
||
|
||
---
|
||
|
||
## 2. Color Tokens
|
||
|
||
Define every color as a CSS custom property on `:root`. Never hardcode a
|
||
hex value inside a component rule — every rule should reference a
|
||
variable, so the entire brand can be reskinned by editing this block
|
||
alone. This is the single most important rule in this document: it's
|
||
what made every color change in this project a find-and-replace on
|
||
variable *definitions*, not a hunt through hundreds of component rules.
|
||
|
||
```css
|
||
:root{
|
||
/* Accent — single brand color, swap here only */
|
||
--blue:#9FE838; /* primary accent */
|
||
--blue-b:#B8F94F; /* lighter variant, for gradients/hover if used */
|
||
--cyan:#9FE838; /* kept as an alias for continuity with earlier
|
||
blue+cyan system — set equal to --blue in a
|
||
single-accent system, or to a true second
|
||
accent if the brand ever reintroduces one */
|
||
|
||
/* Status colors — never reused as brand accent */
|
||
--green:#10D98A; --green-l:#D4F9ED; --green-d:#059669;
|
||
--amber:#F79009;
|
||
|
||
/* Background stack — deep navy-black, three steps for layering */
|
||
--navy:#0A1420; /* base background */
|
||
--navy-2:#0F1D2E; /* raised panels */
|
||
--navy-3:#152838; /* hover/active states on dark 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(159,232,56,.28); /* accent-tinted border, e.g. featured cards */
|
||
|
||
/* Light surfaces — used for content sections outside the dark hero/pricing/contact bands */
|
||
--surface:#FFFFFF; --surface-2:#F8FAFD; --page:#EEF1F6;
|
||
|
||
/* Shadows */
|
||
--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(159,232,56,.18);
|
||
}
|
||
```
|
||
|
||
### Converting an existing site to a new accent color
|
||
|
||
This is the exact procedure used for the last conversion — repeat it for
|
||
any future accent change:
|
||
|
||
1. Update the accent variables (`--blue`, `--blue-b`, `--cyan`) and the
|
||
navy stack (`--navy`, `--navy-2`, `--navy-3`) at the top of the file.
|
||
2. Search the stylesheet for any **hardcoded hex or rgba value** that
|
||
duplicates what a variable now holds — these are conversion debt from
|
||
before this document existed, or from a shortcut taken under time
|
||
pressure. Every one found should be replaced with the variable
|
||
reference, not just updated to the new hex.
|
||
3. Any `linear-gradient(135deg,var(--blue),var(--cyan))` used for a
|
||
filled button/CTA background should be evaluated: if the new accent
|
||
is a single color (not a two-color gradient), replace the gradient
|
||
with a flat `background:var(--blue)` and flip the button's text color
|
||
to the dark navy (`color:var(--navy)`) for contrast — a light accent
|
||
like lime needs a dark foreground, unlike the previous blue which
|
||
worked with white text.
|
||
4. Any element using `-webkit-background-clip:text` for gradient text
|
||
(logo wordmark, headline emphasis) should be evaluated the same way —
|
||
collapse to a flat `color:var(--blue)` if the new accent isn't a
|
||
gradient.
|
||
5. Status colors (`--green`, `--amber`) are never touched during an
|
||
accent conversion — they carry meaning independent of brand color and
|
||
should stay recognizable across every version of the brand.
|
||
6. Render and visually verify every major section after conversion —
|
||
hero, any dark mid-page band, pricing, contact, footer — before
|
||
shipping. A find-and-replace is not the same as a verified result.
|
||
|
||
---
|
||
|
||
## 3. Typography
|
||
|
||
```css
|
||
--fd:'Archivo',sans-serif; /* Display — headings, hero copy, logo, prices */
|
||
--fb:'Inter',sans-serif; /* Body — all paragraph and UI text */
|
||
--fm:'JetBrains Mono',monospace; /* Mono — eyebrow labels, stat numbers, status chips, prices */
|
||
```
|
||
|
||
Loaded via Google Fonts:
|
||
```html
|
||
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap" rel="stylesheet">
|
||
```
|
||
|
||
**Why Archivo, not Space Grotesk:** both were evaluated directly on the
|
||
BettersightBox marketing site. Archivo was chosen as the current
|
||
standard — it's a full-weight neo-grotesque family (weights 500-900
|
||
available, unlike single-weight display faces), which restores real
|
||
weight-based hierarchy across headings, prices, and CTAs. It also sits
|
||
closer to the Helvetica/Akzidenz-Grotesk lineage behind the Swiss/
|
||
International Typographic Style (neutral, objective, grid-friendly
|
||
grotesques) than Space Grotesk did — worth knowing if a future project
|
||
wants to lean harder into that aesthetic specifically. Space Grotesk
|
||
remains a legitimate fallback if a project wants a slightly more
|
||
distinctive/geometric display feel instead of Archivo's neutrality.
|
||
|
||
**Usage rules:**
|
||
- Display font (`--fd`) is for anything meant to carry weight and
|
||
presence — h1/h2, the logo wordmark, price figures, CTA button labels.
|
||
- Body font (`--fb`) is for everything else — paragraphs, feature
|
||
descriptions, FAQ answers, form inputs.
|
||
- Mono font (`--fm`) is reserved for small, label-like text that benefits
|
||
from a technical/precise feel — eyebrow pills, "Live" status indicators,
|
||
stat labels, price amounts, footer notes. Never use it for body copy of
|
||
any real length; it reads as data, not prose, and becomes hard to read
|
||
past a sentence or two.
|
||
|
||
### Fonts evaluated and rejected
|
||
|
||
Two names were investigated and ruled out before settling on Archivo —
|
||
recorded here so they aren't re-investigated on a future project:
|
||
|
||
- **"Black Roane Regular"** — no real, verifiable typeface found under
|
||
this exact name on Google Fonts or any foundry/marketplace listing.
|
||
- **"Montelgo Regular" / "Montelgo Sans Serif"** — a real font (Jadatype),
|
||
but caps-only (no lowercase) and licensed for personal use only, not
|
||
commercial use — both disqualifying for a live commercial site. A
|
||
same-named-but-different font, "Montelga" (Ditatype), does have
|
||
lowercase but is a paid, non-Google-Fonts font requiring self-hosting.
|
||
- **Archivo Black** was tried as an intermediate step — single-weight
|
||
only, which flattened the hierarchy Space Grotesk's multiple weights
|
||
provided. This is what led to trying the full Archivo family instead,
|
||
which kept the desired geometric boldness while restoring weight range.
|
||
|
||
|
||
---
|
||
|
||
## 4. Spacing, Radius & Shadow
|
||
|
||
```css
|
||
--r:14px; /* standard card/button radius across the whole system */
|
||
```
|
||
|
||
- Section vertical padding: `88px 0` for major content sections, `96px 0`
|
||
for the closing contact/CTA section (it should feel like the biggest
|
||
pause on the page).
|
||
- Card padding: `28px 24px` to `36px 32px` depending on card prominence
|
||
(a pricing card gets more breathing room than a feature card).
|
||
- Two shadow levels only — `--shadow` (resting state) and `--shadow-h`
|
||
(hover state). Don't invent a third; if something needs more visual
|
||
weight than `--shadow-h`, that's a sign it should be a dark-background
|
||
panel instead, not a heavier shadow.
|
||
|
||
---
|
||
|
||
## 5. Component Patterns
|
||
|
||
- **Eyebrow pill:** small, mono-font, uppercase, accent-tinted background
|
||
and border, a small dot before the text. Used above every major
|
||
section headline to label its category ("Why this exists," "Pricing").
|
||
Note: this label style is distinct from top *navigation* — the nav
|
||
itself stays lowercase/sentence-case link text and should only list
|
||
destinations that are genuinely useful as a jump-to (Features, Pricing,
|
||
FAQ); a section can still exist on the page and carry this eyebrow
|
||
label without being included in the nav.
|
||
- **Primary CTA button:** solid accent background (not gradient, in the
|
||
current single-accent system), dark navy text, medium shadow with the
|
||
accent color at low opacity, `--fd` font, weight 700.
|
||
- **Ghost/outline button:** transparent background, translucent white
|
||
border on dark surfaces, no fill — used for the secondary action next
|
||
to every primary CTA.
|
||
- **Status chip:** small, mono-font, rounded-pill, colored by status
|
||
meaning (green=good, amber=attention) — never by brand accent. This is
|
||
the one component category exempt from the "one accent color" rule,
|
||
because it's carrying operational meaning, not brand meaning.
|
||
- **Live indicator:** small pulsing dot + "Live" label in mono font,
|
||
green, used on any panel showing real-time-feeling data in a hero
|
||
visual.
|
||
- **Footer wordmark:** the brand name rendered large, low-opacity, behind
|
||
the actual footer content — a watermark, not a functional element.
|
||
Current treatment: `rgba(255,255,255,.07)` fill, no stroke, clipped at
|
||
the section edge. This is a recognizable Bettersight-family footer
|
||
treatment and should be reused, not reinvented, on future sites.
|
||
- **FAQ accordion:** native `<details>`/`<summary>` — no JavaScript. Each
|
||
item is a `.faq-item` card; the first item ships `open` by default so
|
||
the page never looks empty on load. A small `+` icon (two crossed
|
||
lines, accent-colored) sits at the end of the summary row and rotates
|
||
45° into an `×` via `.faq-item[open] .faq-q svg{transform:rotate(45deg)}`
|
||
when expanded. This is the standing Bettersight FAQ pattern — do not
|
||
replace it with static, non-interactive cards on a future site; it was
|
||
tried once and reverted specifically because it lost the interactivity
|
||
and the original brand feel.
|
||
- **Logo mark:** a brand-supplied image (not a hand-drawn SVG glyph),
|
||
embedded as a base64 data URI directly in the HTML so the file stays a
|
||
single self-contained artifact with no external image dependency.
|
||
Container is unstyled (no background fill, no border-radius) since the
|
||
source image carries its own transparent background and full styling
|
||
— `.logo-mark` only sizes and centers it (currently 52.5px square).
|
||
The wordmark sits close against it with a small negative margin
|
||
(currently `-5px` on `.logo-text`) rather than a positive gap, since
|
||
brand-supplied icon assets typically have some transparent padding
|
||
baked into the file itself — check the actual content bounding box
|
||
(not just the canvas size) before assuming a CSS gap will look right;
|
||
crop or adjust the negative margin based on the real content edges,
|
||
not the file's outer dimensions.
|
||
**Do not hand-draw a replacement glyph when a real brand asset
|
||
exists or is provided** — earlier attempts to recreate a supplied
|
||
reference image as inline SVG (an isometric box with a tape strip)
|
||
took several iterations to even approximately match and still fell
|
||
short of the actual source image. If a real asset is available,
|
||
embed it directly; reserve hand-drawn SVG icons for cases with no
|
||
existing brand asset to draw from.
|
||
|
||
---
|
||
|
||
## 6. Copy Discipline (ties to Section 1)
|
||
|
||
- Pricing and hero sections: outcome language only. If a line names a
|
||
specific mechanism (a field name, a scan type, a doctype), move it to
|
||
a Features section or cut it — it's giving away implementation detail
|
||
a competitor or a cut-rate developer could use as a build spec.
|
||
- Never let two sections on the same page describe the same feature in
|
||
near-identical wording — check for this specifically when adding new
|
||
copy to an existing page. If Features and Pricing are about to say the
|
||
same thing twice, make sure they're doing two different jobs (Features
|
||
proves depth, Pricing communicates value).
|
||
- Headlines earn their place by describing a feeling or a recognizable
|
||
moment, not a feature. Subheads earn their place by answering the
|
||
question the headline raises — never by restating the headline in
|
||
different words.
|
||
|
||
---
|
||
|
||
## 7. What This Document Does Not Cover
|
||
|
||
- App/dashboard UI (as opposed to marketing site UI) — that's governed
|
||
by the Design & UI Reference section in the relevant project's
|
||
CLAUDE.md, which documents interaction patterns (dense rows, status
|
||
cards, AI-first query bar) rather than brand color/type. Both
|
||
documents should agree on color/type tokens; only this file is the
|
||
source of truth for what those tokens actually are.
|
||
- Any non-Bettersight-branded client work (e.g. a client's own marketing
|
||
site under their own brand) — this system is for Bettersight-family
|
||
products specifically. |