How garitma/aura-design-system works
Main Components
A. Core Packages Layer:
• System Package (@aura-design/system)
• Components Library
• Hooks
• Utils
• Types
• Styled System Package
• Tokens
• Foundations
• Layout Systems
• CLI Package
B. Applications Layer:
• Documentation Website (Next.js)
• Ladle (Component Stories)
• API Services
C. Integration Layer:
• Build Systems
• Package Management
• CI/CD Workflows
┌─────────────────────────────────────────────────────────┐
• Applications Layer │
• ┌─────────────┐ ┌──────────┐ ┌──────────────┐ │
• Website │ │ Ladle │ │ Preview │ │
• (Next.js) │ │ (Stories)│ │ System │ │
• ┘ └──────────┘ └──────────────┘ │
• ┤
• Core System Layer │
• ┌─────────────┐ ┌──────────┐ ┌──────────────┐ │
• System │ │ Styled │ │ CLI │ │
• Package │ │ System │ │ Package │ │
• ┘ └──────────┘ └──────────────┘ │
• ┤
• Infrastructure Layer │
• ┌─────────────┐ ┌──────────┐ ┌──────────────┐ │
• GitHub │ │ Cloud │ │ Build │ │
• Actions │ │ Run │ │ Systems │ │
• ┘ └──────────┘ └──────────────┘ │
• ┘
Important Details
a. System Package Components:
• Relationship between components, hooks, and utilities
• Design token system (13px aura unit)
• Type system connections
b. Website Architecture:
• Prismic CMS integration
• API routes
• Preview system
• Slice components
c. Build and Deploy Flow:
• GitHub Actions workflows
• Cloud Run deployments
• Package distribution system
Implementation Notes
• Maintain consistent spacing and alignment
• Version/package relationships
• Document external dependencies
Key Relationships to Highlight
• Package dependencies between system components
• Build and deployment workflows
• Documentation generation flow
• Component library distribution system