Skip to documentation

Design system / Sources & standards

Current repository source

layout.css

src/theming/semantics/layout.css

This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.

:root {
  /* Page density, not control density. Preserve the 4px Tailwind multiplier. */
  --page-gutter: var(--cxh-space-24);
  --page-padding-block: var(--cxh-space-32);
  --sidebar-width: var(--cxh-sidebar-width);
  /* Scoped measured notice height; ordinary shells retain their full viewport. */
  --viewport-bottom-clearance: 0px;
}

@media (min-width: 768px) {
  .page-frame,
  .page-gutters {
    --page-gutter: var(--cxh-space-32);
    --page-padding-block: var(--cxh-space-48);
  }
}

@media (min-width: 1024px) {
  .page-frame,
  .page-gutters {
    --page-gutter: var(--cxh-space-48);
  }
}

@media (min-width: 1440px) {
  .page-frame,
  .page-gutters {
    --page-gutter: var(--cxh-space-64);
    --page-padding-block: var(--cxh-space-64);
  }
}

@layer utilities {
  /* Self-only layout rules: never change display, child sizing or descendants.
   * AppShell owns its contained frame; a full-bleed route owns its own frame.
   * Brochure bands and compact header/footer chrome use gutters without adding
   * another vertical frame. Page/section owners select existing Tailwind
   * spacing utilities; no global main/section/space-y overrides. */
  .page-frame,
  .page-gutters {
    width: 100%;
    max-width: var(--cxh-container-content);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
  }

  .page-frame {
    padding-block: var(--page-padding-block);
  }

  .page-frame-fluid {
    max-width: none;
    padding-block-start: var(--cxh-space-16);
    --page-gutter: var(--cxh-space-24);
    --page-padding-block: var(--cxh-space-32);
  }

  .page-frame-focused {
    max-width: var(--cxh-container-lg);
  }
}

@media (min-width: 768px) {
  .page-frame-fluid {
    --page-gutter: var(--cxh-space-32);
    --page-padding-block: var(--cxh-space-48);
  }
}
All sources and standards
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.