The Dark Retro Webpage’s visual language is defined almost entirely inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/dark-retro-webpage/llms.txt
Use this file to discover all available pages before exploring further.
assets/main.css — a single stylesheet that extends Tailwind with custom utility classes and :root design tokens. Rather than scattering magic hex values across components, every colour, every bevel border, and every special effect references one of these shared definitions. This page documents the full set of utilities and tokens so you can build new sections that feel native to the site’s aesthetic.
CSS Custom Properties
All colour tokens are declared on:root and are available anywhere in the stylesheet. Tailwind’s arbitrary-value syntax (e.g. bg-[#a855f7]) can reference these colours directly, or you can use var(--purple) in custom CSS.
| Token | Value | Primary Use |
|---|---|---|
--bg-dark | #0c0814 | <body> background, dark overlays |
--bg-panel | #1a0f24 | Win98Window body, card interiors |
--purple | #a855f7 | Headings, active borders, focus rings |
--magenta | #ff2bd6 | Hover states, link accents, drop-shadows |
--cyan | #22d3ee | Tag pills, skill badges, icon highlights |
--mint | #5eead4 | Soft borders, secondary highlights |
--turquoise | #14b8a6 | Dividers, subtle borders |
--silver | #c0c8d8 | Body text, labels, muted UI copy |
--lime | #a3ff12 | Terminal / code output text |
The body background uses
--bg-dark (#0c0814) via a Tailwind arbitrary value, not the custom property directly. If you change the body colour, update --bg-dark and the bg-[#0c0814] class in body { ... } together to keep them in sync.Bevel Classes
Three bevel variants are available. They all use the same 2 px solid-border technique but invert the light/dark edge colours to create raised or sunken effects — an authentic Windows 98 UI pattern.- .bevel-window
- .bevel-inset
Raised bevel for window containers. Light (near-white Usage: Applied automatically by the
#e2e8f0) edges on top and left simulate a light source from the upper-left corner; dark (#475569) edges on bottom and right cast a shadow. Background is var(--bg-panel).Win98Window component. Use directly on any div that should look like a floating panel.All three bevel variants share the same two border colours:
#e2e8f0 (light) and #475569 (dark). The visual difference — raised vs. sunken — is entirely determined by which edges receive which colour. This is the same technique Windows 98 used in every version of its UI.CRT Overlay
The.crt-overlay class applies a full-viewport scanline effect that layers over the entire page, recreating the horizontal line pattern of a cathode-ray tube monitor.
pointer-events: none— The overlay sits above all content visually but never intercepts clicks, taps, or hovers.position: fixedatz-index: 9999— It covers the full viewport at all scroll positions and stacks above every other element except browser UI.background-size: 100% 4px— The 4 px repeating gradient creates scanlines at a density that reads naturally on HiDPI (Retina) screens.
.crt-overlay to a single empty div placed at the end of <body>. Only one instance is needed for the entire page.
The CRT overlay is a purely cosmetic effect. If you are building an accessible variation of the site or targeting users who prefer reduced motion / reduced transparency, wrap the overlay
div in a check against prefers-reduced-transparency or provide a toggle in user settings.Animations
.blink
The.blink class applies an infinite CSS blink animation. It cycles opacity from 1 to 0 and back every second using a stepped 50% keyframe — identical to the classic HTML <blink> tag behaviour.
Typography Classes
Three custom font classes override Tailwind’s defaults with the project’s chosen typefaces. All three fonts are loaded from Google Fonts at the top ofmain.css.
- .font-display
- .font-mono
- .font-sans
Press Start 2P — the pixel/bitmap font used for headings, section labels, and any copy that should scream “retro game UI”. Each character is rendered on an 8×8 grid, so this font works best at small sizes (
text-xs, text-sm) where the pixel grid is most visible.Tailwind’s built-in
.font-mono and .font-sans utilities are overridden by these custom definitions in main.css. The Tailwind defaults (ui-monospace, system-ui) are replaced with DM Mono and Space Grotesk respectively. If you add a third-party component that relies on Tailwind’s default font stacks, wrap it in an explicit inline style or a scoped class to restore the expected font.Related
Win98Window
The primary container component — uses
.bevel-window, --bg-panel, and .font-mono together.Marquee
The scrolling ticker — pair it with
.font-display and a --lime or --magenta colour for a retro feel.Theming
How to remap
:root tokens and create custom colour palettes while keeping the bevel system intact.