Site footer
A footer with the logo, a newsletter sign-up, three columns of links, the copyright and social links.
- Version 1.0.0
- Bootstrap 5.3+
- Requires Bootstrap CSS
- Source on GitHub
html
<footer class="bootcn-site-footer">
<div class="bootcn-site-footer__inner">
<div class="bootcn-site-footer__about">
<a class="bootcn-site-footer__brand" href="#">
<svg
class="bootcn-icon"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
focusable="false"
>
<rect x="3" y="3" width="8" height="8" rx="2" />
<rect x="13" y="13" width="8" height="8" rx="2" />
<path d="M13 7h8M17 3v8M3 17h8" />
</svg>
Acme
</a>
<p class="bootcn-site-footer__text">Pages, forms and dashboards your team can edit.</p>
<form
class="bootcn-site-footer__newsletter"
action="#"
aria-labelledby="bootcn-site-footer-news"
>
<p class="bootcn-site-footer__news-title" id="bootcn-site-footer-news">
Get product updates
</p>
<div class="bootcn-site-footer__news-row">
<label class="visually-hidden" for="bootcn-site-footer-email">Email address</label>
<input
class="form-control bootcn-input"
type="email"
id="bootcn-site-footer-email"
name="email"
autocomplete="email"
placeholder="you@example.com"
required
/>
<button type="submit" class="btn bootcn-button bootcn-button--default">Subscribe</button>
</div>
</form>
</div>
<nav class="bootcn-site-footer__nav" aria-label="Footer">
<div class="bootcn-site-footer__column">
<h2 class="bootcn-site-footer__heading">Product</h2>
<ul class="bootcn-site-footer__links">
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Changelog</a></li>
<li><a href="#">Roadmap</a></li>
</ul>
</div>
<div class="bootcn-site-footer__column">
<h2 class="bootcn-site-footer__heading">Company</h2>
<ul class="bootcn-site-footer__links">
<li><a href="#">About</a></li>
<li><a href="#">Customers</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="bootcn-site-footer__column">
<h2 class="bootcn-site-footer__heading">Resources</h2>
<ul class="bootcn-site-footer__links">
<li><a href="#">Documentation</a></li>
<li><a href="#">Guides</a></li>
<li><a href="#">Status</a></li>
<li><a href="#">Privacy</a></li>
</ul>
</div>
</nav>
</div>
<div class="bootcn-site-footer__bottom">
<p class="bootcn-site-footer__copyright">© 2026 Acme, Inc. All rights reserved.</p>
<ul class="bootcn-site-footer__social">
<li>
<a href="#" class="bootcn-site-footer__social-link">
<svg
class="bootcn-icon"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
focusable="false"
>
<path d="M4 4l16 16M20 4 4 20" />
</svg>
<span class="visually-hidden">Acme on X</span>
</a>
</li>
<li>
<a href="#" class="bootcn-site-footer__social-link">
<svg
class="bootcn-icon"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
focusable="false"
>
<path
d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"
/>
</svg>
<span class="visually-hidden">Acme on GitHub</span>
</a>
</li>
</ul>
</div>
</footer>Installation
bash
npx bootcn add site-footerbash
pnpm dlx bootcn add site-footerbash
yarn dlx bootcn add site-footerbash
bunx --bun bootcn add site-footerThe CLI also installs the design tokens and these blocks and components: input, button. It prints the <link> and <script> tags to add to your layout.
- Load Bootstrap 5.3 (Bootstrap CSS) and the design tokens.
- Install the blocks and components it uses:
input,button. - Copy the files from Source into your project. With the default
bootcn.jsonthey go here:
| File | Default location |
|---|---|
site-footer.html | components/ui/site-footer.html |
site-footer.css | assets/css/site-footer.css |
Usage
Replace the links, the copyright and the social accounts. The newsletter form posts email; point its action at your mailing list provider or your own endpoint.
Accessibility
- A
<footer>landmark with a<nav aria-label="Footer">; each column is a heading and a list of links. - The email field has a (visually hidden) label and
autocomplete="email"; social links are named ("Acme on GitHub").
Dependencies
- Bootstrap 5.3+ CSS.
themes/tokens/tokens.css.- The
inputcomponent. - The
buttoncomponent.
Source
The exact files the CLI installs (site-footer@1.0.0). View on GitHub · Report an issue
html
<footer class="bootcn-site-footer">
<div class="bootcn-site-footer__inner">
<div class="bootcn-site-footer__about">
<a class="bootcn-site-footer__brand" href="#">
<svg
class="bootcn-icon"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
focusable="false"
>
<rect x="3" y="3" width="8" height="8" rx="2" />
<rect x="13" y="13" width="8" height="8" rx="2" />
<path d="M13 7h8M17 3v8M3 17h8" />
</svg>
Acme
</a>
<p class="bootcn-site-footer__text">Pages, forms and dashboards your team can edit.</p>
<form
class="bootcn-site-footer__newsletter"
action="#"
aria-labelledby="bootcn-site-footer-news"
>
<p class="bootcn-site-footer__news-title" id="bootcn-site-footer-news">
Get product updates
</p>
<div class="bootcn-site-footer__news-row">
<label class="visually-hidden" for="bootcn-site-footer-email">Email address</label>
<input
class="form-control bootcn-input"
type="email"
id="bootcn-site-footer-email"
name="email"
autocomplete="email"
placeholder="you@example.com"
required
/>
<button type="submit" class="btn bootcn-button bootcn-button--default">Subscribe</button>
</div>
</form>
</div>
<nav class="bootcn-site-footer__nav" aria-label="Footer">
<div class="bootcn-site-footer__column">
<h2 class="bootcn-site-footer__heading">Product</h2>
<ul class="bootcn-site-footer__links">
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Changelog</a></li>
<li><a href="#">Roadmap</a></li>
</ul>
</div>
<div class="bootcn-site-footer__column">
<h2 class="bootcn-site-footer__heading">Company</h2>
<ul class="bootcn-site-footer__links">
<li><a href="#">About</a></li>
<li><a href="#">Customers</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="bootcn-site-footer__column">
<h2 class="bootcn-site-footer__heading">Resources</h2>
<ul class="bootcn-site-footer__links">
<li><a href="#">Documentation</a></li>
<li><a href="#">Guides</a></li>
<li><a href="#">Status</a></li>
<li><a href="#">Privacy</a></li>
</ul>
</div>
</nav>
</div>
<div class="bootcn-site-footer__bottom">
<p class="bootcn-site-footer__copyright">© 2026 Acme, Inc. All rights reserved.</p>
<ul class="bootcn-site-footer__social">
<li>
<a href="#" class="bootcn-site-footer__social-link">
<svg
class="bootcn-icon"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
focusable="false"
>
<path d="M4 4l16 16M20 4 4 20" />
</svg>
<span class="visually-hidden">Acme on X</span>
</a>
</li>
<li>
<a href="#" class="bootcn-site-footer__social-link">
<svg
class="bootcn-icon"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
focusable="false"
>
<path
d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"
/>
</svg>
<span class="visually-hidden">Acme on GitHub</span>
</a>
</li>
</ul>
</div>
</footer>css
.bootcn-site-footer {
border-top: var(--bootcn-border-width) solid var(--bootcn-border-color);
font-size: 0.875rem;
}
.bootcn-site-footer__inner,
.bootcn-site-footer__bottom {
max-width: 72rem;
margin-inline: auto;
padding-inline: 1rem;
}
.bootcn-site-footer__inner {
display: grid;
gap: 2.5rem;
padding-block: 3rem;
}
@media (min-width: 992px) {
.bootcn-site-footer__inner {
grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
gap: 4rem;
}
}
.bootcn-site-footer__brand {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: var(--bootcn-foreground);
font-size: 1rem;
font-weight: 700;
text-decoration: none;
}
.bootcn-site-footer__brand .bootcn-icon {
width: 1.25rem;
height: 1.25rem;
}
.bootcn-site-footer__text {
margin: 0.75rem 0 1.5rem;
color: var(--bootcn-muted-foreground);
}
.bootcn-site-footer__news-title {
margin: 0 0 0.5rem;
font-weight: 500;
}
.bootcn-site-footer__news-row {
display: flex;
gap: 0.5rem;
max-width: 24rem;
}
.bootcn-site-footer__news-row .bootcn-input {
min-width: 0;
}
.bootcn-site-footer__nav {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
gap: 2rem;
}
.bootcn-site-footer__heading {
margin: 0 0 0.75rem;
font-size: 0.875rem;
font-weight: 600;
}
.bootcn-site-footer__links {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin: 0;
padding: 0;
list-style: none;
}
.bootcn-site-footer__links a,
.bootcn-site-footer__social-link {
color: var(--bootcn-muted-foreground);
text-decoration: none;
}
.bootcn-site-footer__links a:hover,
.bootcn-site-footer__social-link:hover {
color: var(--bootcn-foreground);
}
.bootcn-site-footer__links a:focus-visible,
.bootcn-site-footer__social-link:focus-visible,
.bootcn-site-footer__brand:focus-visible {
border-radius: var(--bootcn-radius-sm);
outline: 0;
box-shadow: var(--bootcn-focus-ring);
}
.bootcn-site-footer__bottom {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding-block: 1.5rem;
border-top: var(--bootcn-border-width) solid var(--bootcn-border-color);
}
.bootcn-site-footer__copyright {
margin: 0;
color: var(--bootcn-muted-foreground);
}
.bootcn-site-footer__social {
display: flex;
gap: 0.5rem;
margin: 0;
padding: 0;
list-style: none;
}
.bootcn-site-footer__social-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
}
