# Layout URL: /foundations/layout Source: https://github.com/daangn/seed-design/blob/dev/docs/content/foundations/layout.mdx 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 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 | Density | Grid Type | Column | Gutter | Margins | Max-width | | ------------- | --------- | ---------- | ------ | ------- | ------------ | | Low | Centered | 8 | 24px | 32px | 720px | | Middle (base) | Centered | 12 | 24px | 32px | 1040px | | High | Fluid | Full-width | - | 32px | 1040px (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. | Breakpoint | Viewport | Columns | Gutters | Margins | | ---------- | ------------- | ------- | ------- | ------- | | base | 0 - 479px | base | 16px | 12px | | sm | 480 - 767px | sm | 16px | 12px | | md | 768 - 1279px | md | 32px | 24px | | lg | 1280 - 1439px | lg | 32px | 24px | | xl | 1440 + px | xl | 32px | 24px | \*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]()