@dannote/figma-use 0.5.6 → 0.5.7

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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.5.7] - 2026-01-18
11
+
12
+ ### Fixed
13
+
14
+ - Font family and style now shown in `node tree` output
15
+
10
16
  ## [0.5.6] - 2026-01-18
11
17
 
12
18
  ### Added
package/dist/cli/index.js CHANGED
@@ -977,8 +977,9 @@ function formatNode(node, indent = "") {
977
977
  details.push(`radius: ${node.cornerRadius}px`);
978
978
  }
979
979
  if (node.fontSize) {
980
- const weight = node.fontWeight || "";
981
- details.push(`font: ${node.fontSize}px ${weight}`.trim());
980
+ const family = node.fontFamily || "";
981
+ const style = node.fontStyle || "";
982
+ details.push(`font: ${node.fontSize}px ${family} ${style}`.trim());
982
983
  }
983
984
  if (node.characters && !name) {
984
985
  details.push(`text: "${node.characters}"`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dannote/figma-use",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Control Figma from the command line. Full read/write access for AI agents.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1438,6 +1438,10 @@
1438
1438
  const textNode = node;
1439
1439
  base.characters = textNode.characters;
1440
1440
  if (typeof textNode.fontSize === "number") base.fontSize = textNode.fontSize;
1441
+ if (typeof textNode.fontName === "object") {
1442
+ base.fontFamily = textNode.fontName.family;
1443
+ base.fontStyle = textNode.fontName.style;
1444
+ }
1441
1445
  }
1442
1446
  if ("children" in node) {
1443
1447
  base.childCount = node.children.length;