Design System

Tokens, components, and build rules for dark, data-heavy dashboards. A page links tokens.css and components.css; three variables set its accent hue, secondary hue, and contrast.

Tickets · Season 2026 Live 2m ago
Revenue
$284K8.2%
Tickets
8,14212%
Fill
94%0.0%
Supporters88%
Premium34%
Theme controls
Accent hue195
Secondary hue320
Contrast1.00
v5 2026-10-10 Current release
  • Tables that keep their content width
  • A label column at least 24ch wide
  • Basis notes attached to figures
  • Notes that run at the table's width
  • Opt-in sticky table headers
  • Prose tables
  • A tint on the sorted column
  • Heat cells
  • Two-up split layout
  • Two-column prose
  • Wide dashboard column
  • Balanced heading line breaks
  • chart-gutter.js: the first axis digit no longer clips
  • Fonts preload and name no fallback
  • Fix: wrapped table headers no longer cover row one
  • v42026-08-31Switch, boxed inputs, CSS tooltips, native modal, accordion, callouts, sortable headers, count-up KPIs, staggered reveals, the glow-grid border glow, and the theme wipe. Print styles: print.css and flyer.html.
  • v32026-07-21Left nav rail with scroll-spy, the agents.md build contract, the starter.html skeleton, self-hosted fonts, and a command palette that indexes every token.
  • v2.12026-06-16Type and spacing scales increased. --text-xs became the 13px minimum, and --text-label the minimum for uppercase mono labels.
  • v22026-06-05Generator tier added (accent, secondary, and base hue plus contrast). Cyan 195 and neon pink 320 became the palette.
  • v12026-03First token set: OKLCH palette, five surface steps, sharp corners, the three-face type system.

Start here

tokens.css and components.css hold the fonts, palette, type scale, spacing, and every component on this page. Link both in the head, in this order, then use the tokens.

<link rel="stylesheet" href="https://design.seantippen.com/tokens.css">
<link rel="stylesheet" href="https://design.seantippen.com/components.css">

All three faces load from tokens.css. There is no Google Fonts link to add.

Three rules

Use tokens for every value
Use var(--token) in CSS and tok('--token') in Chart.js. Never paste a hex, rgba, or oklch value. The one exception is Chart.js dataset colors, which the Canvas API cannot resolve from CSS.
OKLCH color, square corners
Custom colors are OKLCH so equal steps look equally different. Corners are 0 by default; only pills, toggles, and circular controls are rounded. No gradient page or section backgrounds, and no gradient text.
One accent color
Use one accent per layout. Cyan is the accent. Neon pink is for states and the second data series, used sparingly. No blue-purple. Amber is for warning states only.

Lock dark mode on brand-critical pages

Stops a reader's dark-mode browser from re-mapping the palette and making the design look wrong. Add a theme-color meta matching --color-bg for the address bar.

<meta name="color-scheme" content="dark">
<meta name="darkreader-lock">
<meta name="theme-color" content="#0a0c12">

Color

All custom colors are OKLCH, and each swatch is captioned with its use. Hex is used only for Chart.js data series (Canvas API). Click anything with a token name to copy its computed value; shift-click copies it as hex. The theme controls above recolor every swatch.

Brand accents

--color-accent
Solid fill, active state, the one accent color
--color-accent-hover
Hover on accent surfaces
--color-accent-solid-hover
Hover on a solid accent fill
--color-accent-border
Interactive border, focus ring
--color-secondary
Neon pink. Second series or state only
--accent-muted
Selected background tint
--accent-subtle
Faint accent wash

Surfaces

Five steps, from the app background to a floating overlay. Each step up is lighter than the one below.

App bg
--color-bg
Surface
--color-surface
Hover
--color-surface-hover
Raised
--color-surface-raised
Overlay
--color-surface-overlay

Text hierarchy

Four steps. None is pure white. Labels, captions, and interface chrome use the lower two steps, so data has the highest contrast.

--color-text
High-contrast body and headings
--color-text-secondary
Supporting copy
--color-text-muted
Labels, captions, chrome
--color-text-disabled
Disabled, ghost

Borders

White at low alpha in dark mode, black at low alpha in light mode. They have no hue, so changing the accent does not change them.

--color-border
Default hairline, table rows
--color-border-emphasis
Controls, table head rule
--color-border-strong
Hover on a bordered control

Status

Completed Pending Overdue In review Synced Delayed Failed Queued
--color-success
Positive delta, healthy state
--color-warning
Warning state only, never decoration
--color-danger
Failure, negative delta
--color-info
Neutral notice
--color-success-subtle
Badge background
--color-warning-subtle
Badge background
--color-danger-subtle
Badge and error-state background
--color-info-subtle
Badge background

Green is success, amber is warning, red is danger, and blue is info. The theme controls do not change these hues.

Data series (Chart.js palette)

Eight hex colors at the same perceived brightness so no series stands out more than another. They are hex because the Canvas API cannot read CSS custom properties at paint time. Click a band to copy its hex.

green
blue
red
amber
purple
cyan
yellow
orange

Contrast ratios

Calculated from the current tokens. Moving the theme controls or switching light and dark mode recalculates them.

PairRatioGrade
Body text on canvas.
Secondary on canvas.
Muted on canvas.
Disabled on canvas.
Accent on canvas.
Body text on surface.

Typography

Three typefaces: Big Shoulders Display for the hero heading only, Inter for everything else, and JetBrains Mono for numbers and code. All three are self-hosted from this domain as variable-weight latin subsets. Sizes scale with the viewport through clamp().

The three faces

Big Shoulders Display · --font-display · hero only
Design System
Inter · --font-sans · body and UI
The quick brown fox jumps over the lazy dog
JetBrains Mono · --font-mono · numbers and code
$2,847,392.00

Type scale

Every step is a token. --text-xs (13px) is the smallest size; no text on any page renders smaller. Click a row to copy the token.

Display 4XL
Page title 3XL
Section title 2XL
Subsection XL
Lead paragraph LG
Body base, capped at the 65ch measure. Long text uses a 1.65 line height, and the measure token keeps lines short enough to read.
Small SM, supporting copy and dense tables.
Label, the minimum for uppercase mono
XS, captions and metadata. The smallest size.

Weight scale

Light, large lede only300
Regular body400
Medium, active state500
Semibold, card titles600
Bold, subheads700
Extra bold, display800

Leading and tracking

TokenValueUse
--leading-tight1.2KPI values, display headings
--leading-snug1.35Card copy, dense descriptions
--leading-normal1.5UI default
--leading-relaxed1.65Long-form body
--measure65chMax reading width
--tracking-display-0.03emBig Shoulders hero
--tracking-tight-0.01emHeadings
--tracking-label0.12emEvery uppercase mono label

Spacing & motion

Fluid spacing uses clamp() to scale between a minimum and a maximum viewport width. Motion uses the duration and easing tokens: ease-out by default, spring for a press or a drop, and every animation wrapped in a prefers-reduced-motion check. Click any row to copy its token.

Fluid spacing scale

--space-xs
clamp(0.375rem, 0.3rem + 0.2vw, 0.625rem)
--space-sm
clamp(0.625rem, 0.5rem + 0.45vw, 1rem)
--space-md
clamp(1.125rem, 0.95rem + 0.6vw, 1.75rem)
--space-lg
clamp(1.75rem, 1.4rem + 1.1vw, 3rem)
--space-xl
clamp(2.5rem, 1.9rem + 2.2vw, 5rem)
--space-section
clamp(4rem, 2.75rem + 5vw, 7rem)

Fixed spacing, 4px base

Use these when a value must not move with the viewport: icon gaps, control padding, grid gutters inside a component.

--space-1
0.25rem
--space-2
0.5rem
--space-4
1rem
--space-8
2rem
--space-16
4rem

Motion tokens

TokenValueUse
--duration-instant80msPress feedback, tooltip show
--duration-fast150msHover, focus, small state changes
--duration-normal250msDrawers, view transitions
--duration-slow400msToasts, page-load reveal
--ease-outdecelerateDefault for functional motion
--ease-in-outsymmetricLooping or reversible motion
--ease-springovershootToast and command palette only

Shadow and focus

TokenUse
--shadow-smResting control
--shadow-mdRaised card, hover lift
--shadow-lgDrawer, modal
--shadow-floatFloating panel with a hairline ring
--shadow-float-lgCommand palette, large overlay
--focus-ringAlways on :focus-visible, never :focus
--radius0. Default for every corner
--radius-fullPills, badges, toggle thumbs, dots

Components

Every demo below uses the classes in components.css. The Code tab on each demo shows its markup.

Buttons

Each button state, shown without hovering. The .is-hover, .is-active, and .is-focus classes copy the matching pseudo-class styles. Use them on specimen pages only.

VariantDefaultHoverActiveFocusDisabled
Default
Primary

Input & chips

Active ×All regionsLast 30 days

Form fields & switches

Use boxed inputs in forms and the underline input in toolbars. aria-invalid="true" turns the border red. The switch thumb moves with spring easing.

Used for the weekly export only.
Enter a number.

Tabs & segmented

Add .animated to .tabs to animate the active underline. Without it, the underline switches instantly.

Badges & toasts

CompletedPendingOverdueIn review

Tooltips

CSS only. Put data-tip="text" on any element; the tooltip shows on hover and keyboard focus. data-tip-pos="bottom" puts it below the element. Keep tooltip text to a short label.

In review

Callouts

Provisional countsScan counts are provisional until the queue drains, usually 24 hours after the match.
Stale dataThe upstream feed last updated 3 hours ago.
Export failedThe API returned a 502. Retry usually clears it.

Inline: kbd & animated links

In a how-to, name a literal key with Shift; never use it to advertise a shortcut. Read the build contract for the full registry. The link underline animates in from the left and still works when the link wraps to a second line.

Empty & error states

No matches yet
Once tickets sell for this event, activity appears here.
Could not load data
The upstream API returned a 502. This usually clears within a minute.

Skeleton loading

Accordion

Native <details>, so it works without JavaScript. The body height animates in browsers that support it and opens instantly in the rest.

Why is LOCAL-PENDING counted as paid?
The flag records that the tender was entered locally (check, invoice, internal move, payment plan). It says nothing about whether money arrived. If the order is paid, it is paid.
Why do scan counts change for a day after the match?
Scanners queue offline and upload when they get signal, so the createdAt timestamp is upload time, not scan time. Counts settle once the queue drains.
Can I use a second accent color?
No. One accent per layout. Neon pink is a state and second-series color; it is never a theme.

Modal

Native <dialog> opened with showModal(). The browser provides the top layer, backdrop, Escape to close, and focus trap. The open animation is CSS only, using @starting-style.

Drawer

A panel that slides in from the right with detail for one item. Click the scrim or press Escape to close it.

Data display

KPIs, charts, and tables. No card wrappers; data sits directly on the surface. Numbers are monospace with tabular figures so digits line up in columns. Every table sits in a .table-scroll wrapper and every chart in a .scroll-x wrapper.

KPI markers

Total revenue
$2.4M
Tickets sold
18,472
Avg order
$128
Sell-through
94.2%

Bar chart

Chart.js 4.4.7. Series colors come from tok() on the hex tokens. Global defaults are set from tokens: square corners, mono tick labels, and a 12px minimum font size.

Data table

Headers carrying aria-sort are sortable; click one. CSS draws the arrows and the active underline from the attribute. Page JS sorts the rows and adds td.sorted to the sorted column's cells. The badge shows a state the row does not otherwise show.

RegionRevenueGrowthTarget
Northeast$842,500+12.3%Met
Southeast$621,300+8.1%At risk
Midwest$534,700+2.4%Met
West Coast$412,800-3.7%Missed
Total$2,411,300+5.1%

Table rules

The full list is in kit.md, in the tables appendix.

One value per cell
Never 4,312 / 3,423 or 1,021 (764). Each metric gets its own column. Too wide means cut a metric or a row, never merge.
The value column adds up
Parents and the total only. A breakdown gets its own table with its own total, and that total matches the parent row. An indent is not hierarchy.
Values beside their labels
A small table never stretches across a wide band. .fit keeps the table at its content width; a .split partner fills the rest of the row.
Every number names its basis
Gross or net, never a bare "Revenue". A multiple names what it multiplies: "1.3x the 2025 rate", never "1.3x".
Records go in a table
Data with one row per record is a table, not a set of cards. Mappings and per-item counts go in a complete table, never half a table and half a sentence.
Every color has a key
A tinted cell or a colored series has a note or a legend that says what the color means. Heat tints one column, never a row stripe.

Fitted table with notes

.fit keeps the table at its content width, td.cell-label keeps the label column at least 24ch wide, a .detail-note sits under its figure, and .table-notes run at the table's width. The .split.hug partner takes the rest of the row, or moves underneath when the row is too narrow for both.

PlanSubscribersGross revenue
Annual plans772$184,620$239.15 per subscriber
Monthly plans1,447$31,834
Free trials385$0
Total2,604$216,454
  • Gross revenue is what subscribers paid, before processing fees.
  • Free trials carry no revenue and stay in the subscriber count.
Why the table keeps its widthAt full width this three-column table would put each value a screen away from its label. It keeps its content width, and the explanation takes the rest of the row, or sits underneath when the row is too narrow for both.

Breakdown in its own table

The main table stays addable. The breakdown of one parent row gets its own table, and its total matches that row: 1,447 in both places.

Subscribers by planCount
Annual plans772
Monthly plans1,447
Free trials385
Total2,604
Monthly plans by signup sourceCount
Website900
Mobile app480
Partner referral67
Total1,447

Heat on one column

td.heat-1 to td.heat-4 tint the cells of one column, using the --heat-* tokens. A note says what the tint means.

RegionVisitsConversion rate
Northeast12,4806.8%
Southeast9,9125.1%
Midwest8,3053.4%
West Coast7,1401.9%
  • Shading follows conversion rate: the darker the cell, the higher the rate.

Info rows

Sold3,142
Revenue$42,580
Fill88%

Dashboards

A full dashboard built from the components above with no extra component CSS, then the small status components on their own.

Composed dashboard

Tickets · Season 2026
Revenue
$284,6108.2%
vs last week
Tickets
8,14212%
sold this month
STH base
2,3574%
season holders
Fill
94.2%0.0%
last match
RepSoldRevenue
Avery1,284$58,210
Mateo1,102$49,870
Priya986$44,120
Total3,372$152,200

Primitive set

Delta chips, progress bars, pills, the toolbar, and stale timestamps. All are in components.css.

12.3%3.7%0.0% LiveSyncedDelayedFailed 2m ago14m ago2h ago
Supporters88%
Premium34%
Syncing…
Active ×All regions
Updated 2m ago

Motion & depth

Use motion only to show a change of state. This page uses one rise on page load, native scroll-driven reveals, View Transitions when the theme or accent changes, and numbers that count up once when they scroll into view. Actions triggered from the keyboard are not animated. All motion turns off under prefers-reduced-motion.

Hover lift

On hover, the card moves up slightly and its shadow gets deeper. Never scale on hover. Both hover styles are classes: .hover-lift and .hover-border.

Lift on hover
translateY plus a deeper shadow.
Accent border on hover
The border turns the accent color.
No scaling
Scaling resamples the text and blurs it.

Glow grid

The only effect that follows the pointer. A radial highlight on the 1px border is faint on every card while the cursor is in the grid and strong on the card under it. It changes borders only; fills stay flat. Turn it on per grid with .glow-grid, .glow-card, and the pointermove helper in kit.md.

Season revenue
The border brightens near the cursor.
Sell-through
Every card's border glows faintly.
Scan rate
The hovered card's border glows fully.

Count-up numbers

KPI values count up to their target once, when they scroll into view, over 900ms with ease-out. Tabular figures keep the width fixed so the number does not shift while it counts. With reduced motion on, the final value shows immediately. The helper is in kit.md.

Revenue
0
Tickets
0
Sell-through
0

Frosted glass & shadow elevation

Use glass only on overlays: modals, dropdowns, the command palette, and the nav rail. Never on flat cards. Use shadows only to show elevation.

Frosted overlay
backdrop-filter blur over a busy backdrop. For floating surfaces only.
Shadow SM
Shadow MD
Shadow LG

Build contract

The eight files a page can use: three stylesheets, two scripts, one build contract written for agents, and two templates to copy.

tokens.css
Palette, generator tier, type scale, spacing, motion, radius, and the three self-hosted faces. Link it first.
View file
components.css
Every component class on this page: nav rail, sections, cards, tables, KPIs, states. Link it after tokens.css.
View file
agents.md
The build contract: head boilerplate, hard rules, token digest, page shell, the full class registry, and Chart.js setup. An agent can build a correct page from it without reading the CSS.
Read contract
starter.html
A dashboard template with a rail nav, stat band, card grid, scroll-wrapped table, and one working chart. Copy it and edit content only.
Open starter
chart-gutter.js
Link it after Chart.js on any page with a chart. It re-measures the axis gutter after the webfonts load, so the first digit of a tick label does not clip.
View file
theme.js
The light/dark toggle. Put data-theme-toggle on a .theme-btn and the new theme is revealed in a circle that grows from the button. It saves the choice and updates the color-scheme and theme-color meta tags to match.
View file
print.css
Print styles: US Letter sheet, masthead, cyan data spine, stat band, body columns, detail cells, CTA and QR code, and footer. Dark text on white, with one accent band per page.
View file
flyer.html
A one-page flyer template on print.css. The masthead resizes to fit the measure, the print button waits until the fonts load, and Chrome saves it as a PDF. Copy it and edit content only.
Open flyer

Compatibility

About forty projects link these two stylesheets from this domain. No public custom property or component class is removed or renamed; changes only add. The compatibility aliases (--bg, --surface, --text, --accent, and the rest) are permanent.

Greenville Triumph work uses a separate design system: design.greenvilletriumph.club

Anti-patterns

Don't
Gradient backgrounds that scroll with the content and change the contrast behind it.
Do
Flat var(--color-bg), or one position:fixed background in palette colors that does not move.
Don't
A blue-purple gradient hero (hue 270 to 285). It is the most common sign of an AI-generated page.
Do
One cyan accent, used sparingly; neon pink oklch(0.70 0.25 320) as a state color.
Don't
A layout made entirely of identical rounded cards.
Do
Sharp corners by default; rounded only for pills, toggles, and circular controls.
Don't
transform: scale() on hover; it blurs text and overlaps nearby elements.
Do
translateY(-2px) lift plus a deeper shadow.
Don't
Gradient text on headings; it loses contrast on some backgrounds.
Do
Plain var(--color-text) or var(--color-accent) with a weight bump.
Don't
Shrink a label to 0.65rem to make a dense block fit.
Do
Keep --text-label; cut content or widen the column.
Don't
Let a wide table push the whole page into horizontal scroll.
Do
Wrap it in .table-scroll so it scrolls inside its own box.
Don't
Stretch a three-column table across a wide band, labels on the left edge and values on the right.
Do
.fit keeps it at content width; give the row a .split partner.
Don't
Show a breakdown as indented rows carrying numbers in the same column as their parent.
Do
Keep the column addable; put the breakdown in its own table, with a total that matches the parent row.
Don't
A card per record for a list that is really a ledger.
Do
One sortable .data-table with a total row.
Don't
Put page sections behind tabs.
Do
Banded sections the reader scrolls; older content goes in a lower band.
Don't
A narrow label column that stacks "Tickets / distributed" one word per line.
Do
td.cell-label, or widen the column until the label fits on one line.
Don't
A heading that asks a question or reaches for a metaphor: "Where did the money go?"
Do
Name the contents: "Spending by category".
Don't
Badges, legends, or hints advertising keyboard shortcuts.
Do
Keep the shortcut working without labeling it. The button shows an icon, not a key.
Don't
Every available effect on one page.
Do
One page-load rise and one standard hover.

Ship checklist

Check every line before a dashboard goes live.

  • Both sheets linked, tokens.css before components.css
  • No Google Fonts link; the three faces load from tokens.css
  • No hex, rgba, or oklch literals in CSS (Chart.js data series excepted)
  • Colors via var(--token), charts via tok('--token')
  • No raw rem or px font-size; nothing below --text-xs
  • Every uppercase mono label at --text-label with --tracking-label
  • Sharp corners; rounded only for pills, toggles, circles
  • One accent per layout; pink for states only; no blue-purple
  • Text never pure white; body and accent clear AAA on the canvas
  • Amber for warning states only
  • No gradient text; no gradient page or section backgrounds
  • Glass only on nav, rail, drawers, and overlays, never flat cards
  • Every table in .table-scroll, every chart in .scroll-x
  • No horizontal page scroll at 390px; every section reachable
  • tabular-nums on every numeric column and KPI
  • Hover lifts with translateY, never scale()
  • Focus rings on :focus-visible; tap targets 44px or larger
  • prefers-reduced-motion respected
  • Dark mode locked on brand-critical pages
  • No em-dashes; plain, literal copy
  • Font preloads in the head; no fallback faces
  • chart-gutter.js after Chart.js; no truncated axis labels
  • One value per table cell; the value column adds up
  • Breakdowns in their own table, with a total that matches the parent row
  • Values beside their labels at the widest viewport
  • Every comparison names its reference; every money figure its basis
  • Every color in a chart or table has a key
  • No sections behind tabs; no card grid for ledger data
  • Headings name their contents; no question headings
  • Empty, loading, and error states on every data region
  • No visible keyboard-shortcut hints
  • Rendered and looked at, at 390px and 1440px

Token reference

The four generator variables at the top set the values of the derived color tokens. The full set is in tokens.css, and every token is searchable from the search button.

/* Generator tier: the derived tokens below are computed from these */
--accent-h: 195      --secondary-h: 320
--base-h: 252        --contrast: 1

/* Accent and surface (derived) */
--color-accent   --color-accent-hover   --color-accent-border
--color-accent-solid-hover   --color-secondary
--accent-muted   --accent-subtle
--color-bg   --color-surface   --color-surface-hover
--color-surface-raised   --color-surface-overlay

/* Text hierarchy */
--color-text   --color-text-secondary
--color-text-muted   --color-text-disabled
--text-alpha-90 to --text-alpha-15

/* Borders */
--color-border   --color-border-emphasis   --color-border-strong

/* Status */
--color-success   --color-warning   --color-danger   --color-info
(and each -subtle)

/* Chart data series (hex, for Chart.js) */
--green --blue --red --amber --purple --cyan --yellow --orange

/* Table heat (accent at rising alpha) */
--heat-1   --heat-2   --heat-3   --heat-4

/* Type */
--font-sans   --font-mono   --font-display
--text-xs to --text-4xl      /* fluid clamp scale, --text-xs is the floor */
--text-label                 /* the one uppercase mono label size */
--leading-*   --tracking-*   --measure

/* Spacing / motion / radius / layout */
--space-xs to --space-xl      --space-section   --space-1 to --space-16
--duration-*   --ease-out   --ease-spring
--radius: 0      --radius-full: 9999px
--max-width: 1100px   --sidebar-w: 260px

/* Compatibility aliases, permanent */
--bg --surface --surface2 --surface3 --surface-hover
--text --text-dim --text-muted --text-secondary --text-disabled
--accent --accent2 --secondary --border --border-emphasis
Tokens
.
tokens.css
.
components.css
.
Components
.
Surface steps
5

These counts and sizes are read from tokens.css and components.css when the page loads. The same fetch builds the search index.