Subchapter 1.28
references/dashboard-page/WDS_LAYOUT.mdMarkdown10 KBView on GitHub
Layout and spacing guidance for dashboard page content. Wix Design System design language — the 6px base unit, the 12-column grid, spacing tokens, and the common content layouts.
Scope — read this in the right order. On a dashboard page, owns the page shell ( / / ) and everything collection-shaped: tables, grids, filters, sorting, paging, row and bulk actions, empty states. This file describes how to lay out content that shell. It is not a licence to build the shell, a table, or a filter bar out of raw WDS — see and first.
@wix/patternsCollectionPageEntityPageSettingsPageWhere a patterns page component already establishes structure (page header, content area, sticky footer, table/grid layout), follow the patterns component’s own API rather than reproducing the grid by hand. Use the guidance below for the parts patterns leaves to you: cards, forms, statistics rows, marketing sections, and spacing between them.
Layout determines how users interact with your dashboard content. It establishes the structure, hierarchy, and rhythm of your dashboard page, contributing to the overall coherence and user experience. By making mindful and calculated choices in how you organize your content, users can move around more smoothly, saving time and frustration when completing tasks.
To create dashboard pages optimized for user experience, follow these design principles:
Dashboard pages are designed to accommodate various screen sizes rather than being tailored to one specific resolution. The primary content should be at the top of the page to ensure users immediately understand the purpose of the page.
Note: Content displayed in the top 600 pixels of the page will be visible for the majority of users.
The base unit establishes the increment by which all elements and measurements are multiplied. This practice ensures consistency in the spacing and sizing of design elements.
Note: The design system is based on a 6px unit.
The layout grid, spacing tokens, and nearly all visual elements and sizes adhere to multiples of six (6, 12, 18, 24, etc.), with only occasional exceptions.
| TOKEN | SIZE | USE FOR |
|---|---|---|
| SP1 | 6px | Spacing between components |
| SP2 | 12px | Spacing between components |
| SP3 | 18px | Spacing between components |
| SP4 | 24px | Spacing between components, layout spacing |
| SP5 | 30px | Layout spacing |
| SP6 | 36px | Layout spacing |
| SP7 | 42px | Layout spacing |
| SP8 | 48px | Layout spacing |
| SP10 | 54px | Layout spacing |
| SP11 | 60px | Layout spacing |
To best design the layout for your app, understand:
The dashboard app frame is used by the majority of Wix applications settings. Dashboard pages consist of 4 areas:
| AREA | USAGE |
|---|---|
| 1. Global navigation (top bar) | General navigation at the top of a page which allows users to navigate between different environments. Full width container with a fixed height of 48px. |
| 2. Sidebar navigation | Local navigation of an environment. Container with a fixed width of 228px. |
| 3. Content area | Page content area with a width that’s adaptive to screen size. |
| 4. Side panel (optional) | An optional panel that shows additional actions or content associated with the content of a page. Fixed width of 420px. Can either overlay the main content area or push it from the right side. |
Side Panel Guidelines:
The system uses a fluid grid layout with a fixed maximum width. It uses columns that scale and resize the content accordingly.
The grid is constructed from 3 elements:
Grid Specifications:
Page layouts can be divided by intention into the following types:
Forms are pages that allow users to fill in data or edit existing data. Two variations:
Both form page layouts include mandatory Save and Cancel actions in the header and footer areas.
2/3 Layout Best Practices:
Full Width Layout Best Practices:
Combining Layouts:
Note: A column is easy to read if it is wide enough to accommodate an average of 10 words per line.
Display pages showcase data or content without accepting input from users. They can contain minor actions such as data filtering.
List (Table):
List (Grid) Options:
Grid Selection Considerations:
Dashboards: Display different types of data on a specific topic using a combination grid.
Column span recommendations:
Empty States:
Marketing pages promote new products that site owners are not aware of yet. Built using the <MarketingPageLayout/> component split into 2 columns:
Optional footer area can display features or testimonials list.
Wizard pages guide users through setting up a product or feature. They split complex forms into steps for easier completion.
Entry Points:
Note: Wizards must have a final destination. After completing all steps, users should end up on a relevant page: a dashboard, a details page, or any other relevant location.
These are content-level building blocks. They do not replace the @wix/patterns page shell.
<Layout /> / <Cell /> - Grid layout container for content within a page’s content area<Card /> - Content container with 24px gaps between cards<MarketingPageLayout /> - Marketing page wrapper (marketing pages only — these have no collection, so no patterns shell applies)On WDS
<Page />: do not use it as the wrapper for a@wix/patternsdashboard page. The patterns page component (CollectionPage/EntityPage/SettingsPage) is the shell and already provides the header, content area, and scroll behavior. Reach for WDS<Page />only on a page that uses no patterns shell at all.