@joacod/pixel-ui
v0.13.2
Published
Opinionated pixel-art styled React component library built on Base UI
Downloads
118
Maintainers
Readme
👾 Pixel UI
Opinionated pixel-art styled React component library built on Base UI and Tailwind CSS v4.
Features
- 🎮 Authentic pixel-art aesthetic - NES-inspired 8-bit design system
- ⚡ Built on Base UI - Accessible, unstyled React primitives
- 🎨 Tailwind CSS powered - CSS-first configuration
- 📦 Zero-config - Just import and use
- 🔒 Type-safe - Full TypeScript support
Installation
npm install @joacod/pixel-uiPeer Dependencies
pixel-ui requires only React and React DOM:
npm install react react-domQuick Start
1. Import Pixel UI Styles
In your app's CSS file (e.g., app/globals.css or src/index.css):
@import '@joacod/pixel-ui/components';
/* Optional: Pixel font for the full retro experience */
@import '@joacod/pixel-ui/font';What's included:
- ✅ Design tokens - Colors, spacing, font configuration
- ✅ Tailwind utilities - Pre-built utility classes
- ✅ Base styles - Pixel borders, rendering helpers
- ✅ Components - All component styles
- 🎨 Font (optional) - Pixel art font
Note: The font import is optional but recommended for an authentic pixel-art look. If you skip it, components will use your system's default font.
2. Use Components
import { Button } from '@joacod/pixel-ui'
export default function App() {
return (
<Button variant="primary" size="md" onClick={() => alert('Hello!')}>
Click me
</Button>
)
}Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines.
License
This project is licensed under the terms of the MIT license.
