Add vpinball: a browser Visual Pinball player
Next.js app that plays real .vpx tables via @valknar/vpinball-wasm (WebAssembly Visual Pinball). Demo mode with the bundled default table, drag-and-drop custom table upload, a cabinet-styled UI with a coin-door HUD (fullscreen/stats/info/eject), a custom 404 page, PWA support (hand-rolled service worker), and a static Docker Compose deployment behind nginx. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hQoM3jJT1Lx7CMTciMzvD
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@theme {
|
||||
/* Cabinet palette — grounded in real pinball-machine parts, not a generic dark theme. */
|
||||
--color-ink: #0b0b0f; /* cabinet body / page background */
|
||||
--color-ash: #1b1c22; /* panel surface */
|
||||
--color-chrome: #a9aebb; /* metal bezel, borders, muted text */
|
||||
--color-marquee: #ff7a29; /* GI lamp amber — primary accent, CTAs */
|
||||
--color-arc: #4ce0d2; /* fluorescent-tube cyan — focus rings, secondary */
|
||||
--color-paper: #f3efe6; /* aged-backglass cream — high-contrast body text */
|
||||
|
||||
--font-display: var(--font-big-shoulders), "Arial Narrow", sans-serif;
|
||||
--font-body: var(--font-space-grotesk), system-ui, sans-serif;
|
||||
--font-mono: var(--font-plex-mono), "IBM Plex Mono", ui-monospace, monospace;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--color-ink);
|
||||
color: var(--color-paper);
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--color-marquee);
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--color-arc);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
Reference in New Issue
Block a user