Skip to Content

Layout

Purpose

Establish a consistent layout structure to enhance user experience and maintain design uniformity across the application.

Principles

  • Consistency: Ensure all pages follow a unified layout structure.
  • Responsiveness: Design layouts that adapt seamlessly to different screen sizes.
  • Accessibility: Follow accessibility standards to make layouts usable for all users.
  • Scalability: Create layouts that can accommodate future content and features.

Layout Structure

The layout is all in the component Layout client of the components bundle.1

The layout picture

Main Content Area

  • Centralized space for primary content.
  • Maintain a consistent padding and margin.
  • Used for navigation or additional tools.
  • Should not overwhelm the main content.
  • Collapsible or expandable based on user preference.
  • Includes copyright, links, language, and other supplementary information.
  • Stays consistent across all pages.
  • Contains the logo, theme and layout.

Spacing Guidelines

  • Use a consistent spacing scale (4px, 8px, 16px, 32px).
  • Avoid arbitrary spacing values.

Typography

  • Define clear hierarchy for headings, subheadings, and body text.
  • Headings decrease in size from H1 to H6 (e.g., H1 > H2 > H3).

Best Practices

  • Use the LayoutClient component for all pages.
  • Use components from the shared bundle whenever possible.1
  • Minimize the use of custom CSS in the project — if something can be achieved with an existing component, use that instead.

Checklist

Loading CheckList
Show Checklist Code
Loading Checklist Code

Footnotes

  1. The bundle component project GitHub . 2

Last updated on