@torka/claude-workflows 0.1.0 → 0.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.
- package/README.md +34 -105
- package/examples/settings.local.example.json +0 -39
- package/install.js +3 -7
- package/package.json +2 -12
- package/skills/designer-founder/steps/step-01-context.md +171 -0
- package/skills/designer-founder/steps/step-01b-continue.md +75 -0
- package/skills/designer-founder/steps/step-02-scope.md +198 -0
- package/skills/designer-founder/steps/step-03-design.md +168 -0
- package/skills/designer-founder/steps/step-04-artifacts.md +292 -0
- package/skills/designer-founder/templates/component-strategy.md +35 -0
- package/skills/designer-founder/templates/design-brief.md +26 -0
- package/skills/designer-founder/templates/layouts.md +41 -0
- package/skills/designer-founder/templates/user-journeys.md +32 -0
- package/skills/designer-founder/tools/conversion.md +275 -0
- package/skills/designer-founder/tools/direct-mapping.md +222 -0
- package/skills/designer-founder/tools/magicpatterns.md +193 -0
- package/skills/designer-founder/tools/superdesign-assets/generate-theme.ts +193 -0
- package/skills/designer-founder/tools/superdesign-assets/superdesign-agent-instructions.md +375 -0
- package/skills/designer-founder/tools/superdesign.md +167 -0
- package/skills/designer-founder/tools/wireframe.md +181 -0
- package/skills/designer-founder/workflow.md +85 -0
- package/uninstall.js +40 -8
- package/hooks/auto_approve_safe.py +0 -261
- package/hooks/auto_approve_safe.rules.json +0 -134
- package/scripts/context-monitor.py +0 -175
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# {feature_name} Layouts
|
|
2
|
+
|
|
3
|
+
## Desktop (lg: 1024px+)
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{desktop_layout_ascii}
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Layout Notes
|
|
10
|
+
|
|
11
|
+
{desktop_notes}
|
|
12
|
+
|
|
13
|
+
## Tablet (md: 768px-1023px)
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
{tablet_layout_ascii}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Changes from Desktop
|
|
20
|
+
|
|
21
|
+
{tablet_changes}
|
|
22
|
+
|
|
23
|
+
## Mobile (sm: <768px)
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
{mobile_layout_ascii}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Changes from Tablet
|
|
30
|
+
|
|
31
|
+
{mobile_changes}
|
|
32
|
+
|
|
33
|
+
## Responsive Behavior Summary
|
|
34
|
+
|
|
35
|
+
| Element | Desktop | Tablet | Mobile |
|
|
36
|
+
|---------|---------|--------|--------|
|
|
37
|
+
{responsive_summary_rows}
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
*Generated by designer-founder workflow on {date}*
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# {feature_name} User Journeys
|
|
2
|
+
|
|
3
|
+
## Primary Flow: {journey_name}
|
|
4
|
+
|
|
5
|
+
**Trigger:** {journey_trigger}
|
|
6
|
+
**Goal:** {journey_goal}
|
|
7
|
+
|
|
8
|
+
### Flow Diagram
|
|
9
|
+
|
|
10
|
+
```mermaid
|
|
11
|
+
{mermaid_flowchart}
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Steps Detail
|
|
15
|
+
|
|
16
|
+
{journey_steps}
|
|
17
|
+
|
|
18
|
+
## Alternative Flows
|
|
19
|
+
|
|
20
|
+
{alternative_flows}
|
|
21
|
+
|
|
22
|
+
## Edge Cases
|
|
23
|
+
|
|
24
|
+
{edge_cases}
|
|
25
|
+
|
|
26
|
+
## Error States
|
|
27
|
+
|
|
28
|
+
{error_states}
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
*Generated by designer-founder workflow on {date}*
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# HTML to React Conversion Tool
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Convert SuperDesign HTML/CSS output to React components. Used when `design.tool_used` = `superdesign`.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Conversion Strategies
|
|
10
|
+
|
|
11
|
+
### Strategy C: Component Mapping (Recommended)
|
|
12
|
+
|
|
13
|
+
Analyze HTML structure and map to shadcn/ui components.
|
|
14
|
+
|
|
15
|
+
**Best for:** Standard UI patterns, minimal custom styling
|
|
16
|
+
|
|
17
|
+
### Strategy M: MagicPatterns Conversion
|
|
18
|
+
|
|
19
|
+
Use MagicPatterns AI to generate React code from the design.
|
|
20
|
+
|
|
21
|
+
**Best for:** Complex custom components, unique designs
|
|
22
|
+
|
|
23
|
+
### Strategy H: Hybrid
|
|
24
|
+
|
|
25
|
+
Map standard elements to shadcn, use MagicPatterns for custom components.
|
|
26
|
+
|
|
27
|
+
**Best for:** Mix of standard and custom elements
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Execution Flow
|
|
32
|
+
|
|
33
|
+
### 1. Present Conversion Options
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
CONVERSION STRATEGY
|
|
37
|
+
|
|
38
|
+
Your SuperDesign prototype is HTML/CSS. Let's convert to React components.
|
|
39
|
+
|
|
40
|
+
Prototype location: {design.output_location}
|
|
41
|
+
|
|
42
|
+
Choose your approach:
|
|
43
|
+
|
|
44
|
+
[C] Component Mapping (Recommended)
|
|
45
|
+
→ Analyze HTML and map to shadcn components
|
|
46
|
+
→ You install via CLI, minimal custom code
|
|
47
|
+
→ Best for: Standard UI patterns
|
|
48
|
+
|
|
49
|
+
[M] MagicPatterns Conversion {if available, else "(not configured)"}
|
|
50
|
+
→ Generate React code from the design
|
|
51
|
+
→ Direct component code output
|
|
52
|
+
→ Best for: Complex custom components
|
|
53
|
+
|
|
54
|
+
[H] Hybrid
|
|
55
|
+
→ Map standard elements to shadcn
|
|
56
|
+
→ Use MagicPatterns for custom components
|
|
57
|
+
→ Best for: Mix of standard and custom
|
|
58
|
+
|
|
59
|
+
Which approach? [C/M/H]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
### 2A. Component Mapping Execution
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
ANALYZING HTML STRUCTURE
|
|
68
|
+
|
|
69
|
+
Reading: {design.output_location}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Parse and identify:
|
|
73
|
+
- Semantic structure (header, main, footer, sections)
|
|
74
|
+
- Interactive elements (buttons, forms, links)
|
|
75
|
+
- Layout patterns (grid, flex, containers)
|
|
76
|
+
- Custom styled elements
|
|
77
|
+
|
|
78
|
+
Generate mapping:
|
|
79
|
+
```
|
|
80
|
+
HTML TO SHADCN MAPPING
|
|
81
|
+
|
|
82
|
+
┌─ Analysis ───────────────────────────────────────────────────┐
|
|
83
|
+
│ │
|
|
84
|
+
│ HTML Element shadcn Match Confidence │
|
|
85
|
+
│ ─────────────────────────────────────────────────────────── │
|
|
86
|
+
│ <header> - Layout only │
|
|
87
|
+
│ <nav> NavigationMenu High │
|
|
88
|
+
│ <button.primary> Button High │
|
|
89
|
+
│ <div.card> Card High │
|
|
90
|
+
│ <input> Input High │
|
|
91
|
+
│ <form> Form High │
|
|
92
|
+
│ <div.modal> Dialog High │
|
|
93
|
+
│ <div.custom-widget> CUSTOM Needs build │
|
|
94
|
+
│ │
|
|
95
|
+
└──────────────────────────────────────────────────────────────┘
|
|
96
|
+
|
|
97
|
+
SHADCN COMPONENTS IDENTIFIED
|
|
98
|
+
|
|
99
|
+
✓ Button - Primary and secondary actions
|
|
100
|
+
✓ Card - Content containers
|
|
101
|
+
✓ Input - Form fields
|
|
102
|
+
✓ Form - Form wrapper with validation
|
|
103
|
+
✓ Dialog - Modal overlays
|
|
104
|
+
{... more as identified}
|
|
105
|
+
|
|
106
|
+
CUSTOM ELEMENTS (No direct match)
|
|
107
|
+
|
|
108
|
+
1. {element_description}
|
|
109
|
+
- HTML: {relevant html snippet}
|
|
110
|
+
- Suggestion: {how to build with primitives}
|
|
111
|
+
|
|
112
|
+
2. {another_element}
|
|
113
|
+
...
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
If shadcn MCP available, verify components:
|
|
117
|
+
```
|
|
118
|
+
Verifying components in shadcn registry...
|
|
119
|
+
✓ All identified components available
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
For custom elements:
|
|
123
|
+
```
|
|
124
|
+
CUSTOM ELEMENT: {name}
|
|
125
|
+
|
|
126
|
+
No direct shadcn match. Options:
|
|
127
|
+
|
|
128
|
+
[B] Build from primitives
|
|
129
|
+
Compose using: {suggested_primitives}
|
|
130
|
+
|
|
131
|
+
[M] MagicPatterns {if available}
|
|
132
|
+
Generate React code for this specific component
|
|
133
|
+
|
|
134
|
+
[S] Skip
|
|
135
|
+
Handle during implementation
|
|
136
|
+
|
|
137
|
+
Choice? [B/M/S]
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### 2B. MagicPatterns Conversion Execution
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
MAGICPATTERNS CONVERSION
|
|
146
|
+
|
|
147
|
+
Preparing design reference...
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
If Playwright available, take screenshot of HTML file for reference.
|
|
151
|
+
|
|
152
|
+
Create design request:
|
|
153
|
+
```
|
|
154
|
+
Tool: create_design
|
|
155
|
+
Parameters:
|
|
156
|
+
prompt: "Convert this HTML/CSS design to React components:
|
|
157
|
+
|
|
158
|
+
Structure:
|
|
159
|
+
- {describe main sections from HTML}
|
|
160
|
+
- {describe key components}
|
|
161
|
+
|
|
162
|
+
Requirements:
|
|
163
|
+
- React with TypeScript
|
|
164
|
+
- Tailwind CSS (match existing styles)
|
|
165
|
+
- Break into reusable components
|
|
166
|
+
- Follow shadcn/ui patterns where applicable
|
|
167
|
+
- Responsive design preserved"
|
|
168
|
+
|
|
169
|
+
imageUrls: [{screenshot_url_if_available}]
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
After generation:
|
|
173
|
+
```
|
|
174
|
+
REACT CODE GENERATED
|
|
175
|
+
|
|
176
|
+
Design URL: {url}
|
|
177
|
+
|
|
178
|
+
Files available:
|
|
179
|
+
- {file_list}
|
|
180
|
+
|
|
181
|
+
[R] Read all code
|
|
182
|
+
[V] View specific file
|
|
183
|
+
[U] Update - Request changes
|
|
184
|
+
[C] Continue with generated code
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Extract code via `read_files` when user approves.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
### 2C. Hybrid Execution
|
|
192
|
+
|
|
193
|
+
Combine both approaches:
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
HYBRID CONVERSION
|
|
197
|
+
|
|
198
|
+
Step 1: Mapping standard elements to shadcn
|
|
199
|
+
Step 2: Using MagicPatterns for custom components
|
|
200
|
+
|
|
201
|
+
Starting analysis...
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
1. Run component mapping analysis
|
|
205
|
+
2. Identify elements that map cleanly to shadcn
|
|
206
|
+
3. Identify custom elements that need generation
|
|
207
|
+
4. For each custom element, use MagicPatterns:
|
|
208
|
+
```
|
|
209
|
+
Generating custom component: {name}
|
|
210
|
+
```
|
|
211
|
+
5. Combine into unified component list
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
### 3. Generate Installation Command
|
|
216
|
+
|
|
217
|
+
After any conversion strategy:
|
|
218
|
+
|
|
219
|
+
```
|
|
220
|
+
INSTALLATION READY
|
|
221
|
+
|
|
222
|
+
shadcn components to install:
|
|
223
|
+
```bash
|
|
224
|
+
npx shadcn@latest add {all_identified_components}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Custom components:
|
|
228
|
+
- {list custom components and their approach}
|
|
229
|
+
|
|
230
|
+
MagicPatterns code (if any):
|
|
231
|
+
- {component}: {url} - Extract via MCP
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## Output State
|
|
237
|
+
|
|
238
|
+
After conversion, update:
|
|
239
|
+
|
|
240
|
+
```yaml
|
|
241
|
+
conversion:
|
|
242
|
+
strategy: [mapping | magicpatterns | hybrid]
|
|
243
|
+
shadcn_components:
|
|
244
|
+
- name: "{component}"
|
|
245
|
+
usage: "{where used}"
|
|
246
|
+
custom_components:
|
|
247
|
+
- name: "{component}"
|
|
248
|
+
approach: "{build method}"
|
|
249
|
+
source: [primitives | magicpatterns]
|
|
250
|
+
code: "{if extracted}"
|
|
251
|
+
install_command: "npx shadcn@latest add {components}"
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## Mapping Reference
|
|
257
|
+
|
|
258
|
+
### Common HTML → shadcn Mappings
|
|
259
|
+
|
|
260
|
+
| HTML Pattern | shadcn Component |
|
|
261
|
+
|--------------|------------------|
|
|
262
|
+
| `<button>` | Button |
|
|
263
|
+
| `<input type="text">` | Input |
|
|
264
|
+
| `<input type="checkbox">` | Checkbox |
|
|
265
|
+
| `<select>` | Select |
|
|
266
|
+
| `<form>` | Form |
|
|
267
|
+
| `<div class="card">` | Card |
|
|
268
|
+
| `<div class="modal">` | Dialog |
|
|
269
|
+
| `<div class="dropdown">` | DropdownMenu |
|
|
270
|
+
| `<table>` | Table |
|
|
271
|
+
| `<div class="tabs">` | Tabs |
|
|
272
|
+
| `<div class="accordion">` | Accordion |
|
|
273
|
+
| `<span class="badge">` | Badge |
|
|
274
|
+
| `<div class="alert">` | Alert |
|
|
275
|
+
| `<div class="tooltip">` | Tooltip |
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# Direct Component Mapping Tool Execution
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Skip visual prototyping and map directly to shadcn/ui components. Best for standard UI patterns where the structure is clear.
|
|
6
|
+
|
|
7
|
+
**Output:** Component mapping document
|
|
8
|
+
**Requires:** shadcn MCP (optional, CLI fallback available)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Execution Flow
|
|
13
|
+
|
|
14
|
+
### 1. Understand Requirements
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
DIRECT MAPPING MODE
|
|
18
|
+
|
|
19
|
+
I'll map your requirements directly to shadcn/ui components.
|
|
20
|
+
|
|
21
|
+
Let me understand what you need:
|
|
22
|
+
|
|
23
|
+
1. What type of UI is this? (form, dashboard, list, modal, etc.)
|
|
24
|
+
2. What data/content will it display?
|
|
25
|
+
3. What actions can users take?
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### 2. Identify Component Needs
|
|
29
|
+
|
|
30
|
+
Based on requirements, identify needed components:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
COMPONENT ANALYSIS
|
|
34
|
+
|
|
35
|
+
For: {user_intent}
|
|
36
|
+
|
|
37
|
+
Identified UI patterns:
|
|
38
|
+
- {pattern_1}: Needs {component_type}
|
|
39
|
+
- {pattern_2}: Needs {component_type}
|
|
40
|
+
- ...
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 3. Search shadcn Registry (if MCP available)
|
|
44
|
+
|
|
45
|
+
If shadcn MCP is available:
|
|
46
|
+
```
|
|
47
|
+
Searching shadcn registry for matching components...
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Use MCP to search for each identified pattern.
|
|
51
|
+
|
|
52
|
+
If shadcn MCP not available:
|
|
53
|
+
```
|
|
54
|
+
shadcn MCP not configured. Using known component list.
|
|
55
|
+
|
|
56
|
+
Available shadcn/ui components:
|
|
57
|
+
- Layout: Card, Separator, Sheet, Tabs
|
|
58
|
+
- Forms: Form, Input, Label, Select, Checkbox, Radio, Switch, Textarea
|
|
59
|
+
- Feedback: Alert, Badge, Toast, Tooltip
|
|
60
|
+
- Navigation: Breadcrumb, Dropdown Menu, Navigation Menu
|
|
61
|
+
- Data: Table, Data Table
|
|
62
|
+
- Overlay: Dialog, Drawer, Popover, Alert Dialog
|
|
63
|
+
- Other: Accordion, Avatar, Button, Calendar, Command, Skeleton
|
|
64
|
+
|
|
65
|
+
Docs: https://ui.shadcn.com/docs/components
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 4. Generate Component Mapping
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
COMPONENT MAPPING
|
|
72
|
+
|
|
73
|
+
Page/Feature: {feature_name}
|
|
74
|
+
|
|
75
|
+
## Structure
|
|
76
|
+
|
|
77
|
+
┌─ {Section 1} ────────────────────────────────────────────────┐
|
|
78
|
+
│ │
|
|
79
|
+
│ UI Element → shadcn Component → Props/Notes │
|
|
80
|
+
│ ─────────────────────────────────────────────────────────── │
|
|
81
|
+
│ {element} → {component} → {notes} │
|
|
82
|
+
│ {element} → {component} → {notes} │
|
|
83
|
+
│ │
|
|
84
|
+
└──────────────────────────────────────────────────────────────┘
|
|
85
|
+
|
|
86
|
+
┌─ {Section 2} ────────────────────────────────────────────────┐
|
|
87
|
+
│ │
|
|
88
|
+
│ {element} → {component} → {notes} │
|
|
89
|
+
│ {element} → CUSTOM → {approach} │
|
|
90
|
+
│ │
|
|
91
|
+
└──────────────────────────────────────────────────────────────┘
|
|
92
|
+
|
|
93
|
+
## Installation
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npx shadcn@latest add {component1} {component2} {component3}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Custom Components Needed
|
|
100
|
+
|
|
101
|
+
{list any elements that don't map to shadcn}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 5. Handle Custom Components
|
|
105
|
+
|
|
106
|
+
For elements that don't map to shadcn:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
CUSTOM COMPONENT: {name}
|
|
110
|
+
|
|
111
|
+
This element doesn't have a direct shadcn match.
|
|
112
|
+
|
|
113
|
+
Options:
|
|
114
|
+
[B] Build from primitives - Compose using Radix + Tailwind
|
|
115
|
+
[M] MagicPatterns - Generate via AI {if available}
|
|
116
|
+
[R] Research - Search for existing solutions
|
|
117
|
+
[S] Skip - Handle during implementation
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### 6. Present Final Mapping
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
COMPONENT MAPPING COMPLETE
|
|
124
|
+
|
|
125
|
+
Summary:
|
|
126
|
+
- shadcn components: {count}
|
|
127
|
+
- Custom components: {count}
|
|
128
|
+
|
|
129
|
+
Installation command ready:
|
|
130
|
+
npx shadcn@latest add {all_components}
|
|
131
|
+
|
|
132
|
+
Options:
|
|
133
|
+
[A] Adjust - Modify component choices
|
|
134
|
+
[S] Search - Look up more components {if MCP available}
|
|
135
|
+
[C] Continue - Mapping is approved
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Output State
|
|
141
|
+
|
|
142
|
+
After completion, set:
|
|
143
|
+
|
|
144
|
+
```yaml
|
|
145
|
+
design:
|
|
146
|
+
tool_used: direct
|
|
147
|
+
output_location: "inline"
|
|
148
|
+
output_format: mapping
|
|
149
|
+
needs_conversion: false # Already mapped
|
|
150
|
+
components:
|
|
151
|
+
shadcn:
|
|
152
|
+
- name: "{component}"
|
|
153
|
+
usage: "{where used}"
|
|
154
|
+
props: "{key props}"
|
|
155
|
+
custom:
|
|
156
|
+
- name: "{component}"
|
|
157
|
+
approach: "{how to build}"
|
|
158
|
+
complexity: "{low/medium/high}"
|
|
159
|
+
install_command: "npx shadcn@latest add {components}"
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Common Patterns Quick Reference
|
|
165
|
+
|
|
166
|
+
### Form Pattern
|
|
167
|
+
```
|
|
168
|
+
Login/Signup Form:
|
|
169
|
+
- Card (container)
|
|
170
|
+
- Form (wrapper)
|
|
171
|
+
- Input + Label (fields)
|
|
172
|
+
- Button (submit)
|
|
173
|
+
- Separator (dividers)
|
|
174
|
+
|
|
175
|
+
Install: npx shadcn@latest add card form input label button separator
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Dashboard Pattern
|
|
179
|
+
```
|
|
180
|
+
Dashboard Page:
|
|
181
|
+
- Card (stat cards, content sections)
|
|
182
|
+
- Table or Data Table (lists)
|
|
183
|
+
- Badge (status indicators)
|
|
184
|
+
- Dropdown Menu (actions)
|
|
185
|
+
- Tabs (content organization)
|
|
186
|
+
|
|
187
|
+
Install: npx shadcn@latest add card table badge dropdown-menu tabs
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Settings Pattern
|
|
191
|
+
```
|
|
192
|
+
Settings Page:
|
|
193
|
+
- Tabs (sections)
|
|
194
|
+
- Form + Input + Label (fields)
|
|
195
|
+
- Switch (toggles)
|
|
196
|
+
- Select (dropdowns)
|
|
197
|
+
- Button (save actions)
|
|
198
|
+
- Alert (notifications)
|
|
199
|
+
|
|
200
|
+
Install: npx shadcn@latest add tabs form input label switch select button alert
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Modal Pattern
|
|
204
|
+
```
|
|
205
|
+
Modal/Dialog:
|
|
206
|
+
- Dialog (container)
|
|
207
|
+
- Form elements (content)
|
|
208
|
+
- Button (actions)
|
|
209
|
+
|
|
210
|
+
Install: npx shadcn@latest add dialog button
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### List Pattern
|
|
214
|
+
```
|
|
215
|
+
Item List:
|
|
216
|
+
- Card (item container)
|
|
217
|
+
- Badge (status)
|
|
218
|
+
- Dropdown Menu (actions)
|
|
219
|
+
- Skeleton (loading state)
|
|
220
|
+
|
|
221
|
+
Install: npx shadcn@latest add card badge dropdown-menu skeleton
|
|
222
|
+
```
|