The PageContainer is used to surround the application or site in entirety.
1<PageContainer className={className} width="100%">2 <Header />3 <ContentContainer>4 {children}5 </ContentContainer>6 <Footer />7</PageContainer>
1The following CSS styles are applied:2css`3 min-height: 100vh;4 display: flex;5 flex-direction: column;6`
The ContentContainer is used to surround the content region of the site, it is positioned in between a header and footer if used.
1<ContentContainer>2 <NavContainer />3 <MainContainer />4</ContentContainer>
1The following CSS styles are applied:2css`3 flex="1 0 auto"4`
The HeaderContainer is used to surround the header region of the site, it contains skip to content functionality which must be used in conjunction with the MainContent component. By default the background style from the core theme is used: var(--background-header).
HeaderContainer acts as a wrapper for application specific Header components to sit within.
1<HeaderContainer className={className} paddingY="--s-1" paddingX="--s0">2 <Cluster justifyContent="space-between" gap="--s2">3 <Cluster gap="--s4">4 <A href="/">5 <Logo height="--s2" color="fifth" />6 </A>7 <Cluster gap="--s-2">8 <AtomIcon color="primaryInverse" />9 <Text as="strong" fontSize="large" fontWeight="medium">{SITE_NAME}</Text>10 </Cluster>11 </Cluster>12 <ThemeToggle />13 </Cluster>14</HeaderContainer>
The FooterContainer is used to surround the footer region of the site. By default the background style from the core theme is used: var(--background-footer).
FooterContainer acts as a wrapper for application specific Footer components to sit within.
1<FooterContainer className={className} padding="--s2" color="primaryInverse" css={css`background:var(--background-footer);`}>2 <Cluster gap="--s-2">3 <AtomIcon color="primaryInverse" />4 <span>{SITE_NAME}</span>5 </Cluster>6</FooterContainer>
The MainContainer is used to surround the main content region of the site. It contains an ID that matches the skip to main content href.
MainContainer acts as a wrapper for application specific Main components to sit within.
1<MainContainer px="--s2" py="--s4">2 {children}3</MainContainer>
The NavContainer is used to surround navigation content of a site.
NavContainer acts as a wrapper for any type of navigation to sit within.
1<NavContainer paddingBottom="--s2" className={className} backgroundColor="fourth" color="text">2 {children}3</NavContainer>