Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/retro-webpage/llms.txt
Use this file to discover all available pages before exploring further.
TiledBackground is a layout wrapper that envelops its children in a full-screen retro grid. It applies the cream base colour and a repeating 20 × 20 px graph-paper grid line pattern via Tailwind’s custom bg-grid-pattern utility — a direct nod to the tiled desktop wallpapers and patterned backgrounds that defined the GeoCities era. Children are rendered inside a relatively positioned z-10 container so they always sit above the background grid lines.
Props
Any valid React children. They render inside a
relative z-10 div layered above the grid background.Usage
Wrap any page or section inTiledBackground to apply the retro grid:
TiledBackground is already applied globally inside Layout. You only need to use it directly when building a standalone page or a preview outside the main app shell.The Grid Pattern
Thebg-grid-pattern CSS utility is defined in the Tailwind configuration and generates the grid via two overlapping linear gradients:
#e5e7eb (Tailwind gray-200) lines over the cream base, with no JavaScript or SVG required.
DOM Structure
The component renders a two-level div tree:CSS Classes
| Class | Description |
|---|---|
min-h-screen | Outer div fills at least the full viewport height |
w-full | Outer div spans the full available width |
bg-retro-cream | Custom Tailwind colour (#f5f0e8) — warm off-white base |
bg-grid-pattern | Custom Tailwind utility applying the 20 px graph-paper grid |
relative | Establishes a positioning context for the inner z-indexed div |
relative z-10 | Lifts children above the background grid in the stacking order |