Warning: The features discussed in this article are deprecated. If you have questions or concerns, contact us.
Keep these guidelines in mind when you design your widget and page extensions.
Use these guidelines to determine the size of your iframe website extension.
The Wix popup is a window that opens over the user’s Wix site (live or preview). Site visitors can close it by clicking the close button, and you can close it within the app. Use the Wix.openPopup SDK method. Here’s an example of a Wix popup:
Note:
Have your own popup style? You can open our popup in a “bare style” – without a border, shadow, or close button – and put your own instead.
Wix Modal: The Wix modal is a lightbox-style window that opens over the Wix site. Site visitors can close it by clicking the close button or anywhere outside of the lightbox, and you can close it within the app. Use the Wix.openModal SDK method. Here’s an example of a Wix modal:
As Wix users edit their site in the Wix Editor, they can switch from “editing mode” to “preview mode” to see what their live site will look like. Make sure your app looks the same in “preview mode” as it does in the live site (Note for Developers: You can detect when the user is in preview mode – listen for the EDIT_MODE_CHANGE event in the addEventListener method. Then just display your app the same way you do in the live site).
Make sure your app looks great at any size, and on any device. When the size of the iframe or device changes, adjust the layout and design to best fit the new size. Set the initial width and height of your app in your app's dashboard. Adjust the layout and design dynamically:
Your app must look good and work well in at least 3 sizes – small, medium, and large screens. Here’s what we suggest:
Note: use the resizeComponent SDK method.
Important:
When adjusting your app, change the app’s layout only – the functionality must be the same in all sizes.
This is how the app looks when it’s added to the site:
If the user increases the iframe width, the height changes and the layout is adjusted accordingly (also note that there is now more white space).
When the user decreases the iframe width, the height automatically changes and the content is adjusted accordingly.
You can see that the functionality of the app remained the same, even when shrinking the app to its minimum size.
Optimize your app for mobile devices. A great mobile experience is important to Wix users, because many site visitors browse on a mobile device.
How to design your app’s mobile layout:
Limit the width of the app to 320px, and the content to 280px: This leaves enough white space so that the mobile view looks clean and clutter-free.
Keep it short: If there’s a lot of data, you can provide a link, add pagination, or allow visitors to expand/collapse. If needed, you can adjust the app’s height by pushing other extensions further down the page (Note for Developers: use the setHeight SDK method and set overflow to false).
Make your text readable: Use the following font sizes -
Keep your buttons large enough to click: Buttons should be at least 80px wide, and the height should be between 36-42px.
Leave enough space between elements:
1.4 em for running text
1.2 em for titles
Here’s a style guide to help you follow the guidelines above:
Make important elements easily clickable: Use single-tap buttons or horizontal bars. For example, the most important action in our Events app is to register for an event, so we made it really easy for visitors to do:
Support common mobile actions: Meet user expectations by supporting these actions:
Tap – Allow site visitors to tap on all interactive elements, like buttons and links.
Swipe – Allow site visitors to swipe right/left in slideshows and similar elements.
Add our Events app to your website, and switch to mobile view in the editor to see an example of an optimized mobile app. Note that while the layout of the app is different between the two views, the functionality is the same.
Check out the images below and compare the desktop and mobile views.
Desktop view:
Mobile view:
If your widget/page extension is fully responsive – meaning that it looks good in a wide range of different sizes that the user might choose – then you can allow users to extend your app to the full width of the browser window.
If it makes sense for your app, you can also make your app full width by default.
Your app is added with the default dimensions you set in your app's dashboard, but you can allow users to extend your app to the full width of the browser. There are two ways to do this, and it depends on the layouts you’re offering for your app in the App Settings panel:
You can also make your app full width by default, so that it’s already stretched to the full width of the browser when the user adds your app. Here’s how:
We have a collection of different color palettes that users can choose for their site. Each color palette is a set of colors that work well together. For example:
Choose your app’s colors dynamically, according to the site’s color palette. This way, your app integrates seamlessly and looks great right away – which means less work for the user.
Here’s a quick look at what you need to do:
During development, you need to set the initial color scheme in two places – in the color picker and in the app itself.
Not only do you want your app to integrate with the site’s color palette – but it’s also important that all of the colors used in your app look good together. For example – the text should always be readable against the background, the main action should stand out, etc.
To make this convenient for you, we created a template that’s based on the two left columns of the color palette.
Use this template to create your app’s color scheme. Here’s how it works:
(We don’t recommend using a third color – but if needed, you can use the third column.)
Tip:
Add any app (for example, the Events app) to your Wix site, and then change your site’s color palette so that you can see how the app changes according to different color palettes.
Here’s an example to show you how it works. You can see the app’s color scheme and how it looks with the color palette shown:
Use this table as a guide to choose a “color” for each element in your app.
Important:
Stick to the color values that we list below. We specifically chose these values so that the colors in your app will work well together and there will be enough contrast.
Element | Value |
---|---|
Master color (if using) | color-8 |
App background | color-1 |
Border | color-2 or color-3 |
Dividers | color-2, color-3, or color-4 |
Title/heading text | color-5 |
Running text | color-5 (for softer text, use 3 or 4) |
URL / link | color-8 On hover: add a black layer with 20% opacity to text color |
Button background | color-8 Special states: On hover: add a black layer with 20% opacity to bg colorDisabled buttons: add 50% opacity to the bg color |
Button text | color-1On hover: add a black layer with 20% opacity to text color |