• Stars
    star
    124
  • Rank 287,497 (Top 6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An easy way to populate Figma layers with JSON

JSON to Figma (Not Maintained)

Notice: This plugin is no longer maintained

Thank you for your interest in the JSON to Figma plugin. As of now, this plugin has become a paid plugin available on the Figma Community. Due to this change, this repository will no longer be updated.


An easy way to use real data in Figma.

The plugin can parse local or JSON files from a URL link. You can populate any layers with text or images.


Get the plugin

๐Ÿ“ฅ figma.com/community/plugin/789839703871161985/JSON-to-Figma

๐Ÿ’ก Features:

  • Load local files and fetch from URL
  • Fetch images
  • Supported image formats: JPG, PNG, GIF, WEBP, SVG
  • Parsing JSON files with any amount of nested levels
  • Flexible keys selection
  • Invert selected keys
  • Populate in random order
  • Select any ranges from JSON file
  • the "skip" rule for layers you won't populate
  • Handle null values

Youtube demo

๐ŸŽฅ youtu.be/7CKYdDfLFDY

๐Ÿš€ How to Use

All you need is a proper JSON. The plugin will parse show all available keys from the JSON including nested layers.

  1. Load a JSON file localy or copy a link and the click on the "From Cipboard link" button.
  2. Make sure layers you want to populate have the same names as in the JSON file. For example โ€” if you see a key "user.name" key in the plugin the layer name also should be "user.name".
  3. Select layers with items you want to populate. You can select group or frames with these layers, no need to select layers dirictly or manualy, the plugin will find them by their names.
  4. Select keys you want to use for population.
  5. Press "Populate selected" button

๐Ÿค˜ Features

Range seection โ€” If you want to select a certain range from a JSON, you can do it like this โ€œ1-10โ€, โ€œ1, 5, 20โ€, or combine them โ€œ1-10, 21, 50-340โ€ โ€” it means that the plugin will take JSON objects from 1 to 10, 21 and from 50 to 340 and combine them into one new array. Then you can also save filtered array.

Skip marked layers โ€” if you want to skip layers, groups or frames โ€” exclude them from the list, then you can use the โ€œSkip marked layersโ€ option. Just select layers and press โ€œSkip selectedโ€. You can also clean marked layers or add the marker manually.

Random order โ€” If you switch it on all items will be filled in a random order. By default, all your layers will be filled in order.

Image URLs recognition โ€” The plugin will automaticly recognise values from a JSON that end with .JPG, .PNG, .GIF or .WEBP as images. if you name a shape or a frame with the name of the key โ€” the pllugin wil fetch the image by URL and add it as a fill.


โœ… Valid JSON structure

The JSON structure for the file should look like an array of objects.

[
    {
        "id": 1,
        "name": "Shannah Judgkins",
        "job": "Database Administrator II",
        "image": "https://robohash.org/suntautvoluptatem.jpg?size=500x500&set=set1"
    },
    {
        "id": 2,
        "name": "Silvester Hallwell",
        "job": "Data Coordiator",
        "image": "https://robohash.org/rerumautemenim.jpg?size=500x500&set=set1"
    }
]

๐Ÿ““ Services to generate JSON data

You can download try different JSON samples from this repo.

Or you can use on of these services:

More Repositories

1

squircle-houdini-css

A tiny CSS Houdini module that allows to add a squircle shape to HTML elements
JavaScript
230
star
2

warp-svg

Warp and distort SVG files online
JavaScript
188
star
3

web-dark-ages

HTML
105
star
4

JSON-from-Figma

A simple example of using Figma API to get a JSON file, filter or download it
JavaScript
72
star
5

context-cursor

A cursor that takes the shape of the hovered element.
HTML
60
star
6

wunderzin

CSS
55
star
7

tiny-flexbox-grid-system

Tiny SCSS Flexbox Grid System
CSS
46
star
8

Lazy-Exportable---sketch-plugin

Makes layers exportable by types, flag or name
JavaScript
20
star
9

MaterialMotion-for-Framer

material motion fo Framer
JavaScript
19
star
10

GlitchContainer-for-FramerJS

A simple way to add glitch effect to your prototypes
CoffeeScript
18
star
11

Figma-Warp

A simple plugin that allows you to warp ๐ŸŒ€, bend, and distort vector shapes in Figma.
TypeScript
17
star
12

figma-image-editor

Figma plugin to manipulate images color and add filters
JavaScript
14
star
13

kinetik-typography-three-js

Kinetik typography experiments with ThreeJS
JavaScript
14
star
14

Figma-Auto-Layout-Styles

The plugin brings an experience of Figma styles to the auto-layout feature. You can make separate configurations of auto-layouts, save and load them, lock or change at any time.
TypeScript
9
star
15

tinify-Image-compressor-figma

TypeScript
9
star
16

markdown-theme-shell

Parse a markdown file in the HTML page
CSS
8
star
17

FramerAR

Framer prototype with A-Frame and AR.js
HTML
5
star
18

figma-plugin-react-boilerplate

This repo offers a TypeScript-based React boilerplate for Figma plugins. It includes features such as SASS, CSS/SASS/SCSS modules, SVG image import, and up-to-date packages.
TypeScript
5
star
19

brutalist-buildings

list of brutalist buildings
CSS
4
star
20

gooey-for-framer

Gooey effect for framer. Work well in chrome broweser
JavaScript
4
star
21

textGradient-for-Framer.js

gradient for TextLayer
JavaScript
3
star
22

variants-randomizer

TypeScript
3
star
23

GPTify-Figma

TypeScript
3
star
24

berlin-brutalism

TypeScript
3
star
25

figma-stat

JavaScript
2
star
26

SVG-to-Image

TypeScript
2
star
27

Fasta-Fasta-Sketch-plugin

background timer for sketch
2
star
28

Nicolas-Cage-Figma

Nicolas Cage Replacer for Figma
TypeScript
2
star
29

revoult-budgeting-materials

2
star
30

TelegramBot

Send messages from Sketch with Telegram bot
2
star
31

JUST_DETACH

JavaScript
1
star
32

FrameLoader

Preloaders for Framer.JS
JavaScript
1
star
33

Yandex_search

test task
CSS
1
star
34

gulp-template

simple gulp template for jade, stylus and coffee
JavaScript
1
star
35

get-figma-stat

Get the stats about any Figma plugin, file or widget
TypeScript
1
star
36

pavellaptev.github.io

TypeScript
1
star
37

Framer-iOS11-components

This repository includes modules of iOS11 components.
CoffeeScript
1
star
38

figma-halftone

Figma plugin to generate halftone gradients.
TypeScript
1
star