Master Tailwind CSS through fun interactive challenges! š
A Svelte 5 educational game that makes learning Tailwind CSS addictively fun
TailSpin transforms the sometimes overwhelming experience of learning Tailwind CSS into an engaging game! Whether you're a beginner trying to understand utility classes or a pro looking to sharpen your skills, TailSpin offers three exciting game modes to test and improve your Tailwind knowledge.
Match stunning designs with the correct Tailwind classes! Look at beautiful UI components and select the right utility classes that create them.
Race against the clock! Answer rapid-fire Tailwind CSS questions before time runs out.
Step-by-step component construction! Build real UI components from scratch with guided instructions and smart hints.
# Clone the repository
git clone https://github.com/your-username/tailspin.git
cd tailspin
# Install dependencies
npm install
# Start the development server
npm run dev
Visit http://localhost:5173
and start your Tailwind learning adventure! š
src/
āāā routes/ # SvelteKit routes
ā āāā challenge/ # Visual Challenge mode
ā āāā speed/ # Speed Round mode
ā āāā build/ # Build Mode
ā āāā +layout.svelte # Root layout
āāā lib/
ā āāā components/ # Reusable components
ā ā āāā Fireworks.svelte # Celebration animations
ā ā āāā CompletionCard.svelte # Game completion overlay
ā āāā data/ # Game content
ā ā āāā visual-challenges.json
ā ā āāā speed-questions.json
ā ā āāā build-challenges.json
ā āāā stores/ # Svelte stores
ā ā āāā gameStore.svelte.ts # Game state management
ā āāā utils/ # Helper utilities
ā āāā GameUtils.ts # Game logic helpers
ā āāā TailwindValidator.ts # Smart class validation
āāā app.css # Global styles
We love contributions! Whether it's:
Track your progress with:
TailSpin is built with customization in mind:
/lib/data/
directoryFireworks.svelte
componentTailSpin works great on:
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Type checking
npm run check
# Linting
npm run lint
Exciting features coming soon:
Built with love by developers who believe learning should be fun! Special thanks to:
MIT License - feel free to learn from, modify, and share!
Ready to spin up your Tailwind skills? šŖļø
Start Playing ⢠Report Bug ⢠Request Feature
Happy Learning! š