pixelartui-react
v0.4.46
Published
Pixel Art Component library for react
Readme
🎮 PixelArtUI React
A retro-themed, pixel-perfect React component library that brings the nostalgic charm of 8-bit and 16-bit era UIs to modern web applications.
📖 Live Storybook Demo | 📦 npm Package | 🌐 Documentation
✨ Features
- 🎨 Retro Aesthetic - Authentic pixel art styling reminiscent of classic games
- ⚛️ React Components - Modern React components with TypeScript support
- 🎭 Customizable - Easily theme and customize to match your project
- 📱 Responsive - Works seamlessly across all device sizes
- ♿ Accessible - Built with accessibility best practices
- 🚀 Performance - Lightweight and optimized for production
- 📚 Storybook - Interactive component documentation and playground
🖼️ Component Showcase
Button Component
import { Button } from 'pixelartui-react';
function App() {
return (
<Button variant="primary" size="medium">
Press Start
</Button>
);
}Card Component
import { Card } from 'pixelartui-react';
function GameCard() {
return (
<Card title="High Scores" variant="retro">
<p>Level completed! Score: 9999</p>
</Card>
);
}💡 See all components in action: Interactive Storybook Demo
🚀 Quick Start
Installation
# npm
npm install pixelartui-react
# yarn
yarn add pixelartui-react
# pnpm
pnpm add pixelartui-reactBasic Usage
import { Button, Card, Input } from 'pixelartui-react';
import 'pixelartui-react/dist/styles.css';
function RetroApp() {
return (
<div className="retro-app">
<Card title="Welcome, Player 1">
<Input placeholder="Enter your name" />
<Button variant="primary">Start Game</Button>
</Card>
</div>
);
}📦 Available Components
- Button - Retro-styled buttons with multiple variants
- Card - Container components with pixel borders
- Input - Form inputs with pixel-perfect styling
- Select - Dropdown selects with retro theming
- Modal - Dialog boxes with classic game aesthetics
- Progress Bar - Animated progress indicators
- Tabs - Tab navigation with pixel borders
- Badge - Status indicators and labels
- Avatar - User profile images with pixel frames
- Typography - Pixel-font text components
View all components in Storybook →
🎨 Theming
Customize the look and feel to match your brand:
import { ThemeProvider } from 'pixelartui-react';
const customTheme = {
colors: {
primary: '#FF6B6B',
secondary: '#4ECDC4',
background: '#1A1A2E',
},
pixelSize: 2,
};
function App() {
return (
<ThemeProvider theme={customTheme}>
<YourApp />
</ThemeProvider>
);
}🛠️ Development
# Clone the repository
git clone https://github.com/Pixelartui/pixelartui-react.git
cd pixelartui-react
# Install dependencies
npm install
# Start development server
npm run dev
# Run Storybook
npm run storybook
# Build for production
npm run build📖 Documentation
- Component API Documentation
- Storybook Examples
- Migration Guide (if applicable)
- Theming Guide (if applicable)
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
MIT © PixelArtUI
🌟 Show Your Support
If you find this project useful, please consider giving it a ⭐️ on GitHub!
📬 Community & Support
- GitHub Discussions - Ask questions and share ideas
- Issues - Report bugs and request features
- Twitter - Follow for updates (if applicable)
🎮 Inspiration
Built for developers who love retro gaming aesthetics and want to bring that nostalgic feeling to modern web applications.
Made with 💖 and pixels
