Docs
  • Introduction
  • 🚀Get started
    • 1️⃣Install the plugin
    • 2️⃣Load Clapy in your file
    • 3️⃣Sign in/up to Clapy
    • 4️⃣Get code in 1 click
    • Online code preview/editor, Github, and more
  • 🖌️Figma Basics
    • Components
    • Your first Figma component
    • Add auto-layout in Frames
    • Groups vs Frames
  • ⚙️The generated code
    • The project structure
    • Components
    • Instances
    • Figma Tokens integration
    • Responsive code
  • ℹ️Extras
    • Changelog
      • 01/08/2022
      • 25/07/2022
      • 15/07/2022
    • Github
Powered by GitBook
On this page
  • Select a frame to code
  • Get code advanced options
  • 3 ways to get your code
  • Duration of the code generation

Was this helpful?

  1. Get started

Get code in 1 click

You are now all set to generate code with Clapy!

PreviousSign in/up to ClapyNextOnline code preview/editor, Github, and more

Last updated 2 years ago

Was this helpful?

Select a frame to code

Once you are logged in to Clapy, you will land on a screen with a message prompting you to select an element in Figma.

To generate the code, just select the outer frame of the design you want to code. You can preview your selection to make sure you will generate the code for the right element.

Get code advanced options

Once your element is selected -> just click the button < Generate code > and... that's it! 🚀

You can use advanced options to change the code output:

  • Toggle full width/height (best result for pages)

  • Select if you'd prefer to get React or Angular code

  • Download the code as Zip (locally)

  • Add a component directory

  • Edit the CSS output (including adding custom CSS)

3 ways to get your code

  • Download as Zip: You can download the code as a Zip folder if you don't want to publish it to Codesandbox. To do so, click on the dropdown "advanced options" and select "download to zip" before generating your code.

  • Github: Available soon -> select a repo and make a PR automatically from Figma!

Learn more in this section: Online code preview/editor, Github, and more

Duration of the code generation

The duration of the code generation depends on the number and size of the assets and the sub-components contained in the element you are generating.

Codesandbox: By default, the plugin will publish the code to an online , where you will be able to preview the result and get the code more easily.

If the code generation takes too much time and you cannot get the code, to see what we can do to optimize this.

🚀
4️⃣
Codesandbox
contact us on our Discord
Clapy allows you to convert any Figma element to code.
Select advanced options to adjust the code output