figura-cli 0.12.1 → 0.13.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/dist/index.js +62 -61
- package/dist/mcp.js +44 -44
- package/package.json +1 -1
- package/skills/fig/SKILL.md +12 -6
- package/skills/figura-brand/reference/brand-format.md +15 -16
package/package.json
CHANGED
package/skills/fig/SKILL.md
CHANGED
|
@@ -74,13 +74,19 @@ greenfield.
|
|
|
74
74
|
fetched design system. **Follow that design system verbatim; never invent brand
|
|
75
75
|
values.** `figura_create_fig` returns a shareable `figura.so/f/<id>` link.
|
|
76
76
|
|
|
77
|
-
3. **
|
|
77
|
+
3. **Server render — the user's call, never yours.** Figura can also render the
|
|
78
|
+
fig server-side against the team brand: **`figura_generate_fig`** with a
|
|
78
79
|
natural-language brief (same `area` / `orientation` / `mode` / `title` /
|
|
79
|
-
`publish: true`) when
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
`publish: true`). Use it only when the **user explicitly asks** for a server
|
|
81
|
+
render ("let Figura render it", headless/CI flows with no local model) — or
|
|
82
|
+
when you've offered both paths and they picked this one. It runs as an
|
|
83
|
+
**async job the tool polls for you** — expect ~30–90s before the landed fig
|
|
84
|
+
returns; don't re-call while one is in flight. Unlike the default path, this
|
|
85
|
+
**spends the team's Figura credits** (a `403` means no active subscription).
|
|
86
|
+
Pass **`fidelity: 'high'`** to render on the better model (the default
|
|
87
|
+
`'fast'` is lighter — fine for rough states, weaker on brand). Never pick
|
|
88
|
+
this path on your own to save effort: it costs credits and hand-built figs
|
|
89
|
+
track the brand better.
|
|
84
90
|
|
|
85
91
|
4. **Review** the returned link, share it, move on.
|
|
86
92
|
|
|
@@ -42,40 +42,39 @@ CONVENTIONS (hard rules found in the repo)
|
|
|
42
42
|
- e.g. aspect ratios, chrome shape (pill/capsule), "never use <X>", dark-first, etc.
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
## Worked example (
|
|
45
|
+
## Worked example (fictional brand "Ledgerline" — abridged)
|
|
46
46
|
|
|
47
47
|
```
|
|
48
|
-
|
|
48
|
+
LEDGERLINE BRAND GROUND-TRUTH (locked):
|
|
49
49
|
|
|
50
|
-
WHAT
|
|
51
|
-
- A
|
|
52
|
-
-
|
|
50
|
+
WHAT LEDGERLINE IS
|
|
51
|
+
- A calm B2B invoicing web app. Dense tables, quiet confidence, desktop-first.
|
|
52
|
+
- Numbers first. Tagline: "Books, balanced."
|
|
53
53
|
|
|
54
54
|
COLORS (use ONLY these)
|
|
55
|
-
- #
|
|
56
|
-
- #
|
|
57
|
-
- #
|
|
58
|
-
- #
|
|
55
|
+
- #1F6F54 Fern — primary brand accent; primary actions; gradient start.
|
|
56
|
+
- #C9A227 Brass — secondary accent; highlights + paid states; gradient end.
|
|
57
|
+
- #F4F2EC Bone — light surfaces + foreground on dark (a warm off-white).
|
|
58
|
+
- #101312 Ink — near-black base background.
|
|
59
59
|
|
|
60
60
|
THE BRAND GRADIENT
|
|
61
|
-
- EXACTLY one: linear-gradient(90deg, #
|
|
61
|
+
- EXACTLY one: linear-gradient(90deg, #1F6F54, #C9A227). Wordmark/hero accents only.
|
|
62
62
|
|
|
63
63
|
TYPE
|
|
64
|
-
- Display:
|
|
64
|
+
- Display: Fraunces — stack 'Fraunces', Georgia, serif. Semibold at display size.
|
|
65
65
|
- Body: Inter — stack Inter, -apple-system, 'SF Pro Text', system-ui, sans-serif.
|
|
66
|
-
- Mono: JetBrains Mono —
|
|
66
|
+
- Mono: JetBrains Mono — amounts, invoice ids, dates.
|
|
67
67
|
- Scale: 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 48.
|
|
68
68
|
|
|
69
69
|
SPACING / RADIUS
|
|
70
70
|
- 4-based scale: 4 8 12 16 20 24 32 40 48 64. Radius: sm 4, md 8, lg 12, full 999.
|
|
71
71
|
|
|
72
72
|
ICON LANGUAGE
|
|
73
|
-
-
|
|
73
|
+
- Inline stroke SVG (receipt, arrow-right, check-circle). NEVER emoji.
|
|
74
74
|
|
|
75
75
|
VOICE
|
|
76
|
-
- "
|
|
77
|
-
- Terse, sideways, confident — never salesy.
|
|
76
|
+
- "Every cent, accounted." "Close the month, not your eyes." Terse, dry, precise — never salesy.
|
|
78
77
|
|
|
79
78
|
CONVENTIONS
|
|
80
|
-
-
|
|
79
|
+
- Tables are the hero. Chrome is squared (radius md, never pill). Light-first with a dark ledger mode.
|
|
81
80
|
```
|