Upgrade to Pro — share decks privately, control downloads, hide ads and more …

エンジニアにオススメの Figma 活用

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
seya
February 09, 2023

エンジニアにオススメの Figma 活用

seya

February 09, 2023

Transcript

64 slides
  1. もちろんエンジニアも重要なターゲット Spotify Figma with Dylan Field Listen to this episode

    from PodRocket - A web development podcast from LogRocket on Spotify. CEO and Co-Founder of Fi... 表示 Figmaのユーザの 1/3はエンジニアだよ
  2. Figma API でできること API 経由  指定したファイルの大体のものを取得でき1  チームに紐づいたプロジェクトやファイルを取得でき1 

    チームのコンポーネントやスタイルとかも取得できる あとはe  Webhook でコメントとかライブラリのアップデートの通知とかもでき1  OAuth もあるので Figma ログインのアプリとかも作れる
  3. 具体例: スタイルをコードにする API の操作には Figma-js (非公式の Figma API クライアント)が便利! https://github.com/jemgold/figma-js#readme

    GitHub - jemgold/figma-js: Little wrapper (+ types) for... Little wrapper (+ types) for the Figma API. Contribute to jemgold/figma-js... github.com
  4. 開発の始め方 0 Figma 上から始め! 0 GitHub 上で boilerplate 探 0

    create-fimga-plugin https://speakerdeck.com/mottox2/create-figma-plugin
  5. 生成する上での課題 ƒ 初期で未実装のコンポーネントがたくさんある時にはワークしやすい| ƒ アプデの時に使い勝手が悪H ƒ コードだけで実装したものと競合(タグを変えたり、イベントハンドラを くっつけたり)すm ƒ コンポーネント化したものはコンポーネントとして表示してほしH

    ƒ アイコンなどのアセット系の扱H ƒ デザイナーがしっかりデザインを作っていないとワークしなH ƒ Auto Layout 必要なところに全部使ったg ƒ レイヤー名をきちんとしたg ƒ コンポーネント設計をコードと同期したg ƒ Figma で表現できないもの(Table や Grid のレイアウトなど)は生成できなH ƒ etc...
  6. Figma Plugin でできること Figma ファイル上から実行でき& E API と比べると Figma を実際に使いながらの作業に有効

    書き込みもできる(API は read-only) UI 側のスレッドは割となんでもできる
 (外部にリクエスト飛ばしたり)
  7. 事例: Widget から GitHub Actions 実行 W やりたかったこR W アイコンが追加された時にデザイナーにポチッと押してもら

    うだけでコードにも反映される Widget から GitHub Actions 起動 GitHub Actions から Figma API でアイコンの画像とってくる
 スクリプトを実行してコミット or PR 作成
  8. 開発の始め方 Figma 上からも始められるが...
 Figma の Developer Adovacate が作っている CLI を使った方がい

    い。Vite と React が搭載されていて開発し始めやすい。 https://github.com/figma/create-widget GitHub - figma/create-widget: Create new FigJam widgets... Create new FigJam widgets with a single command. Contribute to figma... github.com

More Decks by seya

Other Decks in Design