npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@liiift-studio/mac-os9-ui

v0.2.4

Published

A pixel-perfect Mac OS 9 UI component library for React and TypeScript

Readme

Mac OS 9 UI Component Library

A pixel-perfect Mac OS 9 UI component library for React and TypeScript. Bring authentic retro Mac OS 9 styling to your web applications with accessible, well-typed components.

License: MIT

Features

  • 🎨 Pixel-Perfect Design - Faithful recreation of Mac OS 9 UI elements based on the original design system
  • 📦 TypeScript First - Full TypeScript support with complete type definitions
  • Accessible - WCAG 2.1 AA compliant components with proper ARIA attributes
  • 🎭 Dual Module Support - ESM and CommonJS builds included
  • 📖 Storybook Docs - Interactive component documentation and examples
  • 🧪 Fully Tested - Comprehensive test coverage with Vitest

Installation

npm install @liiift-studio/mac-os9-ui

Quick Start

Import the styles once in your application's entry point, then use the components:

// In your app's main file (e.g., main.tsx, _app.tsx, index.tsx)
import '@liiift-studio/mac-os9-ui/styles';
import { Button, Window } from '@liiift-studio/mac-os9-ui';

function App() {
	return (
		<Window title="My Application">
			<div style={{ padding: '16px' }}>
				<Button variant="primary">Click Me</Button>
			</div>
		</Window>
	);
}

Components

Form Controls

  • Button - Classic Mac OS 9 buttons with variants (primary, default, cancel)
  • Checkbox - Mac OS 9 style checkboxes
  • Radio - Radio button groups
  • TextField - Text input fields
  • Select - Dropdown select menus

Layout & Chrome

  • Window - Classic Mac OS 9 window container
  • MenuBar - Application menu bar with dropdown menus
  • Tabs - Tabbed navigation component
  • Dialog - Modal dialog windows

Lists & Navigation

  • ListView - List view with Mac OS 9 styling
  • FolderList - Hierarchical folder/file list view
  • Scrollbar - Custom Mac OS 9 styled scrollbars

Utilities

  • Icon - System icons (folder, document, trash, etc.)
  • IconButton - Icon-only button variant

Usage Examples

Creating a Window with Menu Bar

import { Window, MenuBar } from '@liiift-studio/mac-os9-ui';

function MyApp() {
	const menuItems = [
		{
			label: 'File',
			items: [
				{ label: 'New', onClick: () => console.log('New') },
				{ label: 'Open...', onClick: () => console.log('Open') },
				{ type: 'separator' },
				{ label: 'Quit', onClick: () => console.log('Quit') },
			],
		},
		{
			label: 'Edit',
			items: [
				{ label: 'Cut', onClick: () => console.log('Cut') },
				{ label: 'Copy', onClick: () => console.log('Copy') },
				{ label: 'Paste', onClick: () => console.log('Paste') },
			],
		},
	];

	return (
		<Window title="My Application">
			<MenuBar items={menuItems} />
			{/* Your content here */}
		</Window>
	);
}

Using Form Controls

import { Button, Checkbox, TextField, Select } from '@liiift-studio/mac-os9-ui';
import { useState } from 'react';

function MyForm() {
	const [checked, setChecked] = useState(false);
	const [text, setText] = useState('');
	const [selected, setSelected] = useState('');

	return (
		<div>
			<TextField
				label="Name"
				value={text}
				onChange={(e) => setText(e.target.value)}
			/>
			
			<Checkbox
				label="I agree to the terms"
				checked={checked}
				onChange={(e) => setChecked(e.target.checked)}
			/>
			
			<Select
				label="Choose an option"
				value={selected}
				onChange={(e) => setSelected(e.target.value)}
				options={[
					{ value: 'option1', label: 'Option 1' },
					{ value: 'option2', label: 'Option 2' },
					{ value: 'option3', label: 'Option 3' },
				]}
			/>
			
			<Button variant="primary" onClick={() => console.log('Submit')}>
				Submit
			</Button>
		</div>
	);
}

Creating a Dialog

import { Dialog, Button } from '@liiift-studio/mac-os9-ui';
import { useState } from 'react';

function MyComponent() {
	const [open, setOpen] = useState(false);

	return (
		<>
			<Button onClick={() => setOpen(true)}>Open Dialog</Button>
			
			<Dialog
				open={open}
				onClose={() => setOpen(false)}
				title="Confirm Action"
			>
				<p>Are you sure you want to proceed?</p>
				<div style={{ display: 'flex', gap: '8px', marginTop: '16px' }}>
					<Button variant="primary" onClick={() => setOpen(false)}>
						OK
					</Button>
					<Button onClick={() => setOpen(false)}>Cancel</Button>
				</div>
			</Dialog>
		</>
	);
}

Styling

Import the styles once in your application's entry point:

// In your app's main file (e.g., main.tsx, _app.tsx, index.tsx)
import '@liiift-studio/mac-os9-ui/styles';

This needs to be done only once at the root of your application. All components will then have the correct Mac OS 9 styles applied.

All components use CSS Modules internally, so styles are scoped and won't conflict with your application's CSS. The theme variables and global styles are extracted to a separate CSS file for optimal caching and performance.

TypeScript Support

All components are written in TypeScript and include full type definitions. Import types as needed:

import type { ButtonProps, WindowProps } from '@liiift-studio/mac-os9-ui';

Browser Support

  • Chrome/Edge (latest)
  • Firefox (latest)
  • Safari (latest)

Development

# Install dependencies
npm install

# Run Storybook for development
npm run dev

# Build the library
npm run build

# Run tests
npm test

# Run linting
npm run lint

Attribution

This component library is based on the Mac OS 9 UI Kit created by Michael Feeney.

Original Figma design: Mac OS 9 UI Kit

Design licensed under CC BY 4.0

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Links


Made with 💾 by Liiift Studio