Layout

Spark's layout guidelines and templates promote consistency across platforms and screen sizes. Consistent layout principles enable designers and developers to build user-friendly products across various devices and screen sizes.

 

Are you a designer trying to deliver a consistent user experience? Would you like to use a page template with built-in layout standards? These quick videos show you how to use our page layout templates to streamline your design process.

 

Part #1: Finding the component and it’s properties


  1. Go to the Spark library. Browse down the file to find the page called "Page Layouts." within the Utility group.
  2. Alternatively type in “Page Layout” within the assets panel and drag out the component into your file.
  3. The component comes in multiple breakpoint variants:
    1. xl (2650px)
    2. lg (1920px)
    3. md (1440px)
    4. sm (1280px)
    5. xs (480px)
  4. There is the ability to show the menu and breadcrumbs bar through the relevant properties.
  5. Lastly content can be inserted through the slot based “page-content” property.

 

Part #2: Adding content and ensuring responsiveness


  1. In order to include content within the component, you need to ensure that your desired content is presented as a component in your file with autolayout added
  2. Once added through the page-content slot, the content will be positioned within the slot area - if the height of your content exceeds the original slot height, the Page Layout component will expand it’s height to hug your inserted content.
  3. The height can be manually changed by designers to any height they desire.
  4. There are a number of maximum and minimum width that have been placed to Page Layout variants - if when you’re dragging the width of a given Page Layout variant, you’re prevented from doing so by one of these min/max values, we recommend changing the breakpoint of the component to a more suitable size.

 

 

Part #3: Changing added content and using layout grids


  1. To customize/modify any added content, simply make these changes to the local component you used to add into the slot.
  2. If you would like to add in the layout grids that we have in the design system, we recommend only overlaying these within the “content-safe-area” frame of the component (this frame being nested within the “main_stage” frame when the menu is active).