{"id":790,"date":"2025-09-28T17:48:13","date_gmt":"2025-09-28T08:48:13","guid":{"rendered":"https:\/\/cg-method.com\/figma\/?p=790"},"modified":"2025-09-28T18:04:13","modified_gmt":"2025-09-28T09:04:13","slug":"figma-style-export-csv","status":"publish","type":"post","link":"https:\/\/cg-method.com\/figma\/figma-style-export-csv\/","title":{"rendered":"Figma\u2502\u30b9\u30bf\u30a4\u30eb\u60c5\u5831\u4e00\u89a7\u3092\u51fa\u529b\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3"},"content":{"rendered":"\n<p>Figma\u3067\u7528\u3044\u3089\u308c\u308b\u30b9\u30bf\u30a4\u30eb\uff08\u30c6\u30ad\u30b9\u30c8\u30b9\u30bf\u30a4\u30eb\uff65\u8272\u30b9\u30bf\u30a4\u30eb\uff09\u306fWeb\u30b5\u30a4\u30c8\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u59cb\u3081\u3001Unity\u306a\u3069\u69d8\u3005\u306a\u3068\u3053\u308d\u3067\u540c\u3058\u72b6\u614b\u306b\u306a\u308b\u3088\u3046\u306b\u53c2\u7167\u3057\u3066\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"697\" height=\"777\" src=\"https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_17h40_45.png\" alt=\"\" class=\"wp-image-791\" srcset=\"https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_17h40_45.png 697w, https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_17h40_45-269x300.png 269w\" sizes=\"(max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p>\u30c7\u30b6\u30a4\u30ca\u30fc\u304c\u8ffd\u52a0\uff65\u524a\u9664\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f\u6a21\u306b\u3088\u3063\u3066\u3001\u76f8\u5f53\u6570\u306b\u5897\u3048\u308b\u306e\u3067\u3001\u3044\u3064\u3067\u3082\u4e00\u89a7\u304c\u51fa\u529b\u3067\u9727\u6cd5\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u30c7\u30b6\u30a4\u30f3\u30d5\u30a1\u30a4\u30eb\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30b9\u30bf\u30a4\u30eb\u306e\u60c5\u5831\u4e00\u89a7\u3092csv\u51fa\u529b\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"137\" src=\"https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_18h03_42-1024x137.png\" alt=\"\" class=\"wp-image-799\" srcset=\"https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_18h03_42-1024x137.png 1024w, https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_18h03_42-300x40.png 300w, https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_18h03_42-768x103.png 768w, https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_18h03_42-1536x206.png 1536w, https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_18h03_42.png 1857w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"is-style-border_left\">\u51fa\u529b\u3057\u3066\u3044\u308b\u60c5\u5831\u4f8b<\/p>\n\n\n<div class=\"c-scrollHint\"><span>\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059 <i class=\"icon-more_arrow\"><\/i><\/span><\/div>\n<figure data-table-scrollable=\"both\" class=\"wp-block-table min_width20_\"><table style=\"--table-width:1200px;\"><thead><tr><th>\u30b9\u30bf\u30a4\u30eb\u7a2e\u5225<\/th><th>\u30b9\u30bf\u30a4\u30ebID<\/th><th>\u540d\u524d<\/th><th>\u8aac\u660e<\/th><th>\u30ad\u30fc<\/th><th>\u8272\u7a2e\u5225<\/th><th>HEX<\/th><th>RGBA<\/th><th>\u30d5\u30a9\u30f3\u30c8\u30d5\u30a1\u30df\u30ea\u30fc<\/th><th>\u30d5\u30a9\u30f3\u30c8\u30b9\u30bf\u30a4\u30eb<\/th><th>PostScript\u540d<\/th><th>\u6587\u5b57\u30b5\u30a4\u30ba<\/th><th>\u884c\u306e\u9ad8\u3055<\/th><th>\u5b57\u9593<\/th><th>\u6bb5\u843d\u9593\u9694<\/th><th>\u6bb5\u843d\u30a4\u30f3\u30c7\u30f3\u30c8<\/th><th>\u30c6\u30ad\u30b9\u30c8\u5909\u63db<\/th><th>\u88c5\u98fe<\/th><th>\u30a8\u30d5\u30a7\u30af\u30c8<\/th><th>\u30ec\u30a4\u30a2\u30a6\u30c8\u30b0\u30ea\u30c3\u30c9<\/th><\/tr><\/thead><tbody><tr><th>\u30ab\u30e9\u30fc<\/th><td>S:ceff4dcd93aa0cf7c489e30fba1d1882873cccf6,<\/td><td>beige<\/td><td><\/td><td>ceff4dcd93aa0cf7c489e30fba1d1882873cccf6<\/td><td>\u5358\u8272<\/td><td>#A59274<\/td><td>165, 146, 116, 1.000<\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><th>\u30c6\u30ad\u30b9\u30c8<\/th><td>S:7831a0b1d1ff42961bc89527a97872c5173981b6,<\/td><td>menu&amp;button<\/td><td><\/td><td>7831a0b1d1ff42961bc89527a97872c5173981b6<\/td><td><\/td><td><\/td><td><\/td><td>YuGothic<\/td><td>Bold<\/td><td><\/td><td>17<\/td><td>30px<\/td><td>0%<\/td><td>0<\/td><td>0<\/td><td>ORIGINAL<\/td><td>NONE<\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>function toCSV(rows) {\n  var header = [\n    &quot;\u30b9\u30bf\u30a4\u30eb\u7a2e\u5225&quot;,\n    &quot;\u30b9\u30bf\u30a4\u30ebID&quot;,\n    &quot;\u540d\u524d&quot;,\n    &quot;\u8aac\u660e&quot;,\n    &quot;\u30ad\u30fc&quot;,\n    &quot;\u8272\u7a2e\u5225&quot;,\n    &quot;HEX&quot;,\n    &quot;RGBA&quot;,\n    &quot;\u30d5\u30a9\u30f3\u30c8\u30d5\u30a1\u30df\u30ea\u30fc&quot;,\n    &quot;\u30d5\u30a9\u30f3\u30c8\u30b9\u30bf\u30a4\u30eb&quot;,\n    &quot;PostScript\u540d&quot;,\n    &quot;\u6587\u5b57\u30b5\u30a4\u30ba&quot;,\n    &quot;\u884c\u306e\u9ad8\u3055&quot;,\n    &quot;\u5b57\u9593&quot;,\n    &quot;\u6bb5\u843d\u9593\u9694&quot;,\n    &quot;\u6bb5\u843d\u30a4\u30f3\u30c7\u30f3\u30c8&quot;,\n    &quot;\u30c6\u30ad\u30b9\u30c8\u5909\u63db&quot;,\n    &quot;\u88c5\u98fe&quot;,\n    &quot;\u30a8\u30d5\u30a7\u30af\u30c8&quot;,\n    &quot;\u30ec\u30a4\u30a2\u30a6\u30c8\u30b0\u30ea\u30c3\u30c9&quot;,\n  ];<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Figma\u306e\u30b9\u30bf\u30a4\u30eb\u60c5\u5831\u4e00\u89a7\u3092\u51fa\u529b\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3<\/h2>\n\n\n\n<p>\u3084\u308a\u65b9\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u81ea\u4f5c\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u6210\u3057\u3066\u30ed\u30fc\u30ab\u30eb\u306e\u30a2\u30d7\u30ea\u3067\u8aad\u307f\u8fbc\u3080\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"223\" height=\"178\" src=\"https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_17h43_11.png\" alt=\"\" class=\"wp-image-794\"\/><\/figure>\n\n\n\n<p>\u4ee5\u4e0b\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"771\" height=\"403\" src=\"https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_17h42_49.png\" alt=\"\" class=\"wp-image-793\" srcset=\"https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_17h42_49.png 771w, https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_17h42_49-300x157.png 300w, https:\/\/cg-method.com\/figma\/wp-content\/uploads\/2025\/09\/2025-09-28_17h42_49-768x401.png 768w\" sizes=\"(max-width: 771px) 100vw, 771px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">manifest.json<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  &quot;name&quot;: &quot;\u30b9\u30bf\u30a4\u30ebCSV\u66f8\u304d\u51fa\u3057&quot;,\n  &quot;id&quot;: &quot;style-csv-exporter&quot;,\n  &quot;api&quot;: &quot;1.0.0&quot;,\n  &quot;editorType&quot;: [&quot;figma&quot;],\n  &quot;main&quot;: &quot;code.js&quot;,\n  &quot;ui&quot;: &quot;ui.html&quot;\n}\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">ui.html<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;ja&quot;&gt;\n  &lt;head&gt;\n    &lt;meta charset=&quot;UTF-8&quot; \/&gt;\n    &lt;style&gt;\n      body {\n        font: 12px\/1.4 -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto,\n          &quot;Hiragino Sans&quot;, &quot;Noto Sans JP&quot;, &quot;Yu Gothic UI&quot;, sans-serif;\n        padding: 12px;\n      }\n      .hint {\n        opacity: 0.8;\n      }\n    &lt;\/style&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;div&gt;\u30b9\u30bf\u30a4\u30eb\u60c5\u5831\u3092CSV\u306b\u5909\u63db\u4e2d\u2026\u81ea\u52d5\u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u59cb\u307e\u308a\u307e\u3059\u3002&lt;\/div&gt;\n    &lt;div class=&quot;hint&quot;&gt;\n      \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3092\u8a31\u53ef\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    &lt;\/div&gt;\n\n    &lt;script&gt;\n      \/\/ \u53d7\u4fe1\u3057\u305fCSV\u6587\u5b57\u5217\u3092Blob\u306b\u3057\u3066\u4fdd\u5b58\n      window.onmessage = (event) =&gt; {\n        const msg = event.data?.pluginMessage;\n        if (!msg) return;\n\n        if (msg.type === &quot;save-csv&quot;) {\n          const filename = msg.filename || &quot;styles.csv&quot;;\n          const content = msg.content || &quot;&quot;;\n          const blob = new Blob([content], { type: &quot;text\/csv;charset=utf-8&quot; });\n          const url = URL.createObjectURL(blob);\n\n          const a = document.createElement(&quot;a&quot;);\n          a.href = url;\n          a.download = filename;\n          document.body.appendChild(a);\n          a.click();\n          a.remove();\n\n          \/\/ URL\u958b\u653e & Figma\u5074\u3078\u5b8c\u4e86\u901a\u77e5\n          setTimeout(() =&gt; URL.revokeObjectURL(url), 1000);\n          parent.postMessage({ pluginMessage: { type: &quot;done&quot; } }, &quot;*&quot;);\n        }\n      };\n    &lt;\/script&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre><\/div>\n\n\n\n<p>\u3042\u3068\u306fcode.js\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-codoc-codoc-block\"><div class=\"codoc-entries\" data-without-body=\"1\" id=\"codoc-entry-5pIHmd6OZQ\"  data-support-button-text=\"\u30b5\u30dd\u30fc\u30c8\u3059\u308b\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Figma\u3067\u7528\u3044\u3089\u308c\u308b\u30b9\u30bf\u30a4\u30eb\uff08\u30c6\u30ad\u30b9\u30c8\u30b9\u30bf\u30a4\u30eb\uff65\u8272\u30b9\u30bf\u30a4\u30eb\uff09\u306fWeb\u30b5\u30a4\u30c8\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u59cb\u3081\u3001Unity\u306a\u3069\u69d8\u3005\u306a\u3068\u3053\u308d\u3067\u540c\u3058\u72b6\u614b\u306b\u306a\u308b\u3088\u3046\u306b\u53c2\u7167\u3057\u3066\u4f7f\u308f\u308c\u307e\u3059\u3002 \u30c7\u30b6\u30a4\u30ca\u30fc\u304c\u8ffd\u52a0\uff65\u524a\u9664\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":795,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[145],"tags":[144],"class_list":["post-790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-figma-tools","tag-144"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/posts\/790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/comments?post=790"}],"version-history":[{"count":3,"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/posts\/790\/revisions"}],"predecessor-version":[{"id":800,"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/posts\/790\/revisions\/800"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/media\/795"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/media?parent=790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/categories?post=790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/figma\/wp-json\/wp\/v2\/tags?post=790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}