figma-react-tailwindcss-example Tailwind Templates

Figma React Tailwindcss Example

An example project for the Figma plugin with React.js, React Router, and Tailwind CSS.

Figma Plugin React Tailwindcss Example

An example project for the Figma plugin with React.js, React Router, and Tailwind CSS.

Refer to this post for more information.

A screenshot of this plugin.

Development Guide

Pre-requisites

Build the plugin

Clone this project, and then...

To install dependencies:

$ yarn install

To build the plugin:

$ yarn run build

This will generate a dist/ directory containing the JavaScript bundles for the plugin.

To watch for code changes and rebuild the plugin automatically:

$ yarn run watch

To upgrade packages:

npm install -g syncyarnlock
yarn upgrade --latest
syncyarnlock -s -k

Install the plugin

  1. In the Figma desktop app, open a Figma document.
  2. Search for and run Import plugin from manifest… via the Quick Actions search bar.
    • Location of the action: Menu bar > Plugins > Development > Import plugin from manifest…
  3. Select the manifest.json file.

Debugging

Use console.log statements to inspect values in your code.

To open the developer console, search for and run Open Console via the Quick Actions search bar.

  • Location of the action: Menu bar > Plugins > Development > Show/Hide console

See also

Official docs and code samples from Figma:

I referenced the project's configuration and structure below.

Figma plugin boilerplates with React.js, TailwindCSS

Routing on Figma plugin.

Related to Tailwind CSS

Problems

Top categories

Loading Svelte Themes