Direct people to the pages in your project that matter the most.
This Table of contents plugin for Figma generates a table of contents page and frame for your project. This is intended to:
- Help non-designers in your organization find the important pages in your file.
- Provide other designers context with links to important related documents.
- Help make all of your projects look consistent.
This plugin can be adjusted to fit your company's brand and can then be used as an internal plugin for your org.
Although this plugin is open source, for most users you'll want to install from the Figma plugin community page. View Plugin Page
This file is also published on the Figma community pages if you'd rather just duplicate the design.
- Run
yarn
to install dependencies. - Run
yarn build:watch
to start webpack in watch mode. - Open
Figma
->Plugins
->Development
->New Plugin...
and choosemanifest.json
file from this repo.
What this plugin generates and its appearance can be edited in controller.ts.
The react code, components, and UI can be found here App.tsx.
Read more on the Figma API Overview.
Update the font this plugin uses here
// Set the name of the font you want to use.
let fontName = "Inter";
you can also adjust the right hand side color here
const fills = clone(imageFrame.fills);
fills[0].color.r = 0.9764705896377563;
fills[0].color.b = 0.9764705896377563;
fills[0].color.g = 0.9764705896377563;
This plugin doesn't scale very well to very large projects but if this is a common enough request I'll add it in the future!
This repo is using:
- React + Webpack
- TypeScript
- TSLint
- Prettier precommit hook