Style Guide
Trang này hiển thị tất cả components và styles của DIA DEMY.
Typography
Headlines
Heading 1 - 56px Medium
Heading 2 - 33px Medium
Heading 3 - 24px Medium
Heading 4 - 20px Medium
Heading 5 - 18px Medium
Heading 6 - 16px Medium
Content (Averta)
Large - 18px Regular
Large Medium - 18px Medium
Body - 16px Regular
Body Semibold - 16px Semibold
Small - 15px Regular
Small Medium - 15px Medium (Form Labels)
Actions (JetBrains Mono)
Action - 13px Semibold UPPERCASE (Button, Tab, Nav)
Input - 15px Medium
Text Emphasis
Học lập trình hiệu quả hơn
DIA DEMY cung cấp hơn 500 khóa học chất lượng cao
Colors
Brand
Primary
Primary Hover
Semantic States
Error
Success
Warning
Info
Text Hierarchy
Text High
Text Medium
Text Low
Buttons
Main Variants
State Variants
Light Variants
Sizes
Border Radius
States
Full Width
Encrypt Effect
Badges & Tags
Badge Variants - Theo màu cơ bản
Mỗi màu có nhiều variant names (semantic + domain-specific) cho code dễ đọc.
primaryinstructor
successstudentoffline
warninghybrid
dangeradmin
infoonline
default
Badge Types
Normal Type (mặc định)
Normal BadgeSuccessInfo
Status Type (với dot pulsing)
ActivePendingInactiveProcessing
Badge Sizes
Small (sm) - 22pxMedium (md) - 32px
Usage Examples
Role badges:
AdminInstructorStudent
Learning modes:
OnlineOfflineHybrid
Status with dot:
Active UserBanned
Tags - Interactive Chips
Tag component với 3 visual states: Default → Hover → Active. Logic do parent quyết định.
3 Visual States
Usage Patterns
Pattern 1: Toggle Filter (click to toggle on/off)
Pattern 2: Cloud Tags (click to remove)
Navigation
Nav Items
Spacing Scale
$space-0
$space-1
$space-2
$space-3
$space-4
$space-5
$space-6
$space-8
$space-10
$space-12
Border Radius
$radius-none
$radius-sm
$radius-md
$radius-lg
$radius-xl
$radius-full