better-design 0.38.0 → 0.40.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 +7 -0
- package/dist/index.js +684 -158
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,6 +40,13 @@ starts a relay on `http://localhost:4397` that only the plugin talks to, so
|
|
|
40
40
|
the file never leaves your machine. This tool is local only: the hosted
|
|
41
41
|
connectors cannot reach your Figma.
|
|
42
42
|
|
|
43
|
+
`read-figma-kit` reads the kit in the open file through the same plugin:
|
|
44
|
+
the variables in every mode, the text and effect styles, and the components
|
|
45
|
+
with their variant options. It writes them to one JSON file. You confirm the
|
|
46
|
+
read in the plugin panel. Pass that file to `create-figma-prototype` as
|
|
47
|
+
`kitPath` in model mode, and the prototype uses the kit's colours, font and
|
|
48
|
+
radius.
|
|
49
|
+
|
|
43
50
|
A frame from a file that was not built from a Better Design library has no
|
|
44
51
|
components to map, so pass `mode: "model"` and a catalog `system`. The plugin
|
|
45
52
|
asks you to confirm the frame. Your agent is the model: the tool writes a
|