Ticket Stub SpecTailwind CSS v4

Design System & Tokens

The Ticket Stub visual language every component speaks. Tokens live in bigbullui.css. Override them and the entire library adapts instantly.

Warm paper, ink lines

Light theme is a cream stub (#F6F0E0 on #17130C). Dark theme is a night stub (#16120B on #F3EAD3), a tactile material shift, not a cold mechanical inversion.

Stamp red means action

One accent (#BC3A28, brighter in dark) marks primary actions, focus rings, and status badges. Everything else stays calm and neutral.

Mono speaks, sans explains

JetBrains Mono for micro labels, readouts, tickets, and serial numbers. Inter Tight for headings with tight tracking and UI body copy.

Borders do the talking

Dashed ticket edges, double frames on cards, squarish corners. Depth comes from crisp ink strokes and paper borders, not heavy drop blurs.

Interactive Theme Studio

Tune Paper & Night tokens with live WCAG AA contrast verification, then copy or download CSS overrides.

Accent Stamp Presets

Paper & Surface Palette

Accent on card
5.89:1AA PASS
Button label
6.00:1AA PASS
ADMIT ONE

Row C · Seat 12

№ 00481

Previewing Paper theme with custom accent, border contrast, and 0.5rem radius.

Confirm TicketSecondary
Generated CSS Variables
cssbigbullui-theme.css21 lines
/* Paste after @import "bigbullui/css"; in globals.css */:root {  --background: #f6f0e0;  --card: #fffdf5;  --border: #8c7a5b;  --accent: #b53524;  --accent-strong: #b53524;  --accent-foreground: #ffffff;  --ring: #b53524;  --radius: 0.5rem;} .dark {  --background: #16120b;  --card: #1e1810;  --border: #7a6a50;  --accent: #c34a31;  --accent-strong: #c34a31;  --accent-foreground: #ffffff;  --ring: #c34a31;}

Core Design Tokens

All components reference these semantic variables via Tailwind utilities (e.g. bg-background, border-border, text-accent).

CSS VariableLight (Paper)Dark (Night)Role
--background
#f6f0e0
#16120b
Page and canvas background
--foreground
#17130c
#f3ead3
Primary text and sharp ink strokes
--card
#fffdf5
#1e1810
Surface containers and elevated stubs
--border
#d8c9ac
#3a3122
Dashed outlines and card dividers
--primary
#17130c
#f3ead3
Filled buttons and solid contrast
--accent
#bc3a28
#c34a31
Stamp red action, badges, and focus rings
--accent-strong
#bc3a28
#e8705a
Readable accent text for links and emphasis
--muted
#ece3cc
#241e13
Secondary badges and inactive track bg
--radius
0.5rem
0.5rem
Tactile squarish ticket corner radius

Tailwind CSS v4 Customization

In Tailwind CSS v4, theme values are defined directly in CSS using standard CSS variables and @theme inline. No tailwind.config.js required.

css21 lines
/* In your globals.css after importing bigbullui */@import "tailwindcss";@import "bigbullui/css"; /* 1. Override tokens globally */:root {  --radius: 0.25rem; /* sharper retro corners */  --accent: #c2410c; /* warm amber stamp */} /* 2. Custom night stub colors */.dark {  --background: #0f172a; /* deep navy paper */  --accent: #f97316;     /* vibrant orange stamp */  --border: #1e293b;} /* 3. Extend Tailwind v4 utility theme inline */@theme inline {  --font-ticket: "JetBrains Mono", monospace;}

Motion & Accessibility (A11y)

Tactile transitions with snappy spring easing. Every component includes motion-reduce fallbacks for users with vestibular sensitivities. Full keyboard focus rings (focus-visible:ring-2 ring-ring) are guaranteed across all interactive elements.