Uncodie
Technical DocumentationNo CodeTutorialsChangelogDisccord
No Code
No Code
  • 🏁Getting Stared
    • 🥳Introduction
      • What is Uncodie?
      • App
      • Figma No Code Plugin
        • How to associate your Figma token to Uncodie?
        • How to associate an Uncodie project to figma?
  • 📖Basic Concepts
    • 🧩Components
      • Screen Page
        • Screen Layout
        • Screen Content
      • Table View
        • Table View Header
        • Table View Row
        • Table View Cell
      • Form
        • Text Area
        • Selector
        • Input
        • Button
        • Output
      • HTML components
        • Headers
          • H1
          • H2
          • H3
          • H4
          • H5
        • Title
        • Parragraph
        • List
        • Iframe
        • Video
        • Audio
        • Link
        • Progress
        • Meta
        • Image
        • SVG
      • Advanced
        • Chart
          • Style Personalization
        • Repeat
        • Loading
    • 🎨Appearance
      • Visibility
      • CSS
      • Adaptative Design
      • Responsive Design
    • 🏗️Prototyping
      • Modals
      • Variants
      • Navigation
    • 🔤Variables
    • 💽Data Sources
      • Collections
      • Queries
      • Scripts
    • 🔍Data Binding
    • ⚡Actions
      • Scripts
      • Events
    • 🧑User Management
      • Privacy
    • 🍪SEO and Tracking
      • Capabilities
      • HTML Head Scripts
    • ☁️Publish and Deploy
      • Custom Domains
Powered by GitBook
On this page
  • Overview
  • Use Cases
  • Responsive component design
  • Responsive app design
  • Guidelines
  • Component Good Practices
  • Set Flex Wrap
  • Set Min Widths

Was this helpful?

  1. Basic Concepts
  2. Appearance

Responsive Design

Using CSS and Uncodie capabilities to generate responsive and adaptive designs

PreviousAdaptative DesignNextPrototyping

Last updated 1 year ago

Was this helpful?

Overview

Depending on your specific use case, Figma's auto layout feature may be sufficient to generate a Flex responsive design with Uncodie. For more straightforward applications, this built-in functionality allows for quick and efficient design adjustments without the need for additional coding. However, for more complex scenarios, where precise control over layout behavior under varying conditions is necessary, you can enhance your design by incorporating inline CSS and breakpoints. These advanced techniques enable you to manage your app's visualization meticulously, ensuring that it renders correctly across different devices and screen sizes. By combining Figma's intuitive design capabilities with the flexibility of custom CSS adjustments, you can achieve a highly responsive and visually appealing application.

Use Cases

Responsive component design

To make a component responsive, the simplest way is to add Auto Layout in Figma, the compiler will manage the rest of the CSS code for you.

Responsive app design

For a simple step-by-step tutorial see:

Guidelines

Component Good Practices

To achieve Display Flex behavior using Auto Layout in Figma:

  1. Select the frame or group: Choose the frame or group you want to apply Flex-like behavior to.

  2. Enable Auto Layout: Go to the right-hand properties panel, and under the 'Auto Layout' section, click the '+' button to enable it.

  3. Configure Direction: Set the direction to vertical or horizontal depending on how you want your items to flow. Vertical mimics flex-direction: column and horizontal mimics flex-direction: row.

  4. Adjust Spacing: Set the spacing between items and padding around them to control gaps and internal padding, similar to gap and padding properties in CSS Flexbox.

  5. Align Items: Use the alignment controls to determine how items should be aligned within the container. You can set them to start, center, end, etc., akin to justify-content and align-items in Flexbox.

  6. Resizing Options: Set items to 'fill container' or 'fixed size' to control how they expand or contract, similar to flex-grow and flex-shrink.

By configuring these options in Auto Layout, you can replicate the flexible and responsive behavior of CSS Flexbox in your Figma designs.

Set Flex Wrap

To effectively generate a block unfold behavior, you will need to implement the flex-wrap property appropriately when the situation demands it. The flex-wrap property controls how the flex items will behave when there isn't enough space on a single line. By adding this behavior, you ensure that the content will wrap into multiple lines, if necessary, facilitating a more dynamic and adaptable layout. This approach is particularly useful in responsive design, where it can help maintain visual consistency across different screen sizes and resolutions. Be mindful to test the layout under various conditions to ensure that the flex-wrap behaves as intended and provides a seamless user experience.

Set Min Widths

To achieve optimal multi-device component behaviors, it's crucial to set your min-width values directly as CSS properties. By doing this, you can ensure that your responsive design adjusts gracefully across various screen sizes and devices. Setting explicit min-width values helps maintain the layout's integrity, providing a consistent user experience whether the site is accessed on a mobile phone, tablet, or desktop. Through careful planning and implementation of these CSS values, you can create a robust and adaptive design that meets the needs of all users, regardless of the device they use.

📖
🎨
Creating a responsive design
Logo