A simple pixel art creation tool built with React, TypeScript, and Tailwind CSS.
- 13x13 pixel grid for creating pixel art
- 8 vibrant colors: black, orange, red, purple, blue, green, yellow, white
- Click to paint, click again to erase
- Drag to paint continuously
- Clear all button to reset the canvas
- Mobile-optimized with dynamic viewport height
- Touch-friendly interface
- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to the local development URL (usually http://localhost:5173)
npm run build- Select a color from the palette at the top
- Click on any pixel to paint it
- Click on a painted pixel to erase it
- Drag across pixels to paint continuously
- Use the "Clear All" button to reset the entire canvas
- React 18
- TypeScript
- Vite
- Tailwind CSS
- PostCSS
pixel-art-standalone/
├── src/
│ ├── components/
│ │ └── PixelArt.tsx # Main pixel art component
│ ├── App.tsx # Main app component
│ ├── main.tsx # React entry point
│ └── index.css # Global styles
├── index.html # HTML template
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── tailwind.config.js # Tailwind CSS configuration
├── postcss.config.js # PostCSS configuration
└── vite.config.ts # Vite configuration