← Cowork UI Kit
v0.5 · Showcase
Một bộ kit, một ngôn ngữ
Showcase tổng hợp 4 lớp Cowork UI Kit: primitives (tokens + atoms + icon), composites (molecules + organisms), data visualization (dashboard blocks), patterns (mobile + auth + states).
01
Primitives
Tokens, foundation colors, typography, spacing, atoms (button/input/badge…), icon set. Đây là building block nguyên tử.
⚙️
Design tokens JSON
371 token × 7 brand × 2 aesthetic — JSON flat + nested
📐
Foundation tokens
Spacing, typography, z-index, radius, border, motion (duration + easing)
🎨
Semantic tokens
Primary/accent/status colors composed từ HSL math, elevation system 6-level
🌿
7 brand presets
An Nhien · KHI · BetterBuy · Xanh · A-Kryphan · HaoGood · AI Tools
✦
SVG icon set
24 icon (action/nav/status/social) Lucide-style + sprite + Icon component
⚛
20 Atom components
Button · Input · Badge · Avatar · Checkbox · Switch · Tooltip · Popover…
02
Composites
Molecules + Organisms — components phức hợp xây trên atom. Có docs API + variants + states cho mỗi cái.
🧬
Part A · 10 Molecules
Accordion · Banner · Breadcrumb · Card · Dropdown · FormGroup · Pagination · SearchBar · Tabs · Toast — live demo + variants + states.
🦴
Part B · 10 Organisms + Archetypes + Docs
CmdPalette · DataTable · Drawer · FAQ · Hero · KPI · Modal · Navbar · Pricing · Sidebar — plus 6 archetypes + 20 per-component docs.
🔗
shadcn cross-ref
40-row mapping Cowork ↔ shadcn/ui ↔ Radix ↔ HeroUI v3. API diff notes.
📐
6 Archetype templates
A Dashboard · B Tool · C Landing · D Editorial · E Deck · F PWA — full page reference
🎨
Brand swap demo
7 brand × 7 demo type. Switch brand qua CSS var, không touch code.
⚛
React lib (40 component)
Production-ready TS, 0 hex literal, brand-aware via context, Tailwind preset bundled
03
Data visualization
KPI cards, charts, activity feeds, tables. Dùng cho archetype A (Dashboard) và B (Tool).
📊
KPI grid
4 KPI card với sparkline · delta % · period compare · tabular nums
📈
Chart card
SVG area chart 3-channel + period selector segmented + hover guide + legend
📋
Activity feed
Timeline 8-item grouped by date · avatar + action + status pill + relative time
🗃
Data table rows
Sticky header + 8 rows + checkbox + status pill + kebab menu + pager
🔍
Filter bar
Search + date pill + filter dropdowns + view toggle + export CTA
📑
KPICard component
React organism wrap KPI pattern · variants + a11y + responsive docs
04
Patterns
Mobile-first patterns, auth flows, empty/error states, layout blocks. Cho archetype C/D/E/F.
📱
Mobile layer (8 pattern)
Bottom sheet · OTP · swipe-action · pull-refresh · sticky CTA · segmented · week strip · tab bar
🔐
Auth flow (4 page)
Login · Signup · Password reset · OTP verify — social buttons + strength meter
🌱
Empty + Error states
No data · No search result · 404 · Loading skeleton — all 8 token-only
🚀
Landing blocks (7)
Hero × 3 variant · Features grid · Pricing 3-tier · Testimonials · FAQ + Footer
📝
Editorial blocks (6)
Article header · Pull quote · Author bio · Related posts · Series TOC · Newsletter
🎞
Deck slides (6)
Title · Big stat · Comparison · Timeline · Quote · Closing — 16:9 aspect
🛠
Tool blocks (5)
List+detail · Toolbar · Filter sidebar · Empty state · CRUD form
📲
Mobile app flows (4 brand)
An Nhien shop · KHI Pilates · HaoGood restaurant · A-Kryphan reader — 5 screen each
05
Design System rules
6 file docs ~14K từ — "luật game" của kit: interaction, usage, a11y, naming, governance, layout.
🎬
Interaction Rules
16 sections — duration/easing/hover/modal/drawer/scroll/drag
📏
Usage Guidelines
12 sections — CTA hierarchy · spacing rules · component decision tree
♿
A11Y Rules
14 sections WCAG 2.1 AA — contrast/keyboard/focus/SR/touch
🏷
Naming Convention
11 sections — component/CSS/token/file/folder naming + anti-pattern
⚖️
Governance
14 sections — versioning · changelog · approval flow · AI agent rules
📐
Layout System
15 sections — breakpoints · containers · 12-col grid · spacing · sticky