nostalgia-ui Components
86 Mac OS 9 styled components built with UI SDK and Tailwind CSS. Each component is a drop-in replacement installable via the shadcn CLI. Zero image assets — every bevel, stripe, and shadow is pure CSS.
Installation
Install any component with a single command:
npx shadcn@latest add "https://nostalgia-ui.com/r/retro-button.json"
Installing any component also installs nostalgia-theme (the --os9-* tokens and os9-* utilities) via registryDependencies. To add just the theme on its own:
npx shadcn@latest add "https://nostalgia-ui.com/r/nostalgia-theme.json"
One line of CSS
Components get their behaviour (focus, keyboard, popups, dismissal) fromUI SDK, which installs with them. Declare its cascade layer first in your global stylesheet, so your Tailwind utilities win over its resets:
@layer ui-sdk; @import "tailwindcss";
Modern or classic flair
By default components carry a modern flair: the menu highlight glides between rows, dialogs zoom out of their trigger, disclosure panels morph open. For OS 9 exactly as it shipped (instant menus, stepped motion), set data-flair="classic"on any ancestor, usually <html>. Reduced-motion settings are always respected.
<html lang="en" data-flair="classic">
Usage
Import and use components just like shadcn/ui — same API patterns, same className prop, same composability:
import { RetroButton } from "@/components/ui/retro-button"
import { RetroWindow } from "@/components/ui/retro-window"
export function MyApp() {
return (
<RetroWindow title="Hello" active>
<RetroButton variant="primary">Click me</RetroButton>
</RetroWindow>
)
}