Locofy Docs
PluginLegacy (Classic)Design structureExampleBuilding a responsive card

Building a responsive card

Learn how to build a responsive card that can be used in various layouts and resizes according to its parent container

  1. Examine your card design. Check if you’re using a rectangle or image as the background.
Image 7518
  1. If you’re using a rectangle or image - you should instead use a frame for the background. You can copy and paste the properties such as Fill, Stroke, Border radius from the rectangle to the frame.
Image 7519

Apply autolayout and constraints

  1. Ensure that autolayout is applied to the card. You may need to first group up and apply autolayout to inner elements so as to ensure that your design is preserved.
Image 7520
  1. Apply width constraints such as “Fill container” to ensure the child items resizes along with the card
Image 7516
  1. You have successfully created a responsive card for use in various layouts

On this page