Skip to main content

Responsiveness and Design Configuration



Once you create a React web application on Figma, you can start working on your app's pages. You can customize your application UI with Smart Editor, where you can easily edit and modify all UI changes while having a real-time design preview. This helps you make UI more adaptive and accurate by providing you with all your necessities right here while you create your application.

Example banner

The media queries generated by DhiWise supports below devices. Learn more

DevicepxCSS
Mobile200px to 767px@media (min-width: 200px) and (max-width: 767px) { ... }
Tablet768px to 991px@media (min-width: 768px) and (max-width: 991px) { ... }
Desktop>991pxIt is the default for React apps.

Key capabilities

NameDescription
Real-time design previewReal-time design rendering eliminates the need to rebuild the project again and again. Instead, the changes you make are reflected instantly on the selected device.
CSS StylingsWith Smart Editor, you can paint any part of your web page just like that. There are ten types of CSS stylings with in-detail customization to design a pixel-perfect UI right in your browser to get TailwindCSS code for your React web app.
Change DeviceTo develop a responsive web app that can run on Desktop, Tablet, and Mobile with utmost precision, the Smart Editor, gives an easy switch between all these three devices to develop design faster and more accurately.
Change ComponentIn some cases, you might need to modify the view component; in such cases, you can easily do it from the Editor without returning to Figma. The Change Component property allows you to change your component from the Editor itself in no time.
Group, Ungroup, and Delete ComponentsSelect the components, right-click on the selection or use the associated keyboard shortcut to group components together or ungroup them from the Smart Editor.
Easy Screen Navigation while developmentSmart Editor offers you a quick way to navigate between the screens of your application without going back to the screen list.

Applying changes

All the design preferences for the Desktop will be applied to Tablet and Mobile. Likewise, all the changes for the Tablet will be applied to the Mobile.

It means the changes in the larger devices will be applied to the smaller devices. However, any custom changes you make for a smaller device won’t apply to the larger ones.

For example, Mobile changes will not be reflected on the Tablet or Desktop.

info

Even after applying changes to Mobile, if you use changes on the Desktop, those changes will not overwrite Mobile changes. It will keep your changes untouched.

Immediate Parent Selection

When we design the Figma files, we often layer some hidden parts or have an overlapping layer. These layers help designers to make a UI part look perfect on screen.

From a developer’s view, it is a div that might be a parent that impacts the UI in terms of layout, like row/column or aligning with siblings or children.

Example banner

DhiWise has a “Layer View” that gives the layers hierarchy. On top of that, to make it more accessible and precise, we have an immediate parent selection feature where you can easily navigate to the parent.

How to make immediate parent selections?

  1. Select the view on the canvas area, and hover on the element type. It will bring all the immediate parents of the selected child.

  2. Hover over the parent, and it will outline that parent with a dotted blue border.

CSS Highlight

Now, you can easily differentiate whether any CSS has been applied from DhiWise or mixins.

In the Smart Editor, some elements might have CSS given by DhiWise generated code or by you manually using the CSS stylings option or some elements might have CSS given by Mixins.

To identify each separately we have added a highlight indicator which will give you a hint will a specific color to that CSS attribute when you select the element. We have two options here:

  1. DhiWise CSS: It is identified as a Blue dot.
  2. Mixin CSS: It is identified as an Orange dot.

CSS highlight

Inspect Element

Before adding in CSS or modifying the CSS of any particular element, you might need to inspect and see the current stylings of that element.

To make it accessible, we have this “Inspect Element” feature that allows you to do that without any extra effort.

To Inspect an element, use the option key for Mac or Alt key for Windows to see the margin, padding, and dimensions of the currently hovered component.

Inspect Element

Indications:

  1. Padding: It is shown in Green colors.
  2. Margin: It is shown in Red colors.
  3. Dimensions: It is shown in width * height format.
note

All measurements are in px.

Search CSS Properties

To access and manipulate CSS attributes faster, now you can search attributes and tweak with UI easier.

Search CSS Properties



Got a question? Ask here.