Skip to content
Introducing StyloftCSS 0.1 / A small foundation for your next big idea. Meet the framework
Page sections

Footers

Close the page with a clear path to the next useful place.

CSS only6 examplesKeyboard friendly HTML

A complete footer

Live preview
View HTML / PlaygroundHTML source
example.htmlHTML
<footer class="demo-footer-block sl-stack sl-gap-8">
  <div class="sl-grid sl-md:cols-3 sl-gap-8">
    <div class="sl-stack">
      <a href="/light/" class="demo-wordmark">Studio.</a>
      <p class="sl-text-muted">A little structure.<br />A lot of possibility.</p>
    </div>
    <nav class="sl-stack" aria-label="Example resource links">
      <h3 class="sl-text-lg">Resources</h3>
      <a href="/light/getting-started/">Documentation</a
      ><a href="/light/components/">Components</a><a href="/light/layouts/">Layouts</a>
    </nav>
    <nav class="sl-stack" aria-label="Example theme links">
      <h3 class="sl-text-lg">Make it yours</h3>
      <a href="/light/themes/">Design tokens</a
      ><a href="/downloads/styloft.min.css" download>Get the CSS</a>
    </nav>
  </div>
  <hr />
  <div class="sl-cluster sl-justify-between sl-help">
    <span>Illustrative footer · StyloftCSS</span><a href="#main">Back to top ↑</a>
  </div>
</footer>
HTML source · enable JavaScript for the playground22 lines · UTF-8

The minimal sign-off

Live preview
View HTML / PlaygroundHTML source
example.htmlHTML
<footer class="demo-footer-block sl-cluster sl-justify-between sl-gap-6">
  <a href="/light/" class="demo-wordmark">Notebook.</a>
  <p class="sl-help">Made for the web. Yours to shape.</p>
  <a href="/light/getting-started/">Start building ↗</a>
</footer>
HTML source · enable JavaScript for the playground5 lines · UTF-8

Call-to-action footer

Live preview

Make room for your next idea.

A small foundation. Your perspective.


Illustrative footer · MIT framework

View HTML / PlaygroundHTML source
example.htmlHTML
<footer class="sl-footer sl-stack sl-gap-6 sl-text-center">
  <h3 class="sl-text-xl">Make room for your next idea.</h3>
  <p class="sl-text-muted">A small foundation. Your perspective.</p>
  <div class="sl-cluster sl-justify-center">
    <a class="sl-btn sl-hover-fill" href="/light/getting-started/"
      >Let's build
      <svg
        viewBox="0 0 24 24"
        fill="none"
        stroke="currentColor"
        stroke-width="2"
        aria-hidden="true"
      >
        <path d="M5 12h14m-6-6 6 6-6 6" /></svg
    ></a>
  </div>
  <hr />
  <p class="sl-help">Illustrative footer · MIT framework</p>
</footer>
HTML source · enable JavaScript for the playground19 lines · UTF-8

Four-column resource footer

Live preview
View HTML / PlaygroundHTML source
example.htmlHTML
<footer class="sl-footer sl-grid sl-cols-1 sl-md:cols-4 sl-gap-8">
  <div>
    <h3 class="sl-text-lg">StyloftCSS</h3>
    <p class="sl-help sl-my-4">Style more. Load less.</p>
  </div>
  <nav class="sl-stack" aria-label="Learn footer example">
    <h3 class="sl-text-lg">Learn</h3>
    <a href="/light/getting-started/">Getting started</a
    ><a href="/light/themes/">Design tokens</a>
  </nav>
  <nav class="sl-stack" aria-label="Explore footer example">
    <h3 class="sl-text-lg">Explore</h3>
    <a href="/light/components/">Components</a
    ><a href="/light/themes/">Design tokens</a>
  </nav>
  <nav class="sl-stack" aria-label="Download footer example">
    <h3 class="sl-text-lg">Download</h3>
    <a href="/downloads/styloft.min.css">Core CSS</a
    ><a href="/light/themes/">Design tokens</a>
  </nav>
</footer>
HTML source · enable JavaScript for the playground21 lines · UTF-8

Compact app footer

Live preview
View HTML / PlaygroundHTML source
example.htmlHTML
<footer class="sl-footer sl-cluster sl-justify-between">
  <span class="sl-help">Illustrative workspace · All changes are examples</span>
  <nav class="sl-cluster" aria-label="Workspace footer example">
    <a class="sl-link sl-link--underline" href="/light/getting-started/">Help</a
    ><a href="/light/components/">Library</a><a href="#main">Back to top ↑</a>
  </nav>
</footer>
HTML source · enable JavaScript for the playground7 lines · UTF-8

Brand and downloads

Live preview
View HTML / PlaygroundHTML source
example.htmlHTML
<footer class="sl-footer sl-grid sl-md:cols-2 sl-gap-8">
  <div class="sl-stack">
    <h3 class="sl-text-xl">A little structure.<br />A lot of possibility.</h3>
    <p class="sl-text-muted">Optional modules, independently downloadable.</p>
  </div>
  <nav class="sl-stack" aria-label="Module download example">
    <a href="/downloads/variants.min.css" download>Component variants ↓</a
    ><a href="/downloads/motion.min.css" download>Motion primitives ↓</a
    ><a href="/downloads/responsive.min.css" download>Pixel breakpoints ↓</a>
  </nav>
</footer>
HTML source · enable JavaScript for the playground11 lines · UTF-8

Classes beginning with sl- come from StyloftCSS. Examples with demo- classes also use our optional demo extension CSS ↓. Load it after the core to reproduce those details.