How to use Figma styles in Tabris.js

Here at EclipseSource we love Figma. It is a great tool for UI design and prototyping. With its powerful layouting, prototyping and collaboration features, iterating on a design is a pleasure. In the end, however, you want to put your design into practice. Luckily, with Tabris.js it is simple to take what you have created in Figma and move its styles into a Tabris.js app.

Figma lets you create styles for various resources like fonts and colors. They can be easily mapped to the Tabris.js resource system. The following screenshot shows an example of styles in Figma.

To map these resources to a Tabris.js app you create corresponding font.json file:

And a colors.json file:

And a later one in your app, you consume the Tabris.js resource as usual:

This wraps up this little tip on how to bring your Figma styles to Tabris.js.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *