bd3a9a49d1e21a7441c3038fe74f2ac9903a97ec
Enhanced globals.css based on pastel-ui best practices: Features added: - @source directives for automatic component discovery - @custom-variant for dark mode support - Complete design system with :root and .dark themes - OKLCH color space for better color precision - shadcn/ui compatible color tokens (background, foreground, card, etc.) - @theme inline block with Tailwind v4 color definitions - 23 category colors converted to OKLCH format - Custom animations system with 8 predefined animations - @layer base with global styles - Smooth transitions and custom scrollbar styling - Screen reader utility class (.sr-only) - Animation keyframes for all custom animations Design system includes: - Light/dark mode support with OKLCH colors - Semantic color tokens (primary, secondary, muted, accent, destructive) - Border radius variable (--radius) - Smooth 200ms transitions - Category-specific colors for all 23 unit types in OKLCH - Custom animations: fadeIn, slideUp/Down, slideInRight/Left, scaleIn, bounceGentle, shimmer Accessibility features: - Proper outline ring on focus - Theme transition prevention during theme switch - Custom scrollbar with hover states - Screen reader only utility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Unit Converter
A spectacular, innovative unit conversion application built with modern web technologies to provide the best user experience for converting between various measurement units.
Tech Stack
- Next.js 16 - React framework with App Router and static export
- TypeScript - Type-safe development
- Tailwind CSS 4 - Modern utility-first CSS framework
- convert-units - Comprehensive unit conversion library
Features
Supported Units
23 measurement categories with 187 individual units:
- Angle, Apparent Power, Area, Current, Digital
- Each, Energy, Frequency, Illuminance, Length
- Mass, Pace, Parts Per, Power, Pressure
- Reactive Energy, Reactive Power, Speed, Temperature
- Time, Voltage, Volume, Volume Flow Rate
Innovative UX Features
- Real-time bidirectional conversion
- Smart context-aware interface with fuzzy search
- Visual comparison with color-coded categories
- Keyboard shortcuts for power users
- Mobile-first responsive design
- Conversion history with localStorage
- Dark mode support
Getting Started
Prerequisites
- Node.js 18+ or 20+
- pnpm (recommended) or npm
Installation
# Install dependencies
pnpm install
# Run development server
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
Open http://localhost:3000 to see the app.
Project Structure
units-ui/
├── app/ # Next.js App Router
│ ├── layout.tsx # Root layout
│ ├── page.tsx # Home page
│ └── globals.css # Global styles
├── components/ # React components (coming soon)
├── lib/ # Utility functions (coming soon)
├── public/ # Static assets
└── IMPLEMENTATION_PLAN.md # Detailed implementation plan
Development
See IMPLEMENTATION_PLAN.md for the complete development roadmap.
License
MIT
Built with Next.js 16, Tailwind CSS 4, and convert-units
Description
Languages
TypeScript
90.3%
CSS
8.2%
Dockerfile
1.4%