figura-cli 0.6.0 → 0.7.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 +25 -7
- package/dist/index.js +89 -71
- package/dist/mcp.js +10 -10
- package/package.json +1 -1
- package/skills/figura-brand/SKILL.md +91 -0
- package/skills/figura-brand/reference/brand-format.md +81 -0
package/README.md
CHANGED
|
@@ -59,19 +59,37 @@ Now every `figura`/`fig`/`brand` command (and `figura mcp` — so Claude Code to
|
|
|
59
59
|
resolves the team from the nearest `.figura/config.json`. The file holds a live
|
|
60
60
|
token, so add `.figura/` to the repo's `.gitignore`.
|
|
61
61
|
|
|
62
|
-
##
|
|
62
|
+
## Brand — set it from your repo, no UI
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
Figs render against your team's **brand profile**. Set it from the CLI instead of
|
|
65
|
+
the figura.so UI:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
|
|
68
|
+
# pipe a tokens block (colors+roles, type, spacing, voice) — exactly what /fig reads
|
|
69
|
+
cat tokens.txt | figura brand set --name "Acme" --description "a SaaS analytics dashboard" --tokens -
|
|
70
|
+
figura brand # verify (shows name / product / token size)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Omitted fields keep their saved value — a name-only `brand set` won't wipe your
|
|
74
|
+
tokens. Best of all, let Claude Code build the whole profile from your codebase —
|
|
75
|
+
see the **figura-brand** skill below ("introduce my repo to Figura").
|
|
76
|
+
|
|
77
|
+
## Claude Code skills
|
|
78
|
+
|
|
79
|
+
Install the bundled skills so Claude Code can work with Figura from any project:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
figura skill install # → ~/.claude/skills (global)
|
|
69
83
|
figura skill install --project # → ./.claude/skills (this repo only)
|
|
70
84
|
```
|
|
71
85
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
86
|
+
This installs both:
|
|
87
|
+
- **`/fig`** (figura-fig) — generate on-brand, device-framed HTML figs in your team.
|
|
88
|
+
- **figura-brand** — "introduce my repo to Figura": Claude scans the repo's design
|
|
89
|
+
system (tokens, brand docs, app name) and sets your team's brand profile for you.
|
|
90
|
+
|
|
91
|
+
Re-run after upgrading `figura-cli` to update them — the skills are bundled with
|
|
92
|
+
the CLI, so they stay in lockstep.
|
|
75
93
|
|
|
76
94
|
## MCP server
|
|
77
95
|
|