Tech Stack
The frontend uses modern, production-ready technologies:- React 19 - Latest React with improved performance
- TypeScript - Full type safety
- Vite - Lightning-fast build tool
- React Router v7 - Client-side routing
- Tailwind CSS v4 - Utility-first styling
- shadcn/ui - Beautiful, accessible components
- Lucide React - Icon library
- Axios - HTTP client
- Sonner - Toast notifications
Project Structure
Creating Pages
Basic Page Structure
Pages in TailStack follow a consistent pattern. Here’s the Weather page structure:packages/core/source/frontend/src/pages/weather.tsx:21
Adding a New Page
Working with Components
Using shadcn/ui Components
The template includes pre-configured shadcn/ui components:- Card
- Input
- Badge
Available UI Components
The template includes these shadcn/ui components insrc/components/ui/:
button.tsx- Buttons with variantscard.tsx- Card containersinput.tsx- Form inputsbadge.tsx- Status badgesseparator.tsx- Horizontal/vertical dividerssheet.tsx- Slide-out panelsselect.tsx- Dropdown selectsscroll-area.tsx- Custom scrollbarscode-block.tsx- Code syntax highlighting
Creating Custom Components
Create reusable components insrc/components/:
Custom Hooks
Custom hooks encapsulate reusable logic. The weather hook demonstrates the pattern:packages/core/source/frontend/src/hooks/use-weather.ts
API Integration
The API layer provides type-safe communication with the backend:packages/core/source/frontend/src/api/weather.api.ts:1
Creating a New API Module
Styling with Tailwind CSS
Layout Patterns
Color System
Icons with Lucide React
The template uses Lucide React for icons:Toast Notifications
The template includes Sonner for toast notifications:App.tsx:31:
Development Commands
Next Steps
Backend Development
Create API routes and services for your frontend
Deployment
Deploy your frontend to production