Foundations

Layout

Layout is a visual framework that structures product content and provides a consistent user experience. Crispy offers a flexible grid system and breakpoints to accommodate various screen densities and device environments.

Layout cover image

Layout Types

We provide two main layout types based on user intent and content complexity.

  • Dashboard Layout: Used for screens that handle complex data and emphasize management functions, such as seller centers and advertiser centers.
  • Contents Layout: Used for service pages whose purpose is information delivery, such as product sites, about pages, and recruitment pages.

Example image comparing the two layout types: Dashboard Layout and Contents Layout

Dashboard Layout

Dashboard layouts are differentiated into three density levels based on screen complexity and information volume.

  • Low Density: Simple settings dialogs or dashboard summaries
  • Middle Density (base): Standard management tools and data lists
  • High Density: Large-scale data visualizations and editing tools
DensityGrid TypeColumnGutterMarginsMax-width
LowCentered824px32px720px
Middle (base)Centered1224px32px1040px
HighFluidFull-width-32px1040px (min)

Example image of Low, Middle, and High Density dashboard layouts

Content Layout

A 12-column layout is used to maintain system consistency.

  • Standard: For readability, layouts are centered at specific breakpoints (lg) as the default principle.
  • Max-width: A default of 1040px is recommended for content immersion, and can be extended to 1280px when wider exploration is needed, such as in commerce search results.

Example image comparing Content Layout with max-width of 1040px and 1280px

Grid anatomy

The core elements that make up the grid system.

  • Columns: The area where content is placed. The number adjusts based on screen width.
  • Gutters: The spacing between columns. Crispy Dashboard layouts consistently recommend 24px.
  • Margins: The spacing between the content area and the screen edge. A default of 32px is maintained to provide adequate visual whitespace.

Grid structure diagram composed of Columns, Gutters, and Margins

Responsive Behavior

Crispy provides responsive strategies to accommodate screen size changes.

  • Fluid (Fluid Layout): Between breakpoints, column width expands or contracts proportionally (%) based on browser width.
  • Fixed & Centered (Fixed and Centered): When a specific breakpoint is reached (e.g., max-width 1040px), the layout width stops expanding and becomes fixed at the center of the screen.

You can combine both Fluid and Fixed layouts on a single screen.

Comparison diagram of Fluid and Fixed & Centered responsive behavior

Breakpoint

Crispy follows the Mobile First principle. Layouts start with small screens and expand as the screen size increases.

BreakpointViewportColumnsGuttersMargins
base0 - 479pxbase16px12px
sm480 - 767pxsm16px12px
md768 - 1279pxmd32px24px
lg1280 - 1439pxlg32px24px
xl1440 + pxxl32px24px

*The Sidebar is displayed by default at md (768px) and above, and is integrated into the Header menu in environments below 768px.

Column span and offset

Create flexible layouts by defining the width and starting position of content.

  • Column Span: The number of columns that content occupies. Adjust the span value based on content importance to establish visual hierarchy.
  • Column Offset: The number of empty columns before content starts. Use this to intentionally center content or balance left and right spacing.

Example diagram showing content placement based on Column Span and Column Offset

Layout Regions

Functional regions are defined to clearly distinguish screen roles.

  • Header (GNB): The top-level navigation area that spans the entire service.
  • Side Navigation: Navigates secondary menus within specific services or dashboards. Below md (768px), it is integrated into the GNB or hidden for mobile optimization.
  • Main Content: The primary area containing core content that users interact with. Grid is applied based on layout type.
  • Aside: A supplementary area that appears on the right side, used for performing additional tasks such as viewing detailed information or settings for selected items.

Diagram of layout region structure: Header (GNB), Side Navigation, Main Content, and Aside

Table of contents