@su-record/vibe 2.8.1 → 2.8.2
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 +56 -0
- package/commands/vibe.figma.md +1520 -0
- package/dist/cli/commands/figma.d.ts +35 -0
- package/dist/cli/commands/figma.d.ts.map +1 -0
- package/dist/cli/commands/figma.js +426 -0
- package/dist/cli/commands/figma.js.map +1 -0
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +1 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/info.d.ts.map +1 -1
- package/dist/cli/commands/info.js +6 -0
- package/dist/cli/commands/info.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +39 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/types.d.ts +22 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -278,6 +278,55 @@ Additional: `llm-orchestrate.js`, `codex-review-gate.js`, `codex-detect.js`, `se
|
|
|
278
278
|
|
|
279
279
|
---
|
|
280
280
|
|
|
281
|
+
## Figma → Code Pipeline
|
|
282
|
+
|
|
283
|
+
Design-to-code with responsive support and design skill integration.
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
# Single design
|
|
287
|
+
vibe figma setup <token>
|
|
288
|
+
vibe figma extract "https://figma.com/design/ABC/Project?node-id=1-2"
|
|
289
|
+
# then in Claude Code:
|
|
290
|
+
/vibe.figma "url"
|
|
291
|
+
|
|
292
|
+
# Responsive (mobile + desktop)
|
|
293
|
+
vibe figma extract "mobile-url" "desktop-url"
|
|
294
|
+
/vibe.figma "mobile-url" "desktop-url"
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### What It Does
|
|
298
|
+
|
|
299
|
+
| Phase | Description |
|
|
300
|
+
|-------|-------------|
|
|
301
|
+
| **Extract** | Figma API → `layers.json` + `frame.png` + `assets/` (background images) |
|
|
302
|
+
| **Analyze** | Image-first analysis → viewport diff table (responsive mode) |
|
|
303
|
+
| **Generate** | Stack-aware code (React/Vue/Svelte/SCSS/Tailwind) + design tokens |
|
|
304
|
+
| **Integrate** | Maps to project's existing design system (MASTER.md, design-context.json) |
|
|
305
|
+
|
|
306
|
+
### Responsive Design
|
|
307
|
+
|
|
308
|
+
Auto-detected when 2+ URLs provided. Generates fluid scaling with `clamp()` for typography/spacing, `@media` only for layout structure changes.
|
|
309
|
+
|
|
310
|
+
| Config | Default | Description |
|
|
311
|
+
|--------|---------|-------------|
|
|
312
|
+
| `breakpoint` | 1024px | PC↔Mobile boundary |
|
|
313
|
+
| `pcTarget` | 1920px | PC main target resolution |
|
|
314
|
+
| `mobileMinimum` | 360px | Minimum mobile viewport |
|
|
315
|
+
| `designPc` | 2560px | Figma PC artboard (2x) |
|
|
316
|
+
| `designMobile` | 720px | Figma Mobile artboard (2x) |
|
|
317
|
+
|
|
318
|
+
Customize: `vibe figma breakpoints --set breakpoint=768`
|
|
319
|
+
|
|
320
|
+
### Design Skill Pipeline
|
|
321
|
+
|
|
322
|
+
After code generation, chain design skills for quality assurance:
|
|
323
|
+
|
|
324
|
+
```
|
|
325
|
+
/vibe.figma → /design-normalize → /design-audit → /design-polish
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
281
330
|
## Quality Gates
|
|
282
331
|
|
|
283
332
|
| Guard | Mechanism |
|
|
@@ -308,6 +357,7 @@ Additional: `llm-orchestrate.js`, `codex-review-gate.js`, `codex-detect.js`, `se
|
|
|
308
357
|
| `/vibe.reason "problem"` | Systematic reasoning framework |
|
|
309
358
|
| `/vibe.analyze` | Project analysis |
|
|
310
359
|
| `/vibe.event` | Event automation |
|
|
360
|
+
| `/vibe.figma "url"` | Figma design → production code (responsive, multi-URL) |
|
|
311
361
|
| `/vibe.utils` | Utilities (E2E, diagrams, UI, session restore) |
|
|
312
362
|
|
|
313
363
|
---
|
|
@@ -343,6 +393,12 @@ vibe claude key|status|logout
|
|
|
343
393
|
# External Skills
|
|
344
394
|
vibe skills add <owner/repo> # Install skills from skills.sh
|
|
345
395
|
|
|
396
|
+
# Figma
|
|
397
|
+
vibe figma setup <token> # Set Figma access token
|
|
398
|
+
vibe figma extract <url> [url...] # Extract layers + images from Figma
|
|
399
|
+
vibe figma breakpoints # Show/set responsive breakpoints
|
|
400
|
+
vibe figma status|logout
|
|
401
|
+
|
|
346
402
|
# Channels
|
|
347
403
|
vibe telegram setup|chat|status
|
|
348
404
|
vibe slack setup|channel|status
|