How unovue/shadcn-vue works
Main Components of the System
The system architecture should be divided into these key components:
a. Core Components Layer:
• Component Registry (src/lib/registry)
• UI Components (src/lib/registry/default/ui)
• Theme System (src/lib/registry/themes)
• Style System (src/lib/registry/styles)
b. CLI Tool Layer:
• Command Handlers (packages/cli/src/commands)
• Transformers (packages/cli/src/utils/transformers)
• Configuration Manager (packages/cli/src/utils)
c. Documentation Layer:
• VitePress Documentation (apps/www)
• Component Examples (apps/www/src/examples)
• API Documentation (apps/www/src/content)
Relationships and Data Flow
[User Project] <---> [CLI Tool] <---> [Component Registry]
• [Theme System] <--|---> [UI Components]
• [Style System] <---|
[Documentation Site] ---> [Component Examples]
• > [API Documentation]
• > [Theme Customization]
Component Details
Specific elements:
• Component Registry: Central repository of all UI components
• CLI Tool: Manages component installation and configuration
• Documentation: Interactive examples and API references
Integration Points
Key integration areas:
• CLI to Component Registry connection
• Theme System to Component application
• Documentation to Component Examples flow
Technical Stack Indicators
Technology dependencies:
• Vue.js
• VitePress
• Radix Vue
• TailwindCSS
Documentation Layer (Examples & Docs)
• Component relationships
• Data flow directions
• Integration points
Keep the abstraction level focused on the architectural components while maintaining enough detail to understand the system's structure and component interactions.
• How components are organized and related
• How the theming system integrates with components
• How the CLI tool facilitates component usage
• How documentation and examples support the system
Remember to emphasize the modular nature of the system and how it enables developers to copy and customize components for their own use.