TailSpin Svelte Themes

Tailspin

Svelte 5 game to help you learn Tailwind

šŸŽÆ TailSpin

Master Tailwind CSS through fun interactive challenges! šŸš€

A Svelte 5 educational game that makes learning Tailwind CSS addictively fun

✨ What is TailSpin?

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.

Play it now on Netlify

šŸŽ® Game Modes

šŸŽÆ Visual Challenge Mode

Match stunning designs with the correct Tailwind classes! Look at beautiful UI components and select the right utility classes that create them.

  • Perfect for: Visual learners who learn by seeing
  • Difficulty: Beginner to Intermediate
  • Skills: Class recognition, design-to-code translation

⚔ Speed Round

Race against the clock! Answer rapid-fire Tailwind CSS questions before time runs out.

  • Perfect for: Quick thinking and memorization
  • Difficulty: All levels
  • Skills: Fast recall, class memorization
  • Timer: 30 seconds of pure adrenaline!

šŸ—ļø Build Mode

Step-by-step component construction! Build real UI components from scratch with guided instructions and smart hints.

  • Perfect for: Hands-on learners who learn by doing
  • Difficulty: Intermediate to Advanced
  • Skills: Practical application, component building

šŸŽŠ Features That Make Learning Fun

  • šŸŽ† Celebration Fireworks - Gorgeous fireworks animations when you get answers right!
  • šŸ“Š Progress Tracking - Level up as you play and track your learning journey
  • šŸ”„ Streak System - Build momentum with consecutive correct answers
  • šŸ’” Smart Hints - Get contextual help with accurate Tailwind examples
  • šŸŒ™ Beautiful Dark Theme - Easy on the eyes for those long learning sessions
  • šŸ“± Responsive Design - Play on any device, anywhere

šŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

# 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! šŸŽ‰

šŸ› ļø Tech Stack

  • ⚔ Svelte 5 - Reactive UI framework with the new runes system
  • šŸŽØ Tailwind CSS v4 - Latest utility-first CSS framework
  • 🌼 DaisyUI - Beautiful component library built on Tailwind
  • šŸ“ TypeScript - Type-safe development
  • šŸ”„ Vite - Lightning fast build tool
  • šŸŽ† Fireworks.js - Spectacular celebration animations
  • šŸŽÆ Lucide Icons - Beautiful, consistent iconography

šŸ“ Project Structure

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

šŸŽÆ Learning Path Recommendation

  1. Start with Visual Challenge šŸŽÆ - Get familiar with how classes look
  2. Try Speed Round ⚔ - Build up your recall speed
  3. Master Build Mode šŸ—ļø - Apply knowledge practically

šŸ¤ Contributing

We love contributions! Whether it's:

  • šŸ› Bug reports
  • šŸ’” Feature suggestions
  • šŸ“š New challenges and questions
  • šŸŽØ UI improvements
  • šŸ“– Documentation updates

šŸ“Š Game Stats

Track your progress with:

  • Total Score - Points earned across all games
  • Current Level - Automatically calculated from your score
  • Streak Counter - Consecutive correct answers
  • Best Streak - Your all-time streak record
  • Games Completed - Per-mode completion tracking

šŸŽØ Customization

TailSpin is built with customization in mind:

  • Add your own challenges in the /lib/data/ directory
  • Customize fireworks settings in the Fireworks.svelte component
  • Extend the game store with new features
  • Create new game modes by following existing patterns

šŸ“± Browser Support

TailSpin works great on:

  • āœ… Chrome/Edge 90+
  • āœ… Firefox 88+
  • āœ… Safari 14+
  • āœ… Mobile browsers

šŸ”„ Development Commands

# 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

🌟 What's Next?

Exciting features coming soon:

  • 🌐 API Integration - User-generated content and challenges
  • šŸ‘„ Community Features - Share challenges with friends
  • šŸ“ˆ Advanced Analytics - Detailed learning insights
  • šŸ† Leaderboards - Compete with other learners
  • šŸŽØ Theme Customization - Multiple color themes

šŸ’– Credits

Built with love by developers who believe learning should be fun! Special thanks to:

  • The Svelte team for the amazing framework
  • Tailwind Labs for the incredible CSS framework
  • The open-source community for inspiration and tools

šŸ“„ License

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! šŸŽ‰

Top categories

Loading Svelte Themes