| name | Rybbit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Open-source, privacy-friendly web & product analytics. A flat, dark-mode-default instrument panel where the data is the interface. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| colors |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typography |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| rounded |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| spacing |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| components |
|
Creative North Star: "The Instrument Panel"
Rybbit is a precise, legible cockpit for understanding a website. Every surface is flat; depth comes from tonal layering of a pure-grayscale ramp, not from shadows. The canvas recedes (near-black #141414 in the default dark theme), panels lift one notch (#1b1b1b), interactive chrome lifts one more (#242424), and hairline 1px borders draw the seams. Onto that calm gray instrument, bee yellow marks primary buttons and periwinkle (#b3bfff) draws the data lines. Emerald remains the signal for selection and semantic success. The data is the instrument; the chrome stays out of the way.
The personality is friendly, precise, and trustworthy: approachable without being toy-like (PRODUCT.md). Warmth lives at the edges (the bee, an empty state, a small touch), never on top of the numbers. Density is a feature here, not a flaw: this is a tool people open to answer a specific question, and the layout should put that answer in front of them in seconds with depth one layer down. Radii are deliberately tight (0.3rem / 4.8px max), so the UI reads as engineered and exact rather than soft or playful.
This system explicitly rejects the generic SaaS template (purple gradients, the hero-metric template, endless identical icon+heading+text card grids), anything over-playful or toy-like that undermines trust in the data, the cluttered GA4 maze, and cold enterprise-BI heaviness (PRODUCT.md anti-references). It should feel like Linear or a Vercel/Stripe dashboard: confident, quiet, fast.
Key Characteristics:
- Dark-mode-default; a full light theme mirrors every token.
- Flat by default: depth via a 21-step grayscale ramp + 1px borders, never shadows.
- Bee yellow for primary buttons, emerald for selection/success, periwinkle for charts.
- Tight geometry: 4.8px max radius, Inter throughout, compact 36px controls.
- Density with legibility: dense data, but body text stays ≥4.5:1 contrast.
A pure-neutral grayscale chassis carrying bee-yellow primary actions and periwinkle data; selection and semantic state retain their existing colors.
- Bee Yellow (
#facc15,--color-button-primary; hover#fde047,--color-button-primary-hover; border#eab308,--color-button-primary-border): Primary buttons use the existing yellow-400/300/500 ramp with neutral-950 text (#131313,--color-button-primary-foreground) in both themes. The nativeaccentandsuccessbutton variants share these tokens. - Emerald State (
#10b981,--accent-500; deeper#059669,--accent-600): Current selection, positive deltas and semantic success badges retain the original emerald ramp.
- Periwinkle Data Line (
#b3bfffdark /#99aafflight,--dataviz; second series#c2caff/#b3bfff,--dataviz-2): Reserved exclusively for data visualization (line/bar/area series, the activity globe). It is a data color, never a UI color: it must not appear on buttons, links, or chrome.
The workhorse. A 21-step pure-grayscale ramp (--neutral-0 at 97% L through --neutral-1000 at 4% L, chroma 0).
- Canvas (
#141414,--backgrounddark /#f7f7f7light): The app backdrop. - Surface (
#1b1b1b,--neutral-900/ white light): Cards and panels, one step off the canvas. - Raised Surface (
#242424,--neutral-850/ white): Default buttons and elevated chrome. - Primary Text (
#fafafa,--foregrounddark /#0a0a0alight): Body and headings. - Muted Text (
#999999,--neutral-400/--neutral-500): Descriptions, secondary labels, placeholders. Verify ≥4.5:1 before going lighter. - Border (
#1f1f1f,--borderdark /#e6e6e6light): Hairline seams and dividers, always 1px.
- Destructive Red (
#ef4444,--red-500): Errors, delete actions, negative deltas. - Warning Yellow (
#eab308,--yellow-500): Warnings, caution thresholds. - Info Blue (
#3b82f6,--blue-500): Informational badges only (distinct from the periwinkle data hue).
A full Tailwind-style ramp (red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose) is defined in globals.css for chart palettes and category coloring. Outside data viz and state, do not reach into it.
The Signal-Not-Decoration Rule. Bee yellow marks primary buttons only. Emerald marks success and current selection. Neither hue decorates unrelated surfaces or backgrounds.
The Two-Voice Rule. The interface speaks in grayscale. Bee yellow is the primary action voice and periwinkle is the data voice. Selection and semantic state colors appear only when their state demands them.
The Flat Rule. No box-shadow for resting elevation. Depth is the grayscale ramp plus 1px borders. If two surfaces need separating, change the neutral step or add a hairline border, not a shadow.
Display / Body / Label Font: Inter (with system-ui, sans-serif fallback), loaded via next/font.
Character: One family, carried by weight and size contrast, not by pairing. Inter is neutral, screen-legible at small sizes, and tabular-friendly for numbers, which is exactly right for a dense analytics tool. There is no display typeface; product UI does not need one.
- Headline (600, 1.875rem / 30px, line-height 1.1): Large stat values and primary metric numbers. Use tabular figures for aligned columns.
- Title (600, 1rem / 16px,
leading-none,tracking-tight): Card titles, section headers, panel headings. - Body (400, 0.875rem / 14px, line-height ~1.4): The dominant size. Table cells, descriptions, most UI text. Cap prose at 65–75ch; tables may run denser.
- Label (500, 0.75rem / 12px): Badges, chips, small captions, axis labels, secondary metadata.
The One-Family Rule. Inter does every job: headings, body, labels, data. Do not introduce a second UI typeface. Hierarchy comes from weight (400/500/600) and size, never from a new face.
The No-Shrinking-Headline Rule. Type uses a fixed rem scale, not fluid clamp(). Users view at a consistent DPI inside an app shell; a heading that shrinks in a sidebar looks worse, not better.
This system is flat by default. There is no resting shadow vocabulary; depth is conveyed entirely through the grayscale ramp (canvas → surface → raised surface) and 1px borders. Cards declare transition-all duration-300 but carry no shadow at rest; the only motion-borne depth is a hairline border-color shift on hover. If a surface looks like a 2014 app, the shadow is the problem: remove it and step the neutral instead.
The Tonal-Depth Rule. Separation is achieved by moving one step on the neutral ramp or adding a 1px border, never by stacking shadows. Overlays that genuinely float (dropdowns, dialogs, popovers via Radix) may use the platform's minimal elevation, but in-page surfaces stay flat.
- Shape:
rounded-lg(4.8px) for default/sm/lg;rounded-md(2.8px) for xs/icon. Height 36px default (h-9), 32px sm, 24px xs.font-medium,transition-colors. - Default: Raised neutral surface with a 1px border (
#242424fill,#3d3d3dborder in dark; white fill,#d9d9d9border in light). Hover lightens the fill and border one step. This is the neutral workhorse button. - Accent / Success: Bee-yellow fill (
#facc15) with a yellow-500 border and neutral-950 text in both themes. Hover uses yellow-300 (#fde047). Both native variants use the sharedbutton-primarytokens infrontend/rybbit/src/app/globals.css. - Destructive / Warning: Red / yellow fills, used only for genuinely destructive or cautionary actions.
- Outline / Ghost / Link: Transparent surfaces with muted neutral text; hover fills with the faintest neutral step. For secondary and tertiary actions.
- Focus:
focus-visible:ring-1in--neutral-950(light) /--neutral-300(dark). Always keep a visible focus ring.
- Corner Style:
rounded-lg(4.8px). - Background: Surface step (
#1b1b1bdark / white light), one notch off the canvas. - Border: 1px hairline (
--neutral-850dark /--neutral-100light).overflow-hidden. - Shadow Strategy: None at rest (see Elevation). Hover may shift border color only.
- Internal Padding: 16px (
p-4); header usesspace-y-1.5(6px). Descriptions in muted text at 14px. - Loading: Cards use an in-place
CardLoader(ldrs Zoomies) tinted from the neutral ramp; prefer skeletons over a centered spinner for content.
- Style: Transparent background, 1px border (
--neutral-150light /--neutral-800dark),rounded-lg, 36px tall (h-9), 14px text. Placeholder in muted neutral (meets 4.5:1). - Focus:
focus-visible:ring-1neutral; no border color change beyond the ring. - Error:
aria-[invalid=true]flips the border to red-500 (dark: red-400). - Search variant: Leading 16px search icon in
--neutral-400,pl-9.
- Shape:
rounded-md(2.8px),px-1.5 py-0.5, 12pxfont-medium. - Semantic variants: success/destructive/warning/info render as a 20% tint of the hue with the 600 (light) / 400 (dark) text shade and a transparent border. Neutral default/secondary/outline/ghost use the grayscale ramp.
- Charts (Nivo bar/line/calendar, D3, Mapbox/OpenLayers globe) render series in periwinkle (
--dataviz,--dataviz-2) by default, escalating to the full Tailwind ramp only when many categories must be distinguished. Axes, gridlines, and labels use the muted neutral steps so the data line stays dominant. Prefer hue+shape/position separation over hue-alone (PRODUCT.md a11y).
- Do keep surfaces flat: convey depth with the neutral ramp (
#141414→#1b1b1b→#242424) and 1px borders. - Do reserve bee yellow for primary buttons and emerald for success/current selection (The Signal-Not-Decoration Rule).
- Do keep data viz in periwinkle (
--dataviz) and the broader ramp; never use the data hue on chrome. - Do use Inter at fixed rem sizes with weight contrast (400/500/600) for all hierarchy.
- Do keep radii tight (≤4.8px) and controls compact (36px default height).
- Do keep a visible
focus-visiblering on every interactive element, and honorprefers-reduced-motion. - Do mirror every token across dark and light themes; dark is the default.
- Don't ship the generic SaaS template: no purple gradients, no hero-metric template (big number + tiny label + gradient accent), no endless identical icon+heading+text card grids.
- Don't let the bee or friendly tone tip into over-playful / toy-like territory that undermines trust in the numbers.
- Don't recreate the cluttered GA4 maze or cold enterprise-BI heaviness: surface the likely answer first, depth one layer down.
- Don't add resting
box-shadowfor elevation (The Flat Rule); don't use shadows where a neutral step or border works. - Don't use
border-left/border-right> 1px as a colored accent stripe; use full hairline borders or a tint. - Don't use gradient text (
background-clip: text) or decorative glassmorphism. - Don't introduce a second UI typeface or fluid
clamp()headings. - Don't tint unrelated surfaces or backgrounds with bee yellow or emerald, or paint chrome in the periwinkle data hue.
Site settings reuse Rybbit's native dialog shell and General-tab sections, including organization moves and their confirmation dialog. Do not introduce a separate Property access page; keep old URLs compatible by opening the native dialog. GA4 metadata is read-only and unsupported collector controls are omitted. Keep Widgets standalone. The Footer preserves the original 1100px width, 140px logo slot, three-column grid, support-action area and bottom-bar alignment; adapt only branding and destinations to real MetriBee resources.
Account, organization, team, administrator, login and signup pages retain Rybbit's original complete page layouts and native controls. Keep the original content widths, margins, navigation composition, administrator tab order, two-column login and stepped signup. Use data adapters for GA4/SQLite and the approved map source, rather than redesigning these pages.
Search Console belongs in the existing Analytics page, country and device tables. Expose search metrics in the native column-header menu and alongside GA4 columns in the same expanded table; keywords use the existing Sources card. Main places search clicks, impressions, CTR and average position in the top native metric card, with selected-state tiles and sparklines that switch the existing main chart. Pages retains the four native StatBand summary cells alongside its integrated table.
Widget management lives on the standalone property-scoped Widgets page. Reuse the native sidebar, compact list rows, controls and shared Funnels editor; keep badges, metrics-only components and trend cards within one custom builder, without separate legacy embed tabs.
The owner requested native Rybbit UI reuse on October 22, 2026. The analytics workspace uses the original Rybbit theme and React components in frontend/, with GA4 data adapters. Main, Pages, Events, Journeys and Retention share one shell and control system. Retain original Radix keyboard behavior and motion presets. Do not add the legacy Instrument Panel palette or Handlebars controls to these pages. The default Home retains the original Rybbit Home/SiteCards and adds Status, Table and Heatmap tabs with shared search, dates and comparison periods. Keep tabs, update time and date controls in one desktop toolbar row. The site overview at /analytics merges GA4 reports into the native main chart and topical panels: reuse existing source, page, geography and technology panels rather than adding duplicate reports. Revenue, traffic quality and visitor segments use the same native tabbed cards. All historical panels share the overview's dates and filters. /analytics/reports is only a compatibility redirect. Sites reports live in Home; legacy /sites links redirect to the matching Home tab. Keep /realtime, Globe, quota and connection as distinct screens. Use the native Rybbit account, organization, team and administrator navigation and controls. No Documentation entry. The former design is archived at docs/legacy-panel-design.md. Imported source and license notices are in frontend/third-party/.