Technical · Music & gaming
Arcade Night design system template
Neon pixel-adjacent game launcher: Silkscreen headings, Chakra Petch UI, a dark purple cabinet canvas with magenta and cyan glow edges. Built for game stores, launchers, esports and leaderboard pages.
- WCAG AA verified
- Light + dark
- Tokens = preview
- Silkscreen
Season 7 · Now live
Insert coin. Climb the board.
Over 400 arcade-style games, weekly tournaments and a global leaderboard that resets every Friday at midnight.
Personality. Arcade Night is a cabinet in a dark room. The canvas is near-black purple, panels are stepped in two lighter purples, and the two neon colors, magenta for action and cyan for information, light only the edges: borders, focus rings and underlines. Silkscreen is the pixel voice for headings and scores; Chakra Petch carries every readable sentence so the retro feel never costs legibility. Corners are chamfered or square, never round, and the 2px glow edge on the active tile is the single recurring motif. Light mode is the daytime arcade, lavender floor, ink purple type and the same two hues darkened for contrast.
Neon edge, not neon fill: 1px colored borders with a 12px same-hue glow on active and focused elements
Silkscreen pixel headings at 40px and 56px; body in Chakra Petch so paragraphs stay readable
Chamfered corners via 0 radius and a 6px clipped corner on cards and primary buttons
Scores and timers in Silkscreen with zero-padded digits (007,420) and a subtle CRT scanline overlay at 4%
Magenta means act (Play, Buy), cyan means info (rank, level, ping); never swap them
Color. 21 roles, both modes.
background
#0a0618
foreground
#f0eaff
card
#140d2c
cardForeground
#f0eaff
muted
#1e1540
mutedForeground
#a99ccf
primary
#ff3fd0
primaryForeground
#14041f
secondary
#1a2a4a
secondaryForeground
#bdf6ff
accent
#0e3a4a
accentForeground
#7af3ff
border
rgba(122,243,255,0.2)
input
rgba(122,243,255,0.4)
ring
#2de6ff
destructive
#ff5a6e
destructiveForeground
#20040a
success
#43f08a
successForeground
#03200f
warning
#ffd23a
warningForeground
#2a1d00
Type. Silkscreen · Chakra Petch · Share Tech Mono
The file. Drop it in your repo.
1---2name: "Arcade Night"3slug: "arcade-night"4schema: "freedesignmd/v2"5description: "Neon pixel-adjacent game launcher: Silkscreen headings, Chakra Petch UI, a dark purple cabinet canvas with magenta and cyan glow edges. Built for game stores, launchers, esports and leaderboard pages."6source: "https://freedesignmd.com/system/arcade-night"7aesthetic: "technical"8industry: "entertainment"9default_mode: "dark"10fonts:11 display: "Silkscreen"12 body: "Chakra Petch"13 mono: "Share Tech Mono"14 google_fonts_url: "https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Chakra+Petch:wght@400;500;600&family=Share+Tech+Mono&display=swap"15colors:16 light:17 background: "#f1edff"18 foreground: "#1b1033"19 card: "#ffffff"20 cardForeground: "#1b1033"21 muted: "#e4dcfb"22 mutedForeground: "#58497e"23 primary: "#c0118e"24 primaryForeground: "#ffffff"25 secondary: "#d9f4f8"26 secondaryForeground: "#0b3f4a"27 accent: "#d0f3f7"28 accentForeground: "#0a4452"29 border: "rgba(27,16,51,0.18)"30 input: "rgba(27,16,51,0.4)"31 ring: "#006f84"32 destructive: "#c42a33"33 destructiveForeground: "#ffffff"34 success: "#0c7a3e"35 successForeground: "#ffffff"36 warning: "#ffc21a"37 warningForeground: "#2a1d00"38 dark:39 background: "#0a0618"40 foreground: "#f0eaff"41 card: "#140d2c"42 cardForeground: "#f0eaff"43 muted: "#1e1540"44 mutedForeground: "#a99ccf"45 primary: "#ff3fd0"46 primaryForeground: "#14041f"47 secondary: "#1a2a4a"48 secondaryForeground: "#bdf6ff"49 accent: "#0e3a4a"50 accentForeground: "#7af3ff"51 border: "rgba(122,243,255,0.2)"52 input: "rgba(122,243,255,0.4)"53 ring: "#2de6ff"54 destructive: "#ff5a6e"55 destructiveForeground: "#20040a"56 success: "#43f08a"57 successForeground: "#03200f"58 warning: "#ffd23a"59 warningForeground: "#2a1d00"60chart:61 light: ["#c0118e", "#00a3bd", "#6a3de0", "#f2a50c", "#1ea45a"]62 dark: ["#ff3fd0", "#2de6ff", "#a07bff", "#ffd23a", "#43f08a"]63type:64 display: { font: display, size: 56, size_mobile: 31, leading: 1.1, weight: 700, tracking: "0.01em", uppercase: true }65 h1: { font: display, size: 40, size_mobile: 27, leading: 1.15, weight: 700, tracking: "0.01em", uppercase: true }66 h2: { font: display, size: 24, size_mobile: 19, leading: 1.25, weight: 400, tracking: "0.02em", uppercase: true }67 h3: { font: body, size: 20, size_mobile: 20, leading: 1.3, weight: 600, tracking: "0.02em" }68 body: { font: body, size: 16, size_mobile: 16, leading: 1.55, weight: 400, tracking: "0.01em" }69 small: { font: body, size: 14, size_mobile: 14, leading: 1.5, weight: 400, tracking: "0.01em" }70 label: { font: body, size: 12, size_mobile: 12, leading: 1.3, weight: 600, tracking: "0.12em", uppercase: true }71 mono: { font: mono, size: 14, size_mobile: 14, leading: 1.5, weight: 400, tracking: "0.02em" }72spacing: [4, 8, 12, 16, 24, 32, 48, 64, 96, 128]73radius: { sm: "0", md: "2px", lg: "4px", xl: "8px", full: "9999px" }74shadow:75 light:76 sm: "0 0 0 1px rgba(192,17,142,0.18)"77 md: "0 6px 20px -6px rgba(192,17,142,0.35)"78 lg: "0 24px 56px -16px rgba(106,61,224,0.45), 0 0 0 1px rgba(192,17,142,0.2)"79 dark:80 sm: "0 0 0 1px rgba(122,243,255,0.18)"81 md: "0 0 16px -2px rgba(255,63,208,0.45), 0 0 0 1px rgba(255,63,208,0.5)"82 lg: "0 0 40px -4px rgba(45,230,255,0.4), 0 0 0 1px rgba(45,230,255,0.5), 0 32px 64px -16px rgba(0,0,0,0.8)"83motion:84 duration_ms: { instant: 60, fast: 120, base: 200, slow: 400 }85 easing: { standard: "cubic-bezier(0.4, 0, 0.2, 1)", out: "steps(6, end)", in: "cubic-bezier(0.6, 0, 1, 1)" }86 reveal: { distance_px: 8, stagger_ms: 50 }87layout: { max_width: 1240, columns: 12, gutter: 20, section_y: 88, section_y_mobile: 52, measure: "60ch" }88extras:89 scanlines: { light: "repeating-linear-gradient(0deg, rgba(27,16,51,0.04) 0 1px, transparent 1px 3px)", dark: "repeating-linear-gradient(0deg, rgba(240,234,255,0.04) 0 1px, transparent 1px 3px)" }90---91 92# Arcade Night, DESIGN.md93 94> Neon pixel-adjacent game launcher: Silkscreen headings, Chakra Petch UI, a dark purple cabinet canvas with magenta and cyan glow edges. Built for game stores, launchers, esports and leaderboard pages.95 96## How to use this file97 981. Save this file as `DESIGN.md` in the project root and paste the `tokens.css` block (section 10) into your global stylesheet, or import `https://freedesignmd.com/system/arcade-night.css`, which also contains every component class.992. **Claude Code:** add `Before any UI work, read @DESIGN.md and use only its tokens and component recipes.` to `CLAUDE.md`.1003. **Cursor:** create `.cursor/rules/design.mdc` with `alwaysApply: true` and the line `Follow @DESIGN.md for every color, font, radius, shadow, spacing and duration.`1014. **Lovable:** paste section 10 into `src/index.css` and add this file to Project Knowledge; ask for changes by role name (`primary`, `muted-foreground`), never by hex.1025. Default mode is **dark**: put `class="dark"` on `<html>`; light mode is the same file without the class. Use semantic names only (`bg-primary`, `text-muted-foreground`, `.btn-primary`, `var(--radius-lg)`); if a value is not in this file, it does not belong in the UI.103 104## 1. Overview & personality105 106Arcade Night is a cabinet in a dark room. The canvas is near-black purple, panels are stepped in two lighter purples, and the two neon colors, magenta for action and cyan for information, light only the edges: borders, focus rings and underlines. Silkscreen is the pixel voice for headings and scores; Chakra Petch carries every readable sentence so the retro feel never costs legibility. Corners are chamfered or square, never round, and the 2px glow edge on the active tile is the single recurring motif. Light mode is the daytime arcade, lavender floor, ink purple type and the same two hues darkened for contrast.107 108**At a glance**109 110- Aesthetic: Technical · Industry: Music & gaming · Default mode: dark111- Type: Silkscreen (display) · Chakra Petch (body) · Share Tech Mono (mono)112- Brand color (`primary`): `#c0118e` light · `#ff3fd0` dark, on primary, text is `#ffffff` / `#14041f`113- Corners: 0 / 2px / 4px / 8px · Container 1240px · Base motion 200ms114 115**Signature moves**116 117- Neon edge, not neon fill: 1px colored borders with a 12px same-hue glow on active and focused elements118- Silkscreen pixel headings at 40px and 56px; body in Chakra Petch so paragraphs stay readable119- Chamfered corners via 0 radius and a 6px clipped corner on cards and primary buttons120- Scores and timers in Silkscreen with zero-padded digits (007,420) and a subtle CRT scanline overlay at 4%121- Magenta means act (Play, Buy), cyan means info (rank, level, ping); never swap them122 123## 2. Color124 125Roles follow shadcn/ui naming, so `primary` is always the brand / main-action color and `foreground` is always body text. Every text pair below is WCAG AA (≥ 4.5:1) in both modes.126 127### Light mode (`:root`)128 129| Role | CSS variable | Value | Contrast | Usage |130|---|---|---|---|---|131| `background` | `--background` | `#f1edff` | | Page canvas |132| `foreground` | `--foreground` | `#1b1033` | 15.66:1 on background | Body text and headings on background |133| `card` | `--card` | `#ffffff` | | Cards, panels, popovers |134| `cardForeground` | `--card-foreground` | `#1b1033` | 17.97:1 on card | Text on card |135| `muted` | `--muted` | `#e4dcfb` | | Subtle fills: table headers, code, skeletons |136| `mutedForeground` | `--muted-foreground` | `#58497e` | 5.97:1 on muted | Secondary text, captions, placeholders |137| `primary` | `--primary` | `#c0118e` | | Brand color: primary buttons, links, focus, active states |138| `primaryForeground` | `--primary-foreground` | `#ffffff` | 5.66:1 on primary | Text and icons on primary |139| `secondary` | `--secondary` | `#d9f4f8` | | Secondary buttons and quiet fills |140| `secondaryForeground` | `--secondary-foreground` | `#0b3f4a` | 10.00:1 on secondary | Text on secondary |141| `accent` | `--accent` | `#d0f3f7` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |142| `accentForeground` | `--accent-foreground` | `#0a4452` | 9.10:1 on accent | Text on accent |143| `border` | `--border` | `rgba(27,16,51,0.18)` | | Dividers and card outlines |144| `input` | `--input` | `rgba(27,16,51,0.4)` | | Input borders |145| `ring` | `--ring` | `#006f84` | | Focus ring |146| `destructive` | `--destructive` | `#c42a33` | | Errors and destructive actions |147| `destructiveForeground` | `--destructive-foreground` | `#ffffff` | 5.64:1 on destructive | Text on destructive |148| `success` | `--success` | `#0c7a3e` | | Positive status |149| `successForeground` | `--success-foreground` | `#ffffff` | 5.43:1 on success | Text on success |150| `warning` | `--warning` | `#ffc21a` | | Caution status |151| `warningForeground` | `--warning-foreground` | `#2a1d00` | 10.19:1 on warning | Text on warning |152| `chart-1…5` | `--chart-1…5` | `#c0118e` `#00a3bd` `#6a3de0` `#f2a50c` `#1ea45a` | | Data series, in this order |153 154### Dark mode (`.dark`)155 156| Role | CSS variable | Value | Contrast | Usage |157|---|---|---|---|---|158| `background` | `--background` | `#0a0618` | | Page canvas |159| `foreground` | `--foreground` | `#f0eaff` | 17.03:1 on background | Body text and headings on background |160| `card` | `--card` | `#140d2c` | | Cards, panels, popovers |161| `cardForeground` | `--card-foreground` | `#f0eaff` | 15.95:1 on card | Text on card |162| `muted` | `--muted` | `#1e1540` | | Subtle fills: table headers, code, skeletons |163| `mutedForeground` | `--muted-foreground` | `#a99ccf` | 6.75:1 on muted | Secondary text, captions, placeholders |164| `primary` | `--primary` | `#ff3fd0` | | Brand color: primary buttons, links, focus, active states |165| `primaryForeground` | `--primary-foreground` | `#14041f` | 6.44:1 on primary | Text and icons on primary |166| `secondary` | `--secondary` | `#1a2a4a` | | Secondary buttons and quiet fills |167| `secondaryForeground` | `--secondary-foreground` | `#bdf6ff` | 12.07:1 on secondary | Text on secondary |168| `accent` | `--accent` | `#0e3a4a` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |169| `accentForeground` | `--accent-foreground` | `#7af3ff` | 9.34:1 on accent | Text on accent |170| `border` | `--border` | `rgba(122,243,255,0.2)` | | Dividers and card outlines |171| `input` | `--input` | `rgba(122,243,255,0.4)` | | Input borders |172| `ring` | `--ring` | `#2de6ff` | | Focus ring |173| `destructive` | `--destructive` | `#ff5a6e` | | Errors and destructive actions |174| `destructiveForeground` | `--destructive-foreground` | `#20040a` | 6.41:1 on destructive | Text on destructive |175| `success` | `--success` | `#43f08a` | | Positive status |176| `successForeground` | `--success-foreground` | `#03200f` | 11.56:1 on success | Text on success |177| `warning` | `--warning` | `#ffd23a` | | Caution status |178| `warningForeground` | `--warning-foreground` | `#2a1d00` | 11.40:1 on warning | Text on warning |179| `chart-1…5` | `--chart-1…5` | `#ff3fd0` `#2de6ff` `#a07bff` `#ffd23a` `#43f08a` | | Data series, in this order |180 181### System extras182 183| Variable | Light | Dark | Usage |184|---|---|---|---|185| `--scanlines` | `repeating-linear-gradient(0deg, rgba(27,16,51,0.04) 0 1px, transparent 1px 3px)` | `repeating-linear-gradient(0deg, rgba(240,234,255,0.04) 0 1px, transparent 1px 3px)` | CRT scanline overlay on hero and game art at 4% strength; never over body text |186 187## 3. Typography188 189Load fonts with:190 191```html192<link rel="preconnect" href="https://fonts.googleapis.com" />193<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />194<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Chakra+Petch:wght@400;500;600&family=Share+Tech+Mono&display=swap" />195```196 197| Role | Font | Size (390px → 1440px) | Line height | Weight | Tracking | Style | Class |198|---|---|---|---|---|---|---|---|199| `display` | Silkscreen | 31px → 56px | 1.1 | 700 | 0.01em | uppercase | `.type-display` |200| `h1` | Silkscreen | 27px → 40px | 1.15 | 700 | 0.01em | uppercase | `.type-h1` |201| `h2` | Silkscreen | 19px → 24px | 1.25 | 400 | 0.02em | uppercase | `.type-h2` |202| `h3` | Chakra Petch | 20px | 1.3 | 600 | 0.02em | – | `.type-h3` |203| `body` | Chakra Petch | 16px | 1.55 | 400 | 0.01em | – | `.type-body` |204| `small` | Chakra Petch | 14px | 1.5 | 400 | 0.01em | – | `.type-small` |205| `label` | Chakra Petch | 12px | 1.3 | 600 | 0.12em | uppercase | `.type-label` |206| `mono` | Share Tech Mono | 14px | 1.5 | 400 | 0.02em | – | `.type-mono` |207 208- `h1`–`h3` elements map to the roles of the same name; `display` is for one hero headline per page.209- Fluid sizes use `clamp()` between the two values (see `--type-*-size` in tokens.css).210- Only the weights in this table are loaded; never use other weights.211 212## 4. Spacing & layout213 214Spacing is a 4px scale. Use these steps only (`--space-N` = N × 4px):215 216| Token | `--space-1` | `--space-2` | `--space-3` | `--space-4` | `--space-6` | `--space-8` | `--space-12` | `--space-16` | `--space-24` | `--space-32` |217|---|---|---|---|---|---|---|---|---|---|---|218| px | 4 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | 96 | 128 |219 220- Container: max 1240px, 20px side gutters (`.container`).221- Grid: 12 columns, 20px gap.222- Sections: 88px vertical padding on desktop, 52px on mobile (`.section`).223- Long text: max 60ch per line (`.prose`).224- Launcher shell: 88px icon rail, a 12-column tile grid, and a 360px friends panel that collapses below 1100px.225- Game tiles are 3:4 posters with a 2px neon edge on hover; the featured game spans 8 columns.226- Leaderboards use 44px rows with rank in cyan Silkscreen and the player name in Chakra Petch.227 228## 5. Shape & elevation229 230| Radius | Value | Use |231|---|---|---|232| `--radius-sm` | 0 | badges, checkboxes, small chips |233| `--radius-md` | 2px | buttons, inputs, tabs (= shadcn `--radius`) |234| `--radius-lg` | 4px | cards, panels, menus |235| `--radius-xl` | 8px | dialogs, hero media, large surfaces |236| `--radius-full` | 9999px | avatars, pills, toggles |237 238| Shadow | Mode | Value |239|---|---|---|240| `--shadow-sm` | light | `0 0 0 1px rgba(192,17,142,0.18)` |241| `--shadow-md` | light | `0 6px 20px -6px rgba(192,17,142,0.35)` |242| `--shadow-lg` | light | `0 24px 56px -16px rgba(106,61,224,0.45), 0 0 0 1px rgba(192,17,142,0.2)` |243| `--shadow-sm` | dark | `0 0 0 1px rgba(122,243,255,0.18)` |244| `--shadow-md` | dark | `0 0 16px -2px rgba(255,63,208,0.45), 0 0 0 1px rgba(255,63,208,0.5)` |245| `--shadow-lg` | dark | `0 0 40px -4px rgba(45,230,255,0.4), 0 0 0 1px rgba(45,230,255,0.5), 0 32px 64px -16px rgba(0,0,0,0.8)` |246 247`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.248 249## 6. Motion250 251**Insert coin.** Glow edges power on in steps: borders flicker once (opacity 0.6 to 1) over `base`, and tiles lift 8px with a stepped `out` curve like frames of a sprite. Page loads show a stepped progress bar instead of a spinner.252 253| Token | Value | Use |254|---|---|---|255| `--duration-instant` | 60ms | press feedback, toggles |256| `--duration-fast` | 120ms | hover, focus, color changes |257| `--duration-base` | 200ms | menus, tabs, popovers, cards lifting |258| `--duration-slow` | 400ms | dialogs and scroll reveals |259| `--ease-standard` | `cubic-bezier(0.4, 0, 0.2, 1)` | state changes |260| `--ease-out` | `steps(6, end)` | entrances and reveals |261| `--ease-in` | `cubic-bezier(0.6, 0, 1, 1)` | exits |262 263- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 8px and fade over `--duration-slow` with `--ease-out`; siblings stagger by 50ms (`--reveal-index`).264- Use no durations other than the four above.265- `prefers-reduced-motion: reduce` → no transforms, reveals show immediately (included in tokens.css).266 267## 7. Components268 269Every component reads only variables from section 10, so light and dark mode work with no extra code. These are the exact rules (also in `https://freedesignmd.com/system/arcade-night.css`). In React/shadcn projects, put the same declarations on the matching shadcn component variants.270 271### Button272 273```html274<button class="btn btn-primary">Save</button> <!-- btn-secondary · btn-outline · btn-ghost -->275```276 277```css278.btn {279 display: inline-flex;280 align-items: center;281 justify-content: center;282 gap: 8px;283 height: 44px;284 padding: 0 22px;285 font-family: var(--font-display);286 font-size: 14px;287 font-weight: 700;288 letter-spacing: 0.06em;289 text-transform: uppercase;290 border-radius: 0;291 border: 2px solid transparent;292 white-space: nowrap;293 cursor: pointer;294 text-decoration: none;295 transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);296 clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));297}298.btn-primary {299 background: var(--primary);300 color: var(--primary-foreground);301}302.btn-primary:hover:not(:disabled) {303 background: color-mix(in oklab, var(--primary) 85%, white);304 filter: drop-shadow(0 0 8px var(--primary));305}306.btn-primary:active:not(:disabled) {307 background: color-mix(in oklab, var(--primary) 80%, black);308 transform: translateY(2px);309}310.btn-secondary {311 background: var(--secondary);312 color: var(--secondary-foreground);313}314.btn-secondary:hover:not(:disabled) {315 background: var(--accent);316 color: var(--accent-foreground);317}318.btn-secondary:active:not(:disabled) {319 background: var(--muted);320}321.btn-outline {322 background: transparent;323 color: var(--primary);324 border-color: var(--primary);325}326.btn-outline:hover:not(:disabled) {327 background: color-mix(in oklab, var(--primary) 16%, transparent);328 filter: drop-shadow(0 0 6px var(--primary));329}330.btn-outline:active:not(:disabled) {331 background: color-mix(in oklab, var(--primary) 28%, transparent);332}333.btn-ghost {334 background: transparent;335 color: var(--muted-foreground);336}337.btn-ghost:hover:not(:disabled) {338 background: var(--accent);339 color: var(--accent-foreground);340}341.btn-ghost:active:not(:disabled) {342 background: var(--secondary);343}344.btn:focus-visible {345 outline: 2px solid var(--ring);346 outline-offset: 3px;347}348.btn:disabled, .btn[aria-disabled="true"] {349 opacity: 0.4;350 cursor: not-allowed;351 filter: none;352}353```354 355### Input356 357```html358<input class="input" placeholder="you@company.com" /> <!-- aria-invalid="true" for errors -->359```360 361```css362.input {363 display: block;364 width: 100%;365 height: 44px;366 padding: 0 14px;367 font-family: var(--font-sans);368 font-size: 15px;369 color: var(--foreground);370 background: var(--card);371 border: 1px solid var(--input);372 border-radius: 0;373 outline: none;374 transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);375}376.input::placeholder {377 color: var(--muted-foreground);378 opacity: 1;379}380.input:hover:not(:disabled):not(:focus) {381 border-color: var(--ring);382}383.input:focus, .input:focus-visible {384 border-color: var(--ring);385 box-shadow: 0 0 0 1px var(--ring), 0 0 14px -2px var(--ring);386}387.input[aria-invalid="true"] {388 border-color: var(--destructive);389 box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);390}391.input:disabled {392 opacity: 0.5;393 cursor: not-allowed;394 background: var(--muted);395}396```397 398### Card399 400```html401<article class="card">…</article> <!-- add card-interactive when the whole card is a link -->402```403 404```css405.card {406 background: var(--card);407 color: var(--card-foreground);408 border: 1px solid var(--border);409 border-radius: var(--radius-sm);410 box-shadow: var(--shadow-sm);411 padding: 20px;412 transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);413}414.card-interactive:hover {415 border-color: var(--primary);416 box-shadow: var(--shadow-md);417 transform: translateY(-4px);418}419```420 421### Badge422 423```html424<span class="badge badge-soft" data-tone="success">Paid</span> <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->425```426 427```css428.badge {429 --tone: var(--primary);430 --tone-foreground: var(--primary-foreground);431 display: inline-flex;432 align-items: center;433 gap: 6px;434 height: 22px;435 padding: 0 8px;436 border-radius: var(--radius-sm);437 font-family: var(--font-sans);438 font-size: 11px;439 font-weight: 600;440 letter-spacing: 0.12em;441 text-transform: uppercase;442 line-height: 1;443 white-space: nowrap;444}445.badge[data-tone="success"] {446 --tone: var(--success);447 --tone-foreground: var(--success-foreground);448}449.badge[data-tone="warning"] {450 --tone: var(--warning);451 --tone-foreground: var(--warning-foreground);452}453.badge[data-tone="destructive"] {454 --tone: var(--destructive);455 --tone-foreground: var(--destructive-foreground);456}457.badge-solid {458 background: var(--tone);459 color: var(--tone-foreground);460 border: 1px solid var(--tone);461}462.badge-soft {463 background: color-mix(in oklab, var(--tone) 22%, var(--card));464 color: var(--foreground);465 border: 1px solid color-mix(in oklab, var(--tone) 38%, transparent);466}467.badge-outline {468 background: transparent;469 color: var(--foreground);470 border: 1px solid var(--border);471}472```473 474### Navigation bar475 476```html477<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>478```479 480```css481.nav {482 display: flex;483 align-items: center;484 gap: 4px;485 height: 60px;486 padding: 0 24px;487 background: color-mix(in oklab, var(--background) 88%, transparent);488 backdrop-filter: blur(10px) saturate(160%);489 -webkit-backdrop-filter: blur(10px) saturate(160%);490 border-bottom: 1px solid var(--border);491}492.nav-link {493 padding: 6px 2px;494 margin: 0 10px;495 border-bottom: 2px solid transparent;496 border-radius: var(--radius-sm);497 font-family: var(--font-sans);498 font-size: 13px;499 font-weight: 600;500 letter-spacing: 0.12em;501 text-transform: uppercase;502 color: var(--muted-foreground);503 text-decoration: none;504 transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);505}506.nav-link:hover {507 color: var(--foreground);508 border-bottom-color: var(--border);509}510.nav-link[aria-current="page"] {511 color: var(--foreground);512 border-bottom-color: var(--primary);513}514```515 516### Tabs517 518```html519<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>520```521 522```css523.tabs {524 display: flex;525 gap: 24px;526 border-bottom: 1px solid var(--border);527}528.tab {529 height: 40px;530 padding: 0;531 margin-bottom: -1px;532 background: none;533 border: 0;534 border-bottom: 2px solid transparent;535 color: var(--muted-foreground);536 cursor: pointer;537 font-family: var(--font-sans);538 font-size: 13px;539 font-weight: 600;540 letter-spacing: 0.12em;541 text-transform: uppercase;542 transition: color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);543}544.tab:hover:not([aria-selected="true"]) {545 color: var(--foreground);546}547.tab[aria-selected="true"] {548 color: var(--foreground);549 border-bottom-color: var(--primary);550}551```552 553### Table554 555```html556<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>557```558 559```css560.table {561 width: 100%;562 border-collapse: collapse;563 font-size: 14px;564 font-variant-numeric: tabular-nums;565}566.table th {567 text-align: left;568 height: 40px;569 padding: 0 16px;570 font-family: var(--font-sans);571 font-size: 13px;572 font-weight: 600;573 text-transform: uppercase;574 letter-spacing: 0.06em;575 background: var(--muted);576 color: var(--muted-foreground);577 border-bottom: 1px solid var(--border);578}579.table td {580 height: 44px;581 padding: 0 16px;582 border-bottom: 1px solid var(--border);583 color: var(--foreground);584 transition: background-color var(--duration-fast) var(--ease-standard);585}586.table tbody tr:hover td {587 background: var(--accent);588 color: var(--accent-foreground);589}590```591 592### Dialog / modal593 594```html595<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>596```597 598```css599.dialog-overlay {600 position: fixed;601 inset: 0;602 background: rgba(5,2,14,0.78);603 backdrop-filter: blur(6px);604 -webkit-backdrop-filter: blur(6px);605 display: grid;606 place-items: center;607 padding: 24px;608}609.dialog {610 width: min(520px, 100%);611 background: var(--card);612 color: var(--card-foreground);613 border: 1px solid var(--primary);614 border-radius: var(--radius-sm);615 box-shadow: var(--shadow-lg);616 padding: 28px;617}618```619 620### Text link621 622```html623<a class="link" href="…">Read more</a>624```625 626```css627.link {628 color: var(--ring);629 text-decoration: underline;630 text-decoration-color: color-mix(in oklab, var(--ring) 50%, transparent);631 text-decoration-thickness: 1px;632 text-underline-offset: 3px;633 transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);634}635.link:hover {636 text-decoration-color: var(--ring);637}638```639 640## 8. Imagery & iconography641 642**Imagery.** Key art is the imagery: vertical game posters, character renders and screenshots on the dark canvas, with a 2px neon edge on hover and a 4% scanline overlay. Banners may use pixel-art dithering and low-resolution sprites scaled with nearest-neighbor. Avoid photography of people holding controllers.643 644**Icons.** 20px pixel-grid icons drawn on a 10x10 grid with square caps, 2px stroke: joystick, coin, trophy, heart, lightning bolt. Active state fills the glyph in cyan; action glyphs are magenta.645 646## 9. Do / Don't647 648**Do**649 650- Use magenta `primary` for actions (Play, Buy, Join) and cyan `ring` for information (rank, level, ping)651- Set headings, scores and timers in Silkscreen uppercase; keep every sentence in Chakra Petch652- Light only the edges: a 1px neon border plus a same-hue glow on active and focused elements653- Keep corners square or chamfered at 8px; round only avatars and status dots654- Zero-pad scores and ranks (007,420) and align them in mono655 656**Don't**657 658- Don't set paragraphs in Silkscreen; it is a pixel face for short strings only659- Don't fill large areas with neon; the surface stays dark purple660- Don't put the scanline overlay over text blocks or forms661- Don't use more than one glowing element per row of tiles662- Don't mix magenta and cyan on the same control663 664## 10. tokens.css665 666Drop-in, shadcn/ui-compatible. Works with Tailwind v4 as-is (the `@theme inline` block creates `bg-primary`, `text-muted-foreground`, `font-heading`, `text-display`, `rounded-ui-lg`, `shadow-ui-md`…). Plain CSS projects can ignore the `@theme` block.667 668```css669/* Arcade Night, tokens.css670 * https://freedesignmd.com/system/arcade-night671 * shadcn/ui-compatible variables. Light on :root, dark on .dark.672 * Default mode: dark, add class="dark" to <html>.673 */674@import url("https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Chakra+Petch:wght@400;500;600&family=Share+Tech+Mono&display=swap");675 676:root {677 --font-display: "Silkscreen", ui-monospace, SFMono-Regular, Menlo, monospace;678 --font-sans: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, sans-serif;679 --font-mono: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, monospace;680 --type-display-size: clamp(31px, 21.71px + 2.381vw, 56px);681 --type-display-leading: 1.1;682 --type-display-weight: 700;683 --type-display-tracking: 0.01em;684 --type-h1-size: clamp(27px, 22.17px + 1.238vw, 40px);685 --type-h1-leading: 1.15;686 --type-h1-weight: 700;687 --type-h1-tracking: 0.01em;688 --type-h2-size: clamp(19px, 17.14px + 0.476vw, 24px);689 --type-h2-leading: 1.25;690 --type-h2-weight: 400;691 --type-h2-tracking: 0.02em;692 --type-h3-size: 20px;693 --type-h3-leading: 1.3;694 --type-h3-weight: 600;695 --type-h3-tracking: 0.02em;696 --type-body-size: 16px;697 --type-body-leading: 1.55;698 --type-body-weight: 400;699 --type-body-tracking: 0.01em;700 --type-small-size: 14px;701 --type-small-leading: 1.5;702 --type-small-weight: 400;703 --type-small-tracking: 0.01em;704 --type-label-size: 12px;705 --type-label-leading: 1.3;706 --type-label-weight: 600;707 --type-label-tracking: 0.12em;708 --type-mono-size: 14px;709 --type-mono-leading: 1.5;710 --type-mono-weight: 400;711 --type-mono-tracking: 0.02em;712 --space-1: 4px;713 --space-2: 8px;714 --space-3: 12px;715 --space-4: 16px;716 --space-6: 24px;717 --space-8: 32px;718 --space-12: 48px;719 --space-16: 64px;720 --space-24: 96px;721 --space-32: 128px;722 --radius: 2px;723 --radius-sm: 0;724 --radius-md: 2px;725 --radius-lg: 4px;726 --radius-xl: 8px;727 --radius-full: 9999px;728 --duration-instant: 60ms;729 --duration-fast: 120ms;730 --duration-base: 200ms;731 --duration-slow: 400ms;732 --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);733 --ease-out: steps(6, end);734 --ease-in: cubic-bezier(0.6, 0, 1, 1);735 --reveal-distance: 8px;736 --reveal-stagger: 50ms;737 --container-max: 1240px;738 --gutter: 20px;739 --section-y: 88px;740 --section-y-mobile: 52px;741 --measure: 60ch;742 --background: #f1edff;743 --foreground: #1b1033;744 --card: #ffffff;745 --card-foreground: #1b1033;746 --muted: #e4dcfb;747 --muted-foreground: #58497e;748 --primary: #c0118e;749 --primary-foreground: #ffffff;750 --secondary: #d9f4f8;751 --secondary-foreground: #0b3f4a;752 --accent: #d0f3f7;753 --accent-foreground: #0a4452;754 --border: rgba(27,16,51,0.18);755 --input: rgba(27,16,51,0.4);756 --ring: #006f84;757 --destructive: #c42a33;758 --destructive-foreground: #ffffff;759 --success: #0c7a3e;760 --success-foreground: #ffffff;761 --warning: #ffc21a;762 --warning-foreground: #2a1d00;763 --chart-1: #c0118e;764 --chart-2: #00a3bd;765 --chart-3: #6a3de0;766 --chart-4: #f2a50c;767 --chart-5: #1ea45a;768 --shadow-sm: 0 0 0 1px rgba(192,17,142,0.18);769 --shadow-md: 0 6px 20px -6px rgba(192,17,142,0.35);770 --shadow-lg: 0 24px 56px -16px rgba(106,61,224,0.45), 0 0 0 1px rgba(192,17,142,0.2);771 --scanlines: repeating-linear-gradient(0deg, rgba(27,16,51,0.04) 0 1px, transparent 1px 3px);772}773 774.dark {775 --background: #0a0618;776 --foreground: #f0eaff;777 --card: #140d2c;778 --card-foreground: #f0eaff;779 --muted: #1e1540;780 --muted-foreground: #a99ccf;781 --primary: #ff3fd0;782 --primary-foreground: #14041f;783 --secondary: #1a2a4a;784 --secondary-foreground: #bdf6ff;785 --accent: #0e3a4a;786 --accent-foreground: #7af3ff;787 --border: rgba(122,243,255,0.2);788 --input: rgba(122,243,255,0.4);789 --ring: #2de6ff;790 --destructive: #ff5a6e;791 --destructive-foreground: #20040a;792 --success: #43f08a;793 --success-foreground: #03200f;794 --warning: #ffd23a;795 --warning-foreground: #2a1d00;796 --chart-1: #ff3fd0;797 --chart-2: #2de6ff;798 --chart-3: #a07bff;799 --chart-4: #ffd23a;800 --chart-5: #43f08a;801 --shadow-sm: 0 0 0 1px rgba(122,243,255,0.18);802 --shadow-md: 0 0 16px -2px rgba(255,63,208,0.45), 0 0 0 1px rgba(255,63,208,0.5);803 --shadow-lg: 0 0 40px -4px rgba(45,230,255,0.4), 0 0 0 1px rgba(45,230,255,0.5), 0 32px 64px -16px rgba(0,0,0,0.8);804 --scanlines: repeating-linear-gradient(0deg, rgba(240,234,255,0.04) 0 1px, transparent 1px 3px);805}806 807/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */808@theme inline {809 --color-background: var(--background);810 --color-foreground: var(--foreground);811 --color-card: var(--card);812 --color-card-foreground: var(--card-foreground);813 --color-muted: var(--muted);814 --color-muted-foreground: var(--muted-foreground);815 --color-primary: var(--primary);816 --color-primary-foreground: var(--primary-foreground);817 --color-secondary: var(--secondary);818 --color-secondary-foreground: var(--secondary-foreground);819 --color-accent: var(--accent);820 --color-accent-foreground: var(--accent-foreground);821 --color-border: var(--border);822 --color-input: var(--input);823 --color-ring: var(--ring);824 --color-destructive: var(--destructive);825 --color-destructive-foreground: var(--destructive-foreground);826 --color-success: var(--success);827 --color-success-foreground: var(--success-foreground);828 --color-warning: var(--warning);829 --color-warning-foreground: var(--warning-foreground);830 --color-chart-1: var(--chart-1);831 --color-chart-2: var(--chart-2);832 --color-chart-3: var(--chart-3);833 --color-chart-4: var(--chart-4);834 --color-chart-5: var(--chart-5);835 --font-heading: var(--font-display);836 --font-body: var(--font-sans);837 --font-code: var(--font-mono);838 --radius-ui-sm: var(--radius-sm);839 --radius-ui-md: var(--radius-md);840 --radius-ui-lg: var(--radius-lg);841 --radius-ui-xl: var(--radius-xl);842 --text-display: var(--type-display-size);843 --text-display--line-height: var(--type-display-leading);844 --text-display--letter-spacing: var(--type-display-tracking);845 --text-display--font-weight: var(--type-display-weight);846 --text-h1: var(--type-h1-size);847 --text-h1--line-height: var(--type-h1-leading);848 --text-h1--letter-spacing: var(--type-h1-tracking);849 --text-h1--font-weight: var(--type-h1-weight);850 --text-h2: var(--type-h2-size);851 --text-h2--line-height: var(--type-h2-leading);852 --text-h2--letter-spacing: var(--type-h2-tracking);853 --text-h2--font-weight: var(--type-h2-weight);854 --text-h3: var(--type-h3-size);855 --text-h3--line-height: var(--type-h3-leading);856 --text-h3--letter-spacing: var(--type-h3-tracking);857 --text-h3--font-weight: var(--type-h3-weight);858 --text-body: var(--type-body-size);859 --text-body--line-height: var(--type-body-leading);860 --text-body--letter-spacing: var(--type-body-tracking);861 --text-body--font-weight: var(--type-body-weight);862 --text-small: var(--type-small-size);863 --text-small--line-height: var(--type-small-leading);864 --text-small--letter-spacing: var(--type-small-tracking);865 --text-small--font-weight: var(--type-small-weight);866 --text-label: var(--type-label-size);867 --text-label--line-height: var(--type-label-leading);868 --text-label--letter-spacing: var(--type-label-tracking);869 --text-label--font-weight: var(--type-label-weight);870 --text-mono: var(--type-mono-size);871 --text-mono--line-height: var(--type-mono-leading);872 --text-mono--letter-spacing: var(--type-mono-tracking);873 --text-mono--font-weight: var(--type-mono-weight);874 --shadow-ui-sm: var(--shadow-sm);875 --shadow-ui-md: var(--shadow-md);876 --shadow-ui-lg: var(--shadow-lg);877}878 879@layer base {880 body {881 background: var(--background);882 color: var(--foreground);883 font-family: var(--font-sans);884 font-size: var(--type-body-size);885 line-height: var(--type-body-leading);886 font-weight: var(--type-body-weight);887 letter-spacing: var(--type-body-tracking);888 -webkit-font-smoothing: antialiased;889 }890 .type-display {891 font-family: var(--font-display);892 font-size: var(--type-display-size);893 line-height: var(--type-display-leading);894 font-weight: var(--type-display-weight);895 letter-spacing: var(--type-display-tracking);896 text-transform: uppercase;897 }898 .type-h1 {899 font-family: var(--font-display);900 font-size: var(--type-h1-size);901 line-height: var(--type-h1-leading);902 font-weight: var(--type-h1-weight);903 letter-spacing: var(--type-h1-tracking);904 text-transform: uppercase;905 }906 .type-h2 {907 font-family: var(--font-display);908 font-size: var(--type-h2-size);909 line-height: var(--type-h2-leading);910 font-weight: var(--type-h2-weight);911 letter-spacing: var(--type-h2-tracking);912 text-transform: uppercase;913 }914 .type-h3 {915 font-family: var(--font-sans);916 font-size: var(--type-h3-size);917 line-height: var(--type-h3-leading);918 font-weight: var(--type-h3-weight);919 letter-spacing: var(--type-h3-tracking);920 }921 .type-body {922 font-family: var(--font-sans);923 font-size: var(--type-body-size);924 line-height: var(--type-body-leading);925 font-weight: var(--type-body-weight);926 letter-spacing: var(--type-body-tracking);927 }928 .type-small {929 font-family: var(--font-sans);930 font-size: var(--type-small-size);931 line-height: var(--type-small-leading);932 font-weight: var(--type-small-weight);933 letter-spacing: var(--type-small-tracking);934 }935 .type-label {936 font-family: var(--font-sans);937 font-size: var(--type-label-size);938 line-height: var(--type-label-leading);939 font-weight: var(--type-label-weight);940 letter-spacing: var(--type-label-tracking);941 text-transform: uppercase;942 }943 .type-mono {944 font-family: var(--font-mono);945 font-size: var(--type-mono-size);946 line-height: var(--type-mono-leading);947 font-weight: var(--type-mono-weight);948 letter-spacing: var(--type-mono-tracking);949 }950 h1 {951 font-family: var(--font-display);952 font-size: var(--type-h1-size);953 line-height: var(--type-h1-leading);954 font-weight: var(--type-h1-weight);955 letter-spacing: var(--type-h1-tracking);956 text-transform: uppercase;957 }958 h2 {959 font-family: var(--font-display);960 font-size: var(--type-h2-size);961 line-height: var(--type-h2-leading);962 font-weight: var(--type-h2-weight);963 letter-spacing: var(--type-h2-tracking);964 text-transform: uppercase;965 }966 h3 {967 font-family: var(--font-sans);968 font-size: var(--type-h3-size);969 line-height: var(--type-h3-leading);970 font-weight: var(--type-h3-weight);971 letter-spacing: var(--type-h3-tracking);972 }973 code, kbd, samp, pre {974 font-family: var(--font-mono);975 }976 ::selection {977 background: var(--primary);978 color: var(--primary-foreground);979 }980 .container {981 width: 100%;982 max-width: var(--container-max);983 margin-inline: auto;984 padding-inline: var(--gutter);985 }986 .section {987 padding-block: var(--section-y);988 }989 .prose {990 max-width: var(--measure);991 }992 .reveal {993 opacity: 0;994 transform: translateY(var(--reveal-distance));995 transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);996 transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));997 }998 .reveal.is-in {999 opacity: 1;1000 transform: none;1001 }1002 @media (prefers-reduced-motion: reduce) {1003 .reveal { opacity: 1; transform: none; transition: none; }1004 *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }1005 }1006}1007```1008 1009Tailwind v3:1010 1011```js1012// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)1013module.exports = {1014 darkMode: "class",1015 theme: {1016 extend: {1017 colors: {1018 "background": "var(--background)",1019 "foreground": "var(--foreground)",1020 "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },1021 "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },1022 "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },1023 "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },1024 "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },1025 "border": "var(--border)",1026 "input": "var(--input)",1027 "ring": "var(--ring)",1028 "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },1029 "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },1030 "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },1031 chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },1032 },1033 fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },1034 borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },1035 boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },1036 transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },1037 transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },1038 maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },1039 },1040 },1041};1042```1043 1044Dependencies: `lucide-react`Save as DESIGN.md in the repo root and add “Follow DESIGN.md for all UI” to CLAUDE.md, AGENTS.md or your Cursor rules.


