Overview
The Learnille Design System is built upon React, Chakra UI, custom CSS design tokens, and Motion animations. It ensures visual consistency across all frontends (admin, instructor, consultant, student).
🎨 Theme Tokens & Design Variables
🧩 Core Component Specifications
1. Primary Action Button (<Button />)
- Visual Style: Gradient fill (
linear-gradient(135deg, #6366f1 0%, #4f46e5 100%)) with subtle glow on hover. - States:
Default,Hover(scale 1.02 + shadow glow),Active(scale 0.98),Loading(animated spinner + text disabled),Disabled(opacity 0.4).
2. Glassmorphism Card (<GlassCard />)
- Background:
var(--bg-glass)withbackdrop-filter: blur(12px). - Border:
var(--border-glass)with smooth rounded corners (border-radius: 16px). - Hover Effect: Slight translate Y lift (
-4px) and glowing border accent.
3. Consultation Slot Picker (<SlotPicker />)
- Display: Grid of available time badges with timezone indicator.
- Selection: Highlighted active slot in
var(--color-primary)with radio select aria checkmark.
4. Course Video Player Shell (<CoursePlayer />)
- Layout: 16:9 main video viewport with collapsible right-side sidebar for curriculum list, section accordions, and real-time InstantDB comments.