WePlanner Design System
v1.0.0 — Production-ready tokens, components & patterns
1. Design Principles
The foundational guidelines that shape every decision in the WePlanner design system.
2. Color System
Token-based color system with Orange as the primary brand color. Supports light and dark modes.
Brand Orange Scale
50
100
200
300
400
500
600
700
800
900
Semantic Colors
Primary
--primary
Secondary
--secondary
Accent
--accent
Destructive
--destructive
Success
--success
Warning
--warning
Info
--info
Surface & Background
Background
--background
Card
--card
Popover
--popover
Muted
--muted
Text Colors
Foreground
--foreground
Card FG
--card-foreground
Muted FG
--muted-foreground
Primary FG
--primary-foreground
Border & Ring
Border
--border
Input
--input
Ring
--ring
3. Typography
Font: Inter. A complete type scale from Display to Overline with defined sizes, weights, and line heights.
Display Heading
Heading One
Heading Two
Heading Three
Heading Four
Heading Five
Heading Six
Body text large for paragraphs and descriptions.
Body text for general content and UI elements.
Small body text for secondary content.
Caption text for labels and metadata
Overline Text
Tailwind Classes Reference
| Token | Tailwind Classes |
|---|---|
| Display | text-[3.5rem] font-bold tracking-tight leading-[1.1] |
| H1 | text-4xl font-bold tracking-tight leading-[1.2] |
| H2 | text-3xl font-semibold tracking-tight leading-[1.3] |
| H3 | text-2xl font-semibold leading-[1.4] |
| H4 | text-xl font-semibold leading-[1.4] |
| H5 | text-lg font-medium leading-[1.5] |
| H6 | text-base font-medium leading-[1.5] |
| Body LG | text-lg leading-[1.6] |
| Body | text-base leading-[1.6] |
| Body SM | text-sm leading-[1.5] |
| Caption | text-xs font-medium leading-[1.4] |
| Overline | text-xs font-semibold uppercase tracking-widest leading-[1.4] |
4. Design Tokens
Foundational values that drive consistency: spacing, radii, shadows, layering, motion, and opacity.
Spacing Scale
Border Radius
Shadow Scale
Z-Index
| Token | Value | Usage |
|---|---|---|
| z-0 | 0 | Base |
| z-10 | 10 | Dropdown |
| z-20 | 20 | Sticky |
| z-30 | 30 | Modal backdrop |
| z-40 | 40 | Modal |
| z-50 | 50 | Toast |
Motion & Duration
Opacity Scale
5. Layout System
Grid, breakpoints, containers, and spacing rules for consistent layouts.
Breakpoints
| Name | Min Width | Typical Device |
|---|---|---|
| sm | 640px | Mobile landscape |
| md | 768px | Tablet |
| lg | 1024px | Laptop |
| xl | 1280px | Desktop |
| 2xl | 1536px | Large desktop |
Container Widths
12-Column Grid
Common Layout Patterns
Sidebar + Content
Centered Content
Spacing Rules
| Context | Tailwind |
|---|---|
| Page padding | px-4 sm:px-6 lg:px-8 |
| Section gap | space-y-8 or space-y-12 |
| Card grid gap | gap-4 or gap-6 |
| Card padding | p-4 sm:p-6 |
6. Component Library
Core UI components built with shadcn/ui and Radix UI primitives. All components support theming and are accessible by default.
6.1 Buttons
Variants
Sizes
Loading State
6.2 Inputs
6.3 Badges
6.4 Cards
6.5 Navigation
Breadcrumb
6.6 Data Display
| Task | Status | Assignee | Due Date |
|---|---|---|---|
| Redesign landing page | In Progress | ML | Mar 15 |
| Write blog post | To Do | AS | Mar 18 |
| Social media campaign | Review | JD | Mar 20 |
| Email newsletter | Completed | ML | Mar 10 |
6.7 Feedback
6.8 Avatars
Avatar Group (overlapping)
6.9 Task Management Components
Task Status Badges
Color Info Pills — clique no card para ver o modal animado
Task Card (clicável — abre popup com animação)
Create comprehensive wireframe
Discuss with UX Designer to develop the concept into comprehensive and effective wireframe
6.10 Dashboard KPI Widgets
7. Interaction States
Visual reference for every interactive state a component can have.
Button States
Input States
This field is required.
Loading Skeleton
8. Accessibility Guidelines
WCAG 2.1 AA compliance standards and implementation guide.
Color Contrast
Focus Management
- All interactive elements have visible focus rings (ring-2 ring-ring ring-offset-2)
- Tab order follows logical reading flow (top to bottom, left to right)
- Focus trap in modals and dialogs (handled by Radix UI primitives)
- Focus returns to trigger element when modal closes
Keyboard Navigation
| Key | Action |
|---|---|
| Tab | Move focus forward |
| Shift + Tab | Move focus backward |
| Enter / Space | Activate focused element |
| Escape | Close modal, dropdown, or popover |
| Arrow Keys | Navigate within tabs, menus, selects |
| Home / End | Jump to first/last item |
ARIA Best Practices
- Use semantic HTML:
<button>,<nav>,<main> -
aria-labelfor icon-only buttons -
aria-describedbyfor form validation messages -
role="status"for toast notifications - Radix UI primitives provide built-in ARIA — avoid overriding them
Screen Reader Considerations
- Meaningful alt text for all images and icons
- Use
sr-onlyclass for visually hidden but accessible labels - Live regions (
aria-live) for dynamic content updates
9. Responsive Rules
Desktop-first responsive strategy with graceful degradation to mobile.
Breakpoint Behavior Matrix
| Device | Range | Sidebar | Grid | Navigation | Modals |
|---|---|---|---|---|---|
| Desktop | >=1280px | Fixed sidebar | 3-4 columns | Topbar + Sidebar | Centered overlay |
| Laptop | >=1024px | Collapsible | 2-3 columns | Topbar + Collapsible sidebar | Centered overlay |
| Tablet | >=768px | Hidden / Drawer | 2 columns | Hamburger menu | Centered overlay |
| Mobile | <768px | Hidden | 1 column | Hamburger + Bottom nav | Full-screen sheet |
Typography Scaling
| Token | Desktop | Mobile |
|---|---|---|
| Display | 3.5rem (56px) | 2.5rem (40px) |
| H1 | 2.25rem (36px) | 1.75rem (28px) |
| H2 | 1.875rem (30px) | 1.5rem (24px) |
| Body | 1rem (16px) | 1rem (16px) |
Spacing Adjustments
| Context | Desktop | Mobile |
|---|---|---|
| Page padding | px-8 | px-4 |
| Section spacing | space-y-12 | space-y-8 |
| Card padding | p-6 | p-4 |
| Grid gap | gap-6 | gap-4 |
Component Responsive Behavior
- Data Tables: Horizontal scroll on mobile, or transform into stacked card layout
- KPI Grid:
grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 - Sidebar: Fixed 256px on desktop, sheet/drawer overlay on mobile
- Dialogs: Centered overlay on desktop, full-screen bottom sheet on mobile
- Task Cards: Full-width stack on mobile, grid on desktop
10. UI Patterns
Example layouts for the main platform views, demonstrating how components compose together.
10.1 Dashboard Pattern
10.2 Task Management (Kanban)
10.3 Client View
Welcome back,
Acme Corp
Recent Tasks