@reinvented/design 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/README.md +1 -1
  2. package/SKILL.md +214 -0
  3. package/package.json +4 -3
  4. package/skills/apps/analytics.md +103 -0
  5. package/skills/apps/booking-scheduling.md +97 -0
  6. package/skills/apps/content-management.md +52 -0
  7. package/skills/apps/crm.md +80 -0
  8. package/skills/apps/e-commerce.md +109 -0
  9. package/skills/apps/education.md +79 -0
  10. package/skills/apps/finance.md +68 -0
  11. package/skills/apps/health-fitness.md +72 -0
  12. package/skills/apps/marketplace.md +99 -0
  13. package/skills/apps/messaging.md +84 -0
  14. package/skills/apps/portfolio-personal.md +90 -0
  15. package/skills/apps/project-management.md +95 -0
  16. package/skills/apps/saas-dashboard.md +104 -0
  17. package/skills/apps/social-platform.md +50 -0
  18. package/skills/blocks/auth.md +106 -0
  19. package/skills/blocks/communication.md +98 -0
  20. package/skills/blocks/content.md +107 -0
  21. package/skills/blocks/data-management.md +109 -0
  22. package/skills/blocks/data-viz.md +92 -0
  23. package/skills/blocks/ecommerce.md +126 -0
  24. package/skills/blocks/feedback.md +97 -0
  25. package/skills/blocks/filtering.md +127 -0
  26. package/skills/blocks/marketing.md +136 -0
  27. package/skills/blocks/media.md +102 -0
  28. package/skills/blocks/navigation.md +136 -0
  29. package/skills/blocks/onboarding.md +75 -0
  30. package/skills/blocks/profiles.md +131 -0
  31. package/skills/blocks/scheduling.md +117 -0
  32. package/skills/blocks/settings.md +102 -0
  33. package/skills/components/advanced-components.md +142 -0
  34. package/skills/components/avatar.md +92 -0
  35. package/skills/components/badge.md +105 -0
  36. package/skills/components/button.md +87 -0
  37. package/skills/components/card.md +144 -0
  38. package/skills/components/chart.md +88 -0
  39. package/skills/components/dialog.md +109 -0
  40. package/skills/components/dropdown-menu.md +117 -0
  41. package/skills/components/extended-components.md +187 -0
  42. package/skills/components/feedback.md +165 -0
  43. package/skills/components/form.md +112 -0
  44. package/skills/components/input.md +107 -0
  45. package/skills/components/map.md +53 -0
  46. package/skills/components/navigation.md +73 -0
  47. package/skills/components/overlay.md +77 -0
  48. package/skills/components/page-header.md +51 -0
  49. package/skills/components/select.md +175 -0
  50. package/skills/components/table.md +102 -0
  51. package/skills/components/tabs.md +105 -0
  52. package/skills/components/utilities.md +138 -0
  53. package/skills/devices/desktop.md +43 -0
  54. package/skills/devices/mobile.md +77 -0
  55. package/skills/foundation/design-principles.md +77 -0
  56. package/skills/foundation/design-tokens.md +121 -0
  57. package/skills/foundation/mockup-generation.md +118 -0
  58. package/skills/foundation/rules.md +54 -0
  59. package/skills/foundation/tailwind-usage.md +204 -0
  60. package/skills/layouts/dashboard.md +71 -0
  61. package/skills/layouts/full-page-form.md +75 -0
  62. package/skills/layouts/list-detail.md +70 -0
  63. package/skills/layouts/marketing.md +70 -0
  64. package/skills/layouts/responsive.md +67 -0
  65. package/skills/layouts/settings-page.md +106 -0
  66. package/skills/layouts/sidebar.md +73 -0
  67. package/skills/layouts/topbar.md +68 -0
  68. package/skills/patterns/auth.md +131 -0
  69. package/skills/patterns/content-display.md +164 -0
  70. package/skills/patterns/dashboards.md +104 -0
  71. package/skills/patterns/data-tables.md +113 -0
  72. package/skills/patterns/empty-states.md +71 -0
  73. package/skills/patterns/error-states.md +73 -0
  74. package/skills/patterns/forms.md +136 -0
  75. package/skills/patterns/loading-states.md +92 -0
  76. package/skills/patterns/navigation.md +113 -0
  77. package/skills/patterns/notifications.md +91 -0
  78. package/skills/patterns/onboarding.md +42 -0
  79. package/skills/patterns/search.md +55 -0
  80. package/skills/patterns/settings.md +132 -0
  81. package/skills/patterns/user-profiles.md +67 -0
  82. package/skills/personas/business-operator.md +114 -0
  83. package/skills/personas/consumer-casual.md +60 -0
  84. package/skills/personas/consumer-power-user.md +109 -0
  85. package/skills/personas/creative-professional.md +109 -0
  86. package/skills/personas/enterprise-admin.md +134 -0
  87. package/skills/visual/color-usage.md +62 -0
  88. package/skills/visual/dark-mode.md +50 -0
  89. package/skills/visual/polish-techniques.md +101 -0
  90. package/skills/visual/spacing-composition.md +69 -0
  91. package/skills/visual/transitions-animations.md +66 -0
  92. package/skills/visual/typography-hierarchy.md +66 -0
  93. package/src/components/blocks/auth/auth-card/AuthCard.tsx +2 -2
  94. package/src/components/blocks/auth/social-login/SocialLoginGroup.tsx +2 -2
  95. package/src/components/blocks/auth/two-factor/TwoFactorForm.tsx +4 -4
  96. package/src/components/blocks/communication/activity-item/ActivityItem.tsx +1 -1
  97. package/src/components/blocks/communication/activity-item/ActivityItemAvatar.tsx +2 -2
  98. package/src/components/blocks/communication/activity-item/ActivityItemContent.tsx +1 -1
  99. package/src/components/blocks/communication/chat-bubble/ChatBubble.tsx +1 -1
  100. package/src/components/blocks/communication/chat-bubble/ChatBubbleAvatar.tsx +2 -2
  101. package/src/components/blocks/communication/chat-bubble/ChatBubbleMessage.tsx +1 -1
  102. package/src/components/blocks/communication/chat-bubble/ChatBubbleTimestamp.tsx +1 -1
  103. package/src/components/blocks/content/article-header/ArticleHeader.tsx +3 -3
  104. package/src/components/blocks/content/author-card/AuthorCard.tsx +4 -4
  105. package/src/components/blocks/content/rich-text/RichTextContent.tsx +1 -1
  106. package/src/components/blocks/data-management/kanban/KanbanBoard.tsx +1 -1
  107. package/src/components/blocks/data-management/kanban/KanbanCard.tsx +4 -4
  108. package/src/components/blocks/data-management/kanban/KanbanColumn.tsx +3 -3
  109. package/src/components/blocks/data-management/tree-view/TreeItem.tsx +2 -2
  110. package/src/components/blocks/data-management/tree-view/TreeView.tsx +1 -1
  111. package/src/components/blocks/data-viz/financial-ticker/FinancialTicker.tsx +1 -1
  112. package/src/components/blocks/data-viz/kpi-card/KpiCard.tsx +2 -2
  113. package/src/components/blocks/data-viz/stat-grid/StatGrid.tsx +1 -1
  114. package/src/components/blocks/ecommerce/pricing-tier/PricingFeatureList.tsx +2 -2
  115. package/src/components/blocks/ecommerce/pricing-tier/PricingHeader.tsx +2 -2
  116. package/src/components/blocks/ecommerce/pricing-tier/PricingTier.tsx +2 -2
  117. package/src/components/blocks/ecommerce/product-card/ProductCard.tsx +2 -2
  118. package/src/components/blocks/ecommerce/product-card/ProductCardContent.tsx +2 -2
  119. package/src/components/blocks/ecommerce/product-card/ProductCardImage.tsx +1 -1
  120. package/src/components/blocks/ecommerce/product-card/ProductCardPrice.tsx +1 -1
  121. package/src/components/blocks/ecommerce/rating-summary/RatingStars.tsx +1 -1
  122. package/src/components/blocks/feedback/empty-state/EmptyState.tsx +2 -2
  123. package/src/components/blocks/feedback/error-state/ErrorState.tsx +2 -2
  124. package/src/components/blocks/feedback/not-found/NotFoundState.tsx +2 -2
  125. package/src/components/blocks/filtering/faceted-sidebar/FacetedGroup.tsx +2 -2
  126. package/src/components/blocks/filtering/faceted-sidebar/FacetedSidebar.tsx +2 -2
  127. package/src/components/blocks/filtering/filter-bar/FilterBar.tsx +4 -4
  128. package/src/components/blocks/filtering/search-result/SearchResultItem.tsx +2 -2
  129. package/src/components/blocks/marketing/cta-block/CtaBlock.tsx +2 -2
  130. package/src/components/blocks/marketing/feature-grid/FeatureGrid.tsx +1 -1
  131. package/src/components/blocks/marketing/hero-section/HeroSection.tsx +3 -3
  132. package/src/components/blocks/marketing/testimonial-card/TestimonialCard.tsx +3 -3
  133. package/src/components/blocks/media/call-controls/CallControlButton.tsx +3 -3
  134. package/src/components/blocks/media/call-controls/CallControls.tsx +1 -1
  135. package/src/components/blocks/media/media-player/MediaPlayer.tsx +1 -1
  136. package/src/components/blocks/media/media-player/MediaPlayerControls.tsx +1 -1
  137. package/src/components/blocks/media/media-player/MediaPlayerScrubber.tsx +1 -1
  138. package/src/components/blocks/media/media-player/MediaPlayerVideo.tsx +1 -1
  139. package/src/components/blocks/navigation/app-sidebar/AppSidebar.tsx +2 -2
  140. package/src/components/blocks/navigation/app-sidebar/NavItem.tsx +1 -1
  141. package/src/components/blocks/navigation/context-switcher/ContextSwitcher.tsx +3 -3
  142. package/src/components/blocks/navigation/top-navbar/TopNavbar.tsx +2 -2
  143. package/src/components/blocks/onboarding/onboarding-welcome/OnboardingWelcome.tsx +3 -3
  144. package/src/components/blocks/onboarding/step-wizard/StepWizard.tsx +1 -1
  145. package/src/components/blocks/profiles/connection-list/ConnectionItem.tsx +3 -3
  146. package/src/components/blocks/profiles/connection-list/ConnectionList.tsx +1 -1
  147. package/src/components/blocks/profiles/profile-header/ProfileHeader.tsx +3 -3
  148. package/src/components/blocks/profiles/profile-stats/ProfileStats.tsx +1 -1
  149. package/src/components/blocks/scheduling/booking-slot/BookingSlot.tsx +1 -1
  150. package/src/components/blocks/scheduling/event-card/EventCard.tsx +3 -3
  151. package/src/components/blocks/scheduling/timeline-row/TimelineRow.tsx +2 -2
  152. package/src/components/blocks/settings/billing-usage/BillingUsage.tsx +3 -3
  153. package/src/components/blocks/settings/integration-card/IntegrationCard.tsx +5 -5
  154. package/src/components/blocks/settings/settings-section/SettingsSection.tsx +1 -1
  155. package/src/components/ui/accordion.tsx +1 -1
  156. package/src/components/ui/alert-dialog.tsx +2 -2
  157. package/src/components/ui/alert.tsx +1 -1
  158. package/src/components/ui/avatar.tsx +1 -1
  159. package/src/components/ui/badge.tsx +7 -1
  160. package/src/components/ui/breadcrumb.tsx +1 -1
  161. package/src/components/ui/button.tsx +8 -1
  162. package/src/components/ui/calendar.tsx +2 -2
  163. package/src/components/ui/card.tsx +1 -1
  164. package/src/components/ui/carousel.tsx +2 -2
  165. package/src/components/ui/chart.tsx +1 -1
  166. package/src/components/ui/checkbox.tsx +1 -1
  167. package/src/components/ui/command.tsx +2 -2
  168. package/src/components/ui/component-placeholder.tsx +1 -1
  169. package/src/components/ui/context-menu.tsx +1 -1
  170. package/src/components/ui/dialog.tsx +1 -1
  171. package/src/components/ui/drawer.tsx +1 -1
  172. package/src/components/ui/dropdown-menu.tsx +1 -1
  173. package/src/components/ui/form.tsx +2 -2
  174. package/src/components/ui/hover-card.tsx +1 -1
  175. package/src/components/ui/input-otp.tsx +1 -1
  176. package/src/components/ui/input.tsx +1 -1
  177. package/src/components/ui/label.tsx +1 -1
  178. package/src/components/ui/menubar.tsx +1 -1
  179. package/src/components/ui/navigation-menu.tsx +1 -1
  180. package/src/components/ui/pagination.tsx +2 -2
  181. package/src/components/ui/popover.tsx +1 -1
  182. package/src/components/ui/progress.tsx +1 -1
  183. package/src/components/ui/radio-group.tsx +1 -1
  184. package/src/components/ui/resizable.tsx +1 -1
  185. package/src/components/ui/scroll-area.tsx +1 -1
  186. package/src/components/ui/select.tsx +1 -1
  187. package/src/components/ui/separator.tsx +1 -1
  188. package/src/components/ui/sheet.tsx +1 -1
  189. package/src/components/ui/skeleton.tsx +1 -1
  190. package/src/components/ui/slider.tsx +1 -1
  191. package/src/components/ui/sonner.tsx +13 -6
  192. package/src/components/ui/switch.tsx +1 -1
  193. package/src/components/ui/table.tsx +1 -1
  194. package/src/components/ui/tabs.tsx +1 -1
  195. package/src/components/ui/textarea.tsx +1 -1
  196. package/src/components/ui/toast.tsx +1 -1
  197. package/src/components/ui/toaster.tsx +1 -1
  198. package/src/components/ui/toggle-group.tsx +2 -2
  199. package/src/components/ui/toggle.tsx +1 -1
  200. package/src/components/ui/tooltip.tsx +1 -1
  201. package/src/hooks/use-toast.ts +1 -1
  202. package/src/styles/tokens.css +1 -1
  203. package/DESIGN_GUIDE.md +0 -148
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
 
3
- import { cn } from "@/lib/utils"
3
+ import { cn } from '../../lib/utils'
4
4
 
5
5
  const Textarea = React.forwardRef<
6
6
  HTMLTextAreaElement,
@@ -3,7 +3,7 @@ import * as ToastPrimitives from "@radix-ui/react-toast"
3
3
  import { cva, type VariantProps } from "class-variance-authority"
4
4
  import { X } from "lucide-react"
5
5
 
6
- import { cn } from "@/lib/utils"
6
+ import { cn } from '../../lib/utils'
7
7
 
8
8
  const ToastProvider = ToastPrimitives.Provider
9
9
 
@@ -6,7 +6,7 @@ import {
6
6
  ToastProvider,
7
7
  ToastTitle,
8
8
  ToastViewport,
9
- } from "@/components/ui/toast"
9
+ } from './toast"
10
10
 
11
11
  export function Toaster() {
12
12
  const { toasts } = useToast()
@@ -4,8 +4,8 @@ import * as React from "react"
4
4
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
5
5
  import { type VariantProps } from "class-variance-authority"
6
6
 
7
- import { cn } from "@/lib/utils"
8
- import { toggleVariants } from "@/components/ui/toggle"
7
+ import { cn } from '../../lib/utils'
8
+ import { toggleVariants } from './toggle"
9
9
 
10
10
  const ToggleGroupContext = React.createContext<
11
11
  VariantProps<typeof toggleVariants>
@@ -4,7 +4,7 @@ import * as React from "react"
4
4
  import * as TogglePrimitive from "@radix-ui/react-toggle"
5
5
  import { cva, type VariantProps } from "class-variance-authority"
6
6
 
7
- import { cn } from "@/lib/utils"
7
+ import { cn } from '../../lib/utils'
8
8
 
9
9
  const toggleVariants = cva(
10
10
  "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as TooltipPrimitive from "@radix-ui/react-tooltip"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const TooltipProvider = TooltipPrimitive.Provider
7
7
 
@@ -6,7 +6,7 @@ import * as React from "react"
6
6
  import type {
7
7
  ToastActionElement,
8
8
  ToastProps,
9
- } from "@/components/ui/toast"
9
+ } from '../components/ui/toast"
10
10
 
11
11
  const TOAST_LIMIT = 1
12
12
  const TOAST_REMOVE_DELAY = 1000000
@@ -106,7 +106,7 @@
106
106
  .dark {
107
107
  --background: 240 10% 3.9%;
108
108
  --foreground: 0 0% 98%;
109
- --card: 240 10% 3.9%;
109
+ --card: 240 10% 6.5%; /* elevated surface — distinctly lighter than bg */
110
110
  --card-foreground: 0 0% 98%;
111
111
  --popover: 240 10% 3.9%;
112
112
  --popover-foreground: 0 0% 98%;
package/DESIGN_GUIDE.md DELETED
@@ -1,148 +0,0 @@
1
- # Reinvented Design Guide
2
-
3
- ## Overview
4
- The Reinvented design system uses **Shadcn-vue** components with custom **Radix-vue** primitives,
5
- **Tailwind CSS** for styling, and **Lucide** icons. All UI surfaces share this consistent foundation.
6
-
7
- ---
8
-
9
- ## Typography
10
-
11
- | Token | Size | Weight | Use |
12
- |---------------|--------|----------|------------------------|
13
- | `text-xs` | 12px | 400 | Timestamps, captions |
14
- | `text-sm` | 14px | 400–500 | Body text, labels |
15
- | `text-base` | 16px | 400 | Default body |
16
- | `text-lg` | 18px | 600 | Section headings |
17
- | `text-xl` | 20px | 600 | Page subtitles |
18
- | `text-2xl` | 24px | 700 | Page titles |
19
- | `text-3xl` | 30px | 700 | Hero text |
20
-
21
- **Font:** Inter (loaded via Google Fonts).
22
- **Line height:** Use `leading-tight` (1.25) for headings, `leading-normal` (1.5) for body.
23
-
24
- ---
25
-
26
- ## Colors
27
-
28
- Our brand color is **purple** (`hsl(252 100% 63%)`).
29
-
30
- | Token | Light | Dark | Use |
31
- |-----------------|-------------------|-------------------|------------------------|
32
- | `primary` | Purple 63% | Purple 69% | Buttons, links, focus |
33
- | `secondary` | Zinc 96% | Zinc 16% | Secondary actions |
34
- | `muted` | Zinc 96% | Zinc 16% | Backgrounds, disabled |
35
- | `destructive` | Red 60% | Red 31% | Delete, errors |
36
- | `success` | Green 36% | Green 45% | Confirmations |
37
- | `warning` | Amber 50% | Amber 55% | Alerts |
38
- | `info` | Blue 60% | Blue 65% | Information |
39
-
40
- **Usage rules:**
41
- - Never hardcode colors — always use `hsl(var(--token))`
42
- - Use `text-muted-foreground` for secondary text (not arbitrary gray)
43
- - Apply `bg-card` for card surfaces, `bg-background` for page backgrounds
44
-
45
- ---
46
-
47
- ## Spacing
48
-
49
- Based on **4px increments**. Use Tailwind utilities:
50
-
51
- | Class | Value | Use |
52
- |----------|-------|----------------------------|
53
- | `gap-1` | 4px | Icon-to-text gap |
54
- | `gap-2` | 8px | Between small elements |
55
- | `gap-3` | 12px | Between form fields |
56
- | `gap-4` | 16px | Section spacing |
57
- | `gap-6` | 24px | Between major sections |
58
- | `p-4` | 16px | Standard padding |
59
- | `p-6` | 24px | Card padding |
60
- | `px-4` | 16px | Page horizontal padding |
61
-
62
- **Rules:**
63
- - Always use spacing tokens, never arbitrary values
64
- - Vertical rhythm: Use `gap-4` or `gap-6` for stacking sections
65
- - Horizontal rhythm: Use `gap-2` or `gap-3` for inline elements
66
-
67
- ---
68
-
69
- ## Icons
70
-
71
- - **Library:** Lucide Vue Next (`lucide-vue-next`)
72
- - **NO emojis** anywhere in the UI
73
- - Default icon size: `16px` (`w-4 h-4`)
74
- - In buttons/nav: `w-4 h-4`
75
- - In empty states: `w-12 h-12` with `text-muted-foreground`
76
- - Always use `stroke-width="2"` (Lucide default)
77
-
78
- ---
79
-
80
- ## Shadows & Borders
81
-
82
- | Token | CSS | Use |
83
- |-------------|-------------------------------|----------------------------|
84
- | `shadow-sm` | Subtle 1px shadow | Cards, buttons |
85
- | `shadow-md` | Medium depth | Dropdowns, popovers |
86
- | `shadow-lg` | Strong depth | Modals, dialogs |
87
- | `rounded-md`| `calc(var(--radius) - 2px)` | Inputs, small elements |
88
- | `rounded-lg`| `var(--radius)` (10px) | Cards, containers |
89
-
90
- ---
91
-
92
- ## Component Guidelines
93
-
94
- ### When to use existing components
95
- Always check `@reinvented/design` first:
96
- ```ts
97
- import { Button, Card, Input, Avatar, Badge } from '@reinvented/design'
98
- ```
99
-
100
- ### Using Radix primitives
101
- For Dialog, DropdownMenu, Tabs, Tooltip, PopoverSelect, etc.:
102
- ```ts
103
- import { Dialog, DialogTrigger, DialogContent, DialogTitle } from '@reinvented/design'
104
- ```
105
- Style them using `cn()` and Tailwind:
106
- ```vue
107
- <DialogContent :class="cn('fixed inset-0 z-50 flex items-center justify-center')">
108
- ```
109
-
110
- ### Building new components
111
- 1. Create in `packages/ds/src/components/ui/<name>/`
112
- 2. Use `cn()` for class merging
113
- 3. Accept `class` prop for customization
114
- 4. Use design tokens (never hardcode colors)
115
- 5. Export from barrel (`src/index.ts`)
116
-
117
- ---
118
-
119
- ## Page Patterns
120
-
121
- Import from `@reinvented/design/patterns/*`:
122
-
123
- | Pattern | Use |
124
- |--------------|----------------------------------------------|
125
- | `ListView` | Lists with search, filters, items |
126
- | `DetailView` | Detail pages with hero, tabs, content |
127
- | `FormView` | Forms with validation and submit |
128
- | `EmptyState` | Centered empty state with icon and CTA |
129
-
130
- ---
131
-
132
- ## Dark Mode
133
-
134
- - Controlled via `.dark` class on `<html>` or `<body>`
135
- - All tokens automatically switch in dark mode
136
- - Test both modes when building surfaces
137
- - Use `dark:` prefix sparingly — prefer CSS variable-driven theming
138
-
139
- ---
140
-
141
- ## Do NOT
142
-
143
- - Use `alert()`, `confirm()`, or `prompt()` — use Dialog/AlertDialog
144
- - Use emojis — use Lucide icons
145
- - Hardcode colors — use CSS variables
146
- - Use arbitrary Tailwind values (e.g., `text-[#333]`) — use tokens
147
- - Create split-screen layouts — use single-column responsive design
148
- - Use `@apply` excessively — prefer utility classes in templates