--- name: Co-Lite Admin description: The category-standard SaaS admin for event leads, executed with care. colors: primary: "#2563EB" primary-foreground: "#FFFFFF" accent-tint: "#EFF6FF" accent-ink: "#1D4ED8" ground: "#F8FAFC" surface: "#FFFFFF" ink: "#0F172A" ink-muted: "#475569" slate-tint: "#F1F5F9" hairline: "#E2E8F0" control-stroke: "#7C8BA1" positive: "#15803D" warning: "#B45309" negative: "#B91C1C" destructive: "#DC2626" chart-teal: "#0F766E" chart-amber: "#D97706" chart-violet: "#7C3AED" chart-rose: "#E11D48" typography: headline: fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" fontSize: "24px" fontWeight: 600 lineHeight: 1.33 letterSpacing: "-0.025em" title: fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" fontSize: "16px" fontWeight: 600 lineHeight: 1 body: fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" fontSize: "14px" fontWeight: 400 lineHeight: 1.43 label: fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" fontSize: "12px" fontWeight: 600 lineHeight: 1.33 letterSpacing: "0.025em" figure: fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" fontSize: "24px" fontWeight: 600 fontFeature: "\"tnum\" 1" rounded: sm: "4px" md: "6px" lg: "8px" full: "9999px" spacing: xs: "4px" sm: "8px" md: "16px" lg: "24px" components: button-primary: backgroundColor: "{colors.primary}" textColor: "{colors.primary-foreground}" rounded: "{rounded.md}" padding: "8px 16px" height: "36px" button-outline: backgroundColor: "{colors.ground}" textColor: "{colors.ink}" rounded: "{rounded.md}" padding: "8px 16px" height: "36px" button-outline-hover: backgroundColor: "{colors.accent-tint}" textColor: "{colors.accent-ink}" button-ghost-hover: backgroundColor: "{colors.accent-tint}" textColor: "{colors.accent-ink}" input: backgroundColor: "{colors.surface}" textColor: "{colors.ink}" rounded: "{rounded.md}" padding: "4px 12px" height: "36px" card: backgroundColor: "{colors.surface}" textColor: "{colors.ink}" rounded: "{rounded.lg}" padding: "24px" table-head: backgroundColor: "{colors.slate-tint}" textColor: "{colors.ink-muted}" typography: "{typography.label}" height: "40px" badge-positive: textColor: "{colors.positive}" rounded: "{rounded.full}" padding: "2px 8px" nav-item-active: backgroundColor: "{colors.accent-tint}" textColor: "{colors.accent-ink}" rounded: "{rounded.lg}" height: "44px" --- # Design System: Co-Lite Admin ## Overview **Creative North Star: "The Category Standard"** Co-Lite looks like the best ordinary SaaS admin and nothing more: white and slate, one blue accent, Inter, no brand gimmicks. The owner chose this deliberately over more characterful worlds; the measure is Stripe Dashboard, Linear and Vercel. Its quality lives in restraint and in the details: exact hairlines, aligned figures, honest contrast, consistent control heights. The page is a pale slate ground (#F8FAFC) carrying white surfaces: the sidebar, the sticky header and every card are white with a 1px slate hairline. Density is office density: 36px controls, 14px working text, sortable tables inside cards, KPI figures in tabular numerals. An admin should read an event's numbers and filter a lead table without having to learn anything. This world replaces the inherited babyboo look (brown primary, DM Sans, 16px soft corners, gradient wordmark). That look is retired and must not return; `app/globals.test.ts` fails on DM Sans and on any "brown", "gold" or "dusty" in the stylesheet. **Key Characteristics:** - Pale slate ground, white surfaces, 1px slate hairlines. - One blue accent for primary actions, links, focus and the active nav item. - Inter for everything; figures, IDs and percentages on tabular numerals. - Small, quiet radii: 6px controls, 8px cards and tables, full pills for status. - Depth from hairlines first, with only a whisper of shadow. - Colour comes only from theme tokens, never palette classes. ## Colors Slate neutrals with a single blue voice, plus muted semantic and chart tones that each carry a text label. ### Primary - **Action Blue** (primary): filled primary buttons, links in tables (event names), the brand mark square, the avatar, focus rings (as a 3px ring at 50% opacity), and the first chart series. In dark mode it lightens to #60A5FA with near-black text (#0B1220). - **Blue Tint** (accent-tint) with **Deep Blue Ink** (accent-ink): the active sidebar item, hover on outline and ghost buttons, menu highlights and `::selection`. The tint is a ground, never text; the ink is the text on it. ### Secondary - **Semantic tones**: Forest (positive), Burnt Amber (warning), Brick (negative) appear only as status pills (10% fill, 30% border, full-strength text) and as delta text. **Signal Red** (destructive) fills destructive buttons and outlines destructive-outline ones. - **Chart tones**: Deep Teal, Amber, Violet, Rose follow Action Blue as chart series 2 to 5. Teal and violet double as category pills ("kinds", not states). ### Neutral - **Slate Ground** (ground): the page behind everything, and the fill of outline buttons. - **White Surface** (surface): sidebar, header, cards, popovers, menus, input fields. - **Slate Ink** (ink): all primary text and headings. - **Muted Slate** (ink-muted): labels, meta lines, descriptions, table header text, idle nav items. It is #475569, darker than the direction contract's #64748B, so it clears 4.5:1 on the slate tint. - **Slate Tint** (slate-tint): table header rows, secondary buttons, muted fills, row hover at 50%. - **Hairline** (hairline): every border and divider; the default border colour of every element. - **Control Stroke** (control-stroke): the border of inputs and select triggers only, darker than the hairline so a field's boundary reaches 3:1. **Dark theme** is a supported mechanism (`.dark` on html, toggled in the header), not the default. It re-derives the same roles from the slate and blue scale: ground #020617, surfaces #0F172A, ink #F1F5F9, muted #94A3B8, tint #1E293B, accent tint #172554 with ink #BFDBFE, control stroke #64748B, primary #60A5FA. Semantic and chart tones move to their 400 steps. ### Named Rules **The One Voice Rule.** Blue is the only interactive colour. Primary actions, links, focus and the current location are blue; nothing else is. Semantic and chart tones never mark something clickable. **The Token-Only Rule.** Colour enters a component only through theme tokens (`bg-primary`, `text-muted-foreground`, `border-input`). Tailwind palette classes (`bg-slate-100`, `text-blue-600`, `bg-white`) are banned and `app/design-tokens.test.ts` fails on them, with a short reasoned allowlist (modal scrims, print sheets, QR quiet zones, email previews). **The Measured Contrast Rule.** Every text pair clears 4.5:1 and every control border clears 3:1 against ground and surface, in both themes. `app/globals.test.ts` checks this; a new token pair joins that test before it ships. ## Typography **Display Font:** none (no display face) **Body Font:** Inter (with ui-sans-serif, system-ui), self-hosted variable woff2 via next/font/local **Label/Mono Font:** Inter; the mono role aliases sans **Character:** One family doing every job, separated by weight and size only. Headings at 600 with a slight negative track; working text at 14px. ### Hierarchy - **Headline** (600, 24px, -0.025em): the page title in the page header, one per page. - **Title** (600, 16px, line-height 1): card titles ("Funnel", "By event"). Section headings h1 to h4 take 600 and -0.015em globally. - **Body** (400, 14px): controls, table cells, form text, descriptions. The document base is 16px / 1.6 and inputs render 16px below the md breakpoint to avoid mobile zoom. - **Label** (600, 12px, 0.025em, uppercase): table column headers only. Form labels are 14px sentence case. - **Figure** (600, 24px, tabular numerals): KPI tile values; every other number, date and percentage also uses the tabular class at its own size. ### Named Rules **The Aligned Figures Rule.** Any figure, ID, date or percentage carries tabular numerals (the `.tabular` class), so columns and KPI rows line up digit for digit. ## Layout An app shell: a sticky 240px white sidebar (collapsible to a 76px icon rail on desktop, a left sheet below the lg breakpoint) beside a column holding a sticky 56px white header and the main area. The sidebar's top block is header-high so its bottom hairline continues the header's. Main content sits on the slate ground with 16px padding, centred up to 1600px. Page anatomy: on a sub-page the header shows its parent page as a link back (a page reached from the sidebar shows none, since its title already names it), then the page header (title, optional meta line, actions right-aligned and wrapping), then filter row, then the content card. Rhythm is a 4px base: 8px between related controls, 16px between blocks and around the page, 24px inside cards. KPI tiles sit in one row of equal columns. Tables scroll horizontally inside their card with a 20px shadow at 18% ink on whichever edge has more content; it fades out at that end of the scroll. A data table's pinned first column covers the left shadow, so it carries a 1px hairline on its right edge instead. The page reserves the scrollbar gutter so overlays never shift the layout. The footer credit "Powered by Containerverse Sdn. Bhd." sits at the foot of the sidebar on desktop and under the content on mobile, in 12px muted text. **Public visitor pages** (`/r`, `/i`, `/c`) have no shell. One white card sits on the slate ground, full width with a 16px gutter on phones and at most 448px wide, with the footer credit under it. The card opens with the event header: the company name as a 12px semibold uppercase label in Action Blue, the event name as the 24px h1, then dates and location on their own muted lines with 16px icons. The privacy notice is fine print: 12px muted text on a slate-tint panel, both languages in full. Every end state (loading, thank you, welcome, not yet, inactive) is a centred 40px round icon (blue tint, or 10% red for errors) over a balanced semibold heading. The look is neutral: no company logo or colour. **Signed-out pages** (login, reset password) share one frame: from the lg breakpoint a blue-tint panel on the left with the "Back office" pill, a headline and three feature lines, and the form column on the ground at right; below lg the panel folds into a short band above the form. **My QR codes** shows one card per code in a grid (one column on phones, two from 768px, three from 1280px): the event name as the card title, dates and location under it, the warning pill in the header when switched off, then the QR above its link and a wrapping row of outline buttons. ## Elevation & Depth Flat surfaces separated by hairlines, with a whisper of shadow that only says "this lifts slightly". Cards carry the card shadow; controls carry a barely-there shadow; floating layers (menus, popovers, toasts, dialogs) step up. In dark mode the card shadow becomes a single dark drop and hairlines do the work. ### Shadow Vocabulary - **Card** (`box-shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.04)`): cards and data-table frames. - **Control** (`box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05)`): inputs, select triggers, outline buttons. - **Float** (`box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)`): select menus, dropdowns, popovers, toasts. - **Modal** (`box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)`): dialogs, over a 50% black scrim. ### Named Rules **The Hairline First Rule.** Separation comes from the 1px hairline and the ground/surface step; shadow never replaces a border and never exceeds the four steps above. ## Shapes Small, precise corners. Controls (buttons, inputs, selects, menus) are 6px; cards, table frames, tabs lists, nav items and dialogs are 8px; status and category pills and avatars are fully round. Inside a card, anything rounded takes the card's radius minus its padding with an 8px floor, so nested controls and tables render at 8px and corners stay concentric at every depth. The brand mark is a 24px blue square at 6px radius beside the "Co-Lite" wordmark in 18px semibold slate. ## Components ### Buttons Quiet, compact, unmistakable. - **Shape:** gently squared (6px), 36px tall; sm 32px, lg 40px, xs 24px. Icon buttons keep a 44px invisible hit area. - **Primary:** Action Blue fill, white 14px medium text, 16px side padding; hover at 90% fill. - **Outline:** ground fill, hairline border, control shadow; hover turns blue tint with deep blue ink. Used for secondary actions and pager controls. - **Secondary:** slate tint fill, ink text. **Ghost:** no fill until hover tint (header icons, row actions). **Link:** blue text, underline on hover. - **Destructive:** Signal Red fill; **destructive-outline:** red text and 40% red border on ground. - **Focus:** border turns blue plus a 3px blue ring at 50%. **Disabled:** 50% opacity, no pointer. - A selected preset in a segmented choice (This month / Last month / Custom) is the primary variant; the others are outline. ### Chips (status pills) - **Style:** fully round, 12px medium text, 2px 8px padding. Semantic pills use their tone at 10% fill, 30% border, full-strength text; neutral uses slate tint with muted text. - **State:** status uses positive / warning / negative; kinds use teal, violet or blue-tint "contrast". Every pill keeps its text label, so colour is never the only signal. ### Cards / Containers - **Corner Style:** 8px. - **Background:** white surface on the slate ground. - **Shadow Strategy:** Card shadow (see Elevation). - **Border:** 1px hairline. - **Internal Padding:** 24px, with 24px between header, content and footer. ### Inputs / Fields - **Style:** white field, 1px control-stroke border, 6px radius, 36px tall, 12px side padding, control shadow; placeholder in muted slate. Select triggers match exactly, with a 16px chevron at 50%. - **Focus:** blue border plus 3px blue ring at 50%. - **Error / Disabled:** `aria-invalid` turns the border Signal Red with a 20% red ring; disabled at 50% opacity. - Menus (select content, dropdowns, the company picker) open as white floating panels with hairline border, 6px radius and Float shadow; dates use the styled date picker, never native date inputs. ### Data Tables - Live inside a card or an 8px framed container. Header row in slate tint, 40px tall, 12px semibold uppercase muted labels with sort chevrons; cells 14px with 8px padding; rows separated by hairlines, hovering at 50% slate tint. The pager below reads "1-7 of 7" left and outline Previous / Next right. ### Navigation - **Sidebar:** white, right hairline. Items are 44px tall, 8px radius, 20px outline icon plus 14px medium label. Idle: muted slate, hover slate tint with ink. Active: blue tint with deep blue ink, `aria-current="page"`. Groups expand with a rotating chevron and indent children behind a left hairline. The collapsed rail shows icons only, with groups opening as a side popover. Admin pages (Users, Roles, Emails, Login security, Audit log, Companies) sit below a hairline divider and a 12px semibold muted "Administration" label; the rail keeps the divider only, and a section with nothing to open is not drawn. - **Header:** white, bottom hairline, 56px; the link back to the parent page left (sub-pages only); company picker (a styled select), locale switcher, theme toggle and user menu (blue avatar initial) right. ### Data States - Empty: centred muted icon, 14px muted message and a corrective action. Error: a 40% red-bordered panel on 5% red with an alert icon and an outline Retry. Loading: skeleton rows in a bordered surface. ## Do's and Don'ts ### Do: - **Do** reach for colour only through theme tokens; if a role is missing, add a token in `app/globals.css` (both themes) and a contrast pair in `app/globals.test.ts`. - **Do** keep Action Blue for primary actions, links, focus and the active nav item. - **Do** put every figure, date, ID and percentage on tabular numerals. - **Do** use 36px controls at 6px radius and 8px cards with the card shadow and a hairline. - **Do** border inputs and select triggers with the control stroke, not the hairline, so they reach 3:1. - **Do** give every status pill a text label. ### Don't: - **Don't** use Tailwind palette classes or raw white/black backgrounds outside the test's allowlist. - **Don't** bring back the babyboo look: brown or gold primaries, DM Sans, 16px soft corners, gradient wordmarks, the giraffe-spot pattern. - **Don't** add a second typeface or a display face; Inter carries everything. - **Don't** use semantic or chart tones to mark something clickable. - **Don't** add shadows beyond the four steps, or let a shadow stand in for a hairline. - **Don't** brand the visitor pages per company (logo or colour) without an owner decision; they stay on the neutral Co-Lite tokens.