Retro Cosmic Arcade’s visual identity is built on a compact set of hand-picked color tokens compiled into the stylesheet, and used consistently across every component. This page covers every color token, the pixel border utility classes, the CRT scanline effect, the Win98-inspired chrome button, and global body styles — giving you everything you need to retheme the project without hunting through individual components.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/retro-cosmic-arcade/llms.txt
Use this file to discover all available pages before exploring further.
This is a compiled SPA — Tailwind CSS is pre-compiled into
assets/main.css. There is no tailwind.config.js to edit at runtime. To change tokens or add new utility classes you must edit the source Tailwind config and rebuild the project.Color Tokens
All color tokens are defined in the Tailwind source config under
theme.extend.colors. Each token is compiled into the bundled assets/main.css as a Tailwind utility class (e.g. bg-y2k-cyan, text-y2k-cyan, border-y2k-cyan). Because the project ships as a compiled SPA, adding or changing a token requires editing the source config and rebuilding.| Token name | Hex value | Tailwind class prefix | Typical use |
|---|---|---|---|
y2k-black | #060010 | bg-y2k-black | Page background, deepest dark surfaces |
y2k-panel | #150826 | bg-y2k-panel | Card/panel backgrounds, secondary surfaces |
y2k-cyan | #4dffff | text-y2k-cyan | Primary accent, borders, glow effects |
y2k-magenta | #ff4ad8 | text-y2k-magenta | Secondary accent, shadows, selection colour |
y2k-lime | #adff2f | text-y2k-lime | Tertiary accent, HP bar fill, highlights |
y2k-silver | #d4d0e8 | text-y2k-silver | Chrome button top gradient, muted text |
y2k-darkSilver | #6b6480 | text-y2k-darkSilver | Chrome button bottom gradient, borders |
Changing a Color
Open the Tailwind source config
In the project source, find
tailwind.config.js (or tailwind.config.ts) and locate the theme.extend.colors block.tailwind.config.js
Update the hex value
Replace the hex string for whichever token you want to change, then rebuild. All Tailwind utility classes that reference that token update automatically in the new compiled output.
Pixel Border Utility Classes
Three pixel-art border variants are available as global CSS classes. Each pairs a solid 2px border in one accent colour with a flat 4px offset shadow in a contrasting accent, producing a classic chunky pixel look without blur or opacity.- pixel-border-cyan
- pixel-border-lime
- pixel-border-magenta
- inset-bevel
CRT Scanline Effect
The.scanlines class renders a CSS-only CRT overlay using a repeating linear gradient of alternating transparent and semi-transparent dark stripes at 4px intervals. It uses pointer-events: none so it sits visually on top without blocking clicks.
Polaroid component places a <div className="scanlines absolute inset-0" /> inside each card’s image area to give the preview panel a screen-like texture.
Global toggle: The site Footer exposes a toggle button that adds or removes the scanlines class directly on document.body, applying the CRT overlay to the entire viewport. The relevant logic looks like:
Chrome Button Style
The.chrome-bg class reproduces the Windows 98 / early-2000s bevel button aesthetic using a silver gradient and asymmetric borders that flip on :active to simulate a physical press.
y2k-silver (#d4d0e8) at the top to y2k-darkSilver (#6b6480) at the bottom, matching the two silver tokens in the palette. To change the button colour, update both the gradient stops and the corresponding Tailwind tokens.
Global Body Styles
Three global body rules enforce the Y2K aesthetic across the entire page:Background
background-color: #060010 (y2k-black) — a near-black deep purple that reads as pure black on most monitors but keeps warmth under glow effects.Cursor
cursor: crosshair on body, overridden to cursor: pointer on <a> tags. The crosshair reinforces the arcade targeting aesthetic site-wide.Text Selection
::selection background is set to #ff4ad8 (y2k-magenta) with white text, so any text the user highlights flashes with the magenta accent colour.