Locofy Docs
PluginLegacy (Classic)Ui libraries design systemsWorking with Ant Design

Working with Ant Design

Learn how to use Ant Design inside your design system.

Tagging an Ant Design element

To tag an Ant Design element:

  1. Select the Ant Design element from your Figma file.

  2. Choose the tag from the Locofy plugin. Available tags will be highlighted based on your selection.

Image 46
  1. Select the tag and choose Ant Design as the UI library.
Image 441
Note: Some tags are not supported by Ant Design. In such cases, Ant Design will not be shown as an option.
  1. Select a Variation: Choose the variation of the element you are using
Image 3
  1. Edit Properties: You can further define how this element should work.
Image 5
  1. Check the interactive preview: Play with the interactive preview to verify your element is correctly set up

  2. Click Done.

Locofy provides an interactive preview for you to visualize your element while tagging.

Image 47

Any changes made to your properties settings will update and refresh the interactive preview.

Properties auto-detection

When tagging your Ant Design element, Locofy reads your Figma design to automatically populate properties for you.

Image 30

Change or cancel Variation

You can switch to a different variation or cancel the variation by clicking the ‘Change’ or ‘Cancel’ button respectively.

Image 451
Note: Similary, if you Change or Cancel the variation, all the changes you have made in the properties section will be discarded.

Theming

Customizable theming support for Ant Design is coming soon.

Ant Design Version

Ant Design package will be imported as a dependency for the generated code base.

  • antd: v4.17.4

On this page