Understand Lightswind UI Source-First Architecture
MasterLightswind UI follows a Source-First Architecture. Unlike traditional libraries that act as runtime dependencies, Lightswind delivers raw .tsx files directly into your project. This ensures you own the code, can customize it freely, and avoid vendor lock-in.
Project Structure
When initialized, your project will follow this pattern:
Your Project
├── src/
│ ├── components/
│ │ └── lightswind/ ← All component source code lives here (you own it)
│ │ ├── button.tsx
│ │ ├── globe.tsx
│ │ └── ...
│ └── lib/
│ └── utils.ts ← Shared utilities (cn, throttle, etc.)
├── tailwind.config.ts ← Lightswind plugin auto-registered here
└── lightswind.config.json ← CLI config (paths, theme, license)Core Principles
- Source over Runtime: Components are raw
.tsxfiles, not compiled blobs. - User Ownership: Components are yours to edit and extend forever.
- Zero Dependency Bloat: Only install dependencies for the components you actually use.
- Smart Automation: The CLI handles all configuration and dependency resolution.