RetroWin’s visual identity is built on two layers: a custom Tailwind color palette that maps semantic Win98 names to exact hex values, and a small set of hand-crafted CSS utility classes that reproduce the classic beveled-border look. Together they give you a single source of truth — change a token inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/retrowin/llms.txt
Use this file to discover all available pages before exploring further.
tailwind.config.js and the update ripples through every window chrome, button, and title bar in the app.
Color palette
Every color in RetroWin is registered under thewin-* namespace in the Tailwind config. This keeps them distinct from Tailwind’s built-in palette and makes their purpose obvious at a glance.
| Token | Hex | Tailwind class | Primary usage |
|---|---|---|---|
win-teal | #008080 | bg-win-teal | Desktop background |
win-navy | #000080 | bg-win-navy | Title bars, active selections |
win-silver | #C0C0C0 | bg-win-silver | Window chrome, button faces |
win-gray | #808080 | border-win-gray | Borders, inset shadow layer |
win-cyan | #00CED1 | bg-win-cyan | Accent highlights |
win-pink | #FF1493 | text-win-pink | Hover states |
win-light | #DFDFDF | bg-win-light | Light border / outset shadow layer |
Changing the desktop background
The rootApp component applies bg-win-teal to its outermost div. To swap the desktop color, replace that class with any other win-* token — or a standard Tailwind color:
assets/main.js
Custom CSS utilities
RetroWin ships three@layer components utility classes that reproduce the Win98 beveled-border system using border colors and layered box-shadow. You can apply them to any element with a plain class name — no Tailwind variant syntax required.
.win98-outset
Used for raised surfaces: window frames, panels, and anything that should look like it’s pressing out of the screen. Top and left edges are white (highlight), bottom and right are black (shadow), with an inner #DFDFDF / gray shadow pair.
.win98-inset
Used for sunken surfaces: input fields, address bars, and text areas. The border colors are inverted compared to .win98-outset, and the background switches to white to signal an editable region.
.win98-btn
A self-contained button style that combines the outset bevel with the pixel font and compact padding. It also handles the :active state — when pressed, the border colors flip to inset and padding shifts by 1px to simulate physical depression.
Typography
Four font families are imported from Google Fonts inassets/main.css and mapped to Tailwind utility classes:
| Tailwind class | Font family | Best for |
|---|---|---|
font-pixel | Pixelify Sans | Buttons, labels, taskbar text |
font-vt323 | VT323 | Page headings, large display text |
font-mono | IBM Plex Mono | Code blocks, terminal output |
font-sans | Inter | Body copy, paragraphs |
@import lives at the top of assets/main.css:
assets/main.css
Swapping a font
To replace VT323 with a different retro font (e.g. Press Start 2P):- Update the
@importURL inassets/main.cssto include the new family. - Change the
fontFamilymapping intailwind.config.js:
tailwind.config.js
font-vt323 will immediately pick up the new family.