Gatsby Source Figma screenshot

Gatsby Source Figma

Author Avatar Theme by Fabe
Updated: 30 Aug 2020
126 Stars

Gatsby plugin for using Figma documents as a data source.

Categories

Overview

The gatsby-source-figma is a Gatsby plugin designed for utilizing Figma documents as a data source for web development projects. This plugin enables users to easily access Figma files, images, projects, and more, making it a valuable tool for developers looking to integrate design elements from Figma into their websites.

Features

  • Data Source: Utilize Figma documents as a source of data for your Gatsby projects.
  • Access Tokens: Securely manage access tokens required for fetching data from Figma.
  • File Querying: Query files, images, and projects easily using GraphQL filters.
  • GraphiQL Integration: Use the built-in GraphiQL tool to visualize and query Figma data.

Installation

To install the gatsby-source-figma plugin, follow these steps:

  1. Install the package via npm:
    npm install gatsby-source-figma
    
  2. Create an access token within your Figma settings.
  3. Set the required parameters such as fileId, nodeIds, projectId, and accessToken inside your gatsby-config.js file according to the type of data you are querying.

Summary

The gatsby-source-figma plugin is a useful tool for Gatsby developers who want to streamline the process of incorporating Figma design elements into their web projects. By providing easy access to Figma documents, images, and projects, along with robust querying capabilities through GraphQL filters, this plugin enhances the development workflow and enables seamless integration between design and development stages.