Blocks

Site footer

The site's footer: the wordmark across the page in the footer gray with the brand light through it, and a #262626 card rising over its descender with the link columns, the lockup and the legal line.

Install

React apps get the React files; every other stack gets the web component.

npx spyglass-ds add site-footer
<script type="module" src="/spyglass-ds/elements/site-footer.js"></script>
Six columns and a legal line

Usage

The foot of a marketing site's pages, as spyglass.so ends. For posts, ads and a plain band use the footer row or the footer block.

Never

  • The wordmark in a spectrum color or White: it is the footer gray, and the light is the only color in it
  • Links that move on hover, or social icons in color
  • Real company or customer names in the columns

Adds with it: ascii-drift, badge, brand-light, logo, site-header

Props

The web component takes the same as attributes or properties (<spyglass-site-footer>); title is heading there.

<SiteFooter>

PropTypeDefault
columnsSiteFooterColumn[]
legalReactNode

The line beside the lockup: "© 2026 Acme Inc."

homeHrefstring

Where the lockup links.

'/'
soonstring

The badge on a link that is not live yet.

'Coming soon'
wordmarkboolean

The big wordmark and its light above the card (on by default).

true
seednumber

The light's seed.

0
labelstring

The lockup's accessible name.

'Spyglass'
classNamestring

Examples

The same example in React and as web components; both render identically.

react/examples/site-footer/Site.tsx
import { SiteFooter } from '@/react/components/blocks/SiteFooter'
// The site's footer for Acme: six columns, a page that is not live yet, and the legal line.

const columns = [
  { title: 'Products', wide: true, links: [{ label: 'Search', href: '/search' }, { label: 'Archive', href: '/archive' }, { label: 'Insights', href: '/insights' }, { label: 'Alerts' }] },
  { title: 'Use cases', wide: true, links: [{ label: 'Paid ads', href: '/use-cases/paid' }, { label: 'Organic social', href: '/use-cases/organic' }, { label: 'Research', href: '/use-cases/research' }] },
  { title: 'Resources', links: [{ label: 'Docs', href: '/docs' }, { label: 'Blog', href: '/blog' }, { label: 'Templates', href: '/templates' }] },
  { title: 'Company', links: [{ label: 'About', href: '/about' }, { label: 'Contact', href: '/contact' }] },
  { title: 'Legal', links: [{ label: 'Terms', href: '/terms' }, { label: 'Privacy', href: '/privacy' }] },
  { title: 'Community', links: [{ label: 'X', href: 'https://x.com' }, { label: 'LinkedIn', href: 'https://linkedin.com' }] },
]

export default function Site() {
  return <SiteFooter columns={columns} legal="© 2026 Acme Inc." />
}
elements/examples/site-footer/Site.html
<!-- The site's footer for Acme: six columns, a page that is not live yet, and the legal line. -->
<spyglass-site-footer legal="© 2026 Acme Inc." columns='[{"title":"Products","wide":true,"links":[{"label":"Search","href":"/search"},{"label":"Archive","href":"/archive"},{"label":"Insights","href":"/insights"},{"label":"Alerts"}]},{"title":"Use cases","wide":true,"links":[{"label":"Paid ads","href":"/use-cases/paid"},{"label":"Organic social","href":"/use-cases/organic"},{"label":"Research","href":"/use-cases/research"}]},{"title":"Resources","links":[{"label":"Docs","href":"/docs"},{"label":"Blog","href":"/blog"},{"label":"Templates","href":"/templates"}]},{"title":"Company","links":[{"label":"About","href":"/about"},{"label":"Contact","href":"/contact"}]},{"title":"Legal","links":[{"label":"Terms","href":"/terms"},{"label":"Privacy","href":"/privacy"}]},{"title":"Community","links":[{"label":"X","href":"https://x.com"},{"label":"LinkedIn","href":"https://linkedin.com"}]}]'></spyglass-site-footer>

Source

react/components/blocks/SiteFooter.tsx
'use client'
import type { ReactNode } from 'react'
import { Badge } from '@/react/components/ui/Badge'
import { BrandLight } from '@/react/components/visuals/BrandLight'
import { Logo } from '@/react/components/visuals/Logo'
import { cn } from '@/react/lib/cn'
import { LOGOS } from '@/lib/logos'
import { homeLinkClick } from '@/lib/home-link'
import { asciiDriftStyleObject } from '@/lib/ascii-drift'

// The site's footer (site/Footer): the wordmark across the page width in the footer gray (#373737), the brand light
// running through its lower half, and a #262626 card with a #363636 hairline and the 8px corner rising over the
// wordmark's descender. In the card: the link columns (a Funnel Display 20/24 title over #D4D4D4 16/24 links, six
// across from 1280, three from 768, two on phones, the wide ones two by two), then under a hairline the lockup and the
// legal line in #A3A3A3 14/20. A link without `href` is not live yet: it shows in #858585 with a "Coming soon" badge.
// Links turn White under the pointer; nothing moves. The light is decoration and stays still.
export interface SiteFooterLink {
  label: string
  /** Leave it out for a page that is not live yet. */
  href?: string
}

export interface SiteFooterColumn {
  title: string
  links: SiteFooterLink[]
  /** On phones, a column across the card with its links two by two. */
  wide?: boolean
}

export interface SiteFooterProps {
  columns: SiteFooterColumn[]
  /** The line beside the lockup: "© 2026 Acme Inc." */
  legal?: ReactNode
  /** Where the lockup links. */
  homeHref?: string
  /** The badge on a link that is not live yet. */
  soon?: string
  /** The big wordmark and its light above the card (on by default). */
  wordmark?: boolean
  /** The light's seed. */
  seed?: number
  /** The lockup's accessible name. */
  label?: string
  className?: string
}

const LINK = 'flex min-h-10 items-center rounded-ds-sm type-body text-fg-soft transition-[color] duration-160 ease-out hover:text-fg md:block md:min-h-0 md:py-1'

/** The wordmark as a mask image, so the light shows only inside the letters. */
function wordmarkMask() {
  const w = LOGOS.wordmark
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${w.width} ${w.height}" fill="#000">${w.body}</svg>`
  return `url("data:image/svg+xml,${encodeURIComponent(svg)}")`
}

export function SiteFooter({ columns, legal, homeHref = '/', soon = 'Coming soon', wordmark = true, seed = 0, label = 'Spyglass', className }: SiteFooterProps) {
  const w = LOGOS.wordmark
  const mask = wordmarkMask()
  return (
    <footer data-ds="site-footer" className={cn('relative isolate bg-surface pt-(--ds-layout-section) text-fg', className)}>
      <span aria-hidden="true" className="pointer-events-none absolute top-[40%] bottom-0 left-0 -z-1 hidden w-[max(var(--ds-space-5xl),calc((100%-var(--ds-layout-content))/2))] select-none lg:block" style={asciiDriftStyleObject('column', 'left', 'hero')} />
      <span aria-hidden="true" className="pointer-events-none absolute top-[40%] right-0 bottom-0 -z-1 hidden w-[max(var(--ds-space-5xl),calc((100%-var(--ds-layout-content))/2))] select-none lg:block" style={asciiDriftStyleObject('scatter', 'right', 'hero')} />
      <span aria-hidden="true" className="pointer-events-none absolute inset-x-0 bottom-0 -z-1 hidden h-40 select-none lg:block" style={asciiDriftStyleObject('mass', 'bottom', 'hero')} />
      <div className="mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)">
        {wordmark && (
          <div aria-hidden="true" className="relative w-full" style={{ aspectRatio: `${w.width} / ${w.height}` }}>
            <svg viewBox={`0 0 ${w.width} ${w.height}`} className="absolute inset-0 block size-full fill-wordmark-gray" dangerouslySetInnerHTML={{ __html: w.body }} />
            <div className="absolute inset-0" style={{ maskImage: mask, WebkitMaskImage: mask, maskSize: '100% 100%', WebkitMaskSize: '100% 100%', maskRepeat: 'no-repeat', WebkitMaskRepeat: 'no-repeat' }}>
              <BrandLight variant="curved-strip" seed={seed} ground={false} cover className="absolute inset-x-0 top-1/4 h-3/4 mix-blend-screen" />
            </div>
          </div>
        )}
        <div className={cn('relative z-1 pb-8', wordmark && '-mt-[2.54%]')}>
          <div className="rounded-panel border border-edge bg-surface-raised px-12 pt-12 max-md:px-6 max-md:pt-8">
            <nav aria-label="Footer">
              <div className="grid grid-cols-2 gap-x-6 gap-y-8 md:grid-cols-3 md:gap-y-12 xl:grid-cols-6">
                {columns.map((c) => (
                  <div key={c.title} className={cn(c.wide && 'max-md:col-span-full')}>
                    <h2 className="mb-4 type-heading-4 text-fg">{c.title}</h2>
                    <ul role="list" className={cn(c.wide && 'max-md:grid max-md:grid-cols-2 max-md:gap-x-6')}>
                      {c.links.map((l) => (
                        <li key={l.label}>
                          {l.href ? (
                            <a href={l.href} className={LINK}>{l.label}</a>
                          ) : (
                            <span aria-disabled="true" className="flex min-h-10 flex-wrap items-center gap-x-2 type-body text-fg-faint md:min-h-0 md:py-1">{l.label}<Badge variant="secondary">{soon}</Badge></span>
                          )}
                        </li>
                      ))}
                    </ul>
                  </div>
                ))}
              </div>
            </nav>
            <div className="mt-16 flex items-center justify-between gap-6 border-t border-edge pt-5 pb-6 max-md:mt-12 max-sm:flex-col max-sm:items-start">
              <a href={homeHref} aria-label={label} onClick={(e) => homeLinkClick(e.nativeEvent)} className="rounded-ds-sm"><Logo height={20} label={label} /></a>
              {legal && <p className="type-ui text-fg-muted">{legal}</p>}
            </div>
          </div>
        </div>
      </div>
    </footer>
  )
}

export default SiteFooter
react/lib/cn.ts
// Joins class names, skipping falsy ones: cn('a', on && 'b', ['c', undefined]). It does not merge conflicting
// utilities (no tailwind-merge), as Vue's class binding does not: the library's classes are written not to compete,
// and a className from the caller is appended after them, as Vue appends a fallthrough class.
export type ClassValue = string | false | null | undefined | 0 | ClassValue[]

export function cn(...values: ClassValue[]): string {
	const out: string[] = []
	for (const v of values) {
		if (!v) continue
		if (Array.isArray(v)) {
			const s = cn(...v)
			if (s) out.push(s)
		}
		else out.push(v)
	}
	return out.join(' ')
}
elements/components/blocks/site-footer.ts
import { html, nothing } from 'lit'
import { styleMap } from 'lit/directives/style-map.js'
import { unsafeSVG } from 'lit/directives/unsafe-svg.js'
import { DsElement, define, HostLayoutController } from '@/elements/lib/element'
import { LOGOS } from '@/lib/logos'
import '@/elements/components/ui/badge'
import '@/elements/components/visuals/brand-light'
import '@/elements/components/visuals/logo'
import styles from 'virtual:tw'
import { homeLinkClick } from '@/lib/home-link'
import { asciiDriftStyle } from '@/lib/ascii-drift'

// SiteFooter.tsx as <spyglass-site-footer>: the wordmark in the footer gray with the brand light through its lower
// half, and the #262626 card over its descender with the link `columns` ({ title, links: { label, href? }[], wide? }),
// the lockup and the `legal` line. A link without `href` shows the `soon` badge. Nothing moves.
export interface SiteFooterLink { label: string; href?: string }
export interface SiteFooterColumn { title: string; links: SiteFooterLink[]; wide?: boolean }

const LINK = 'flex min-h-10 items-center rounded-ds-sm type-body text-fg-soft transition-[color] duration-160 ease-out hover:text-fg md:block md:min-h-0 md:py-1'

function wordmarkMask() {
	const w = LOGOS.wordmark
	const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${w.width} ${w.height}" fill="#000">${w.body}</svg>`
	return `url("data:image/svg+xml,${encodeURIComponent(svg)}")`
}

/**
 * @summary The site's footer: the big wordmark with the light, and the card of link columns.
 */
export class SiteFooter extends DsElement {
	static styles = [DsElement.styles, styles]
	protected readonly layout = new HostLayoutController(this, () => this.renderRoot.querySelector<HTMLElement>('[data-ds="site-footer"]'))
	static properties = { columns: { type: Array }, legal: {}, homeHref: { attribute: 'home-href' }, soon: {}, wordmark: { type: Boolean }, seed: { type: Number }, label: {} }
	columns: SiteFooterColumn[] = []
	/** The line beside the lockup. */
	legal?: string
	/** Where the lockup links. */
	homeHref = '/'
	/** The badge on a link that is not live yet. */
	soon = 'Coming soon'
	/** The big wordmark and its light (on by default; set the property to false to leave them out). */
	wordmark = true
	/** The light's seed. */
	seed = 0
	/** The lockup's accessible name. */
	label = 'Spyglass'

	render() {
		const w = LOGOS.wordmark
		const mask = wordmarkMask()
		const masked = { maskImage: mask, WebkitMaskImage: mask, maskSize: '100% 100%', WebkitMaskSize: '100% 100%', maskRepeat: 'no-repeat', WebkitMaskRepeat: 'no-repeat' }
		const columns = this.columns ?? []
		return html`<footer data-ds="site-footer" class="relative isolate bg-surface pt-(--ds-layout-section) text-fg"><span aria-hidden="true" class="pointer-events-none absolute top-[40%] bottom-0 left-0 -z-1 hidden w-[max(var(--ds-space-5xl),calc((100%-var(--ds-layout-content))/2))] select-none lg:block" style=${asciiDriftStyle('column', 'left', 'hero')}></span><span aria-hidden="true" class="pointer-events-none absolute top-[40%] right-0 bottom-0 -z-1 hidden w-[max(var(--ds-space-5xl),calc((100%-var(--ds-layout-content))/2))] select-none lg:block" style=${asciiDriftStyle('scatter', 'right', 'hero')}></span><span aria-hidden="true" class="pointer-events-none absolute inset-x-0 bottom-0 -z-1 hidden h-40 select-none lg:block" style=${asciiDriftStyle('mass', 'bottom', 'hero')}></span><div class="mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)">${this.wordmark ? html`<div aria-hidden="true" class="relative w-full" style=${styleMap({ aspectRatio: `${w.width} / ${w.height}` })}><svg viewBox="0 0 ${w.width} ${w.height}" class="absolute inset-0 block size-full fill-wordmark-gray">${unsafeSVG(w.body)}</svg><div class="absolute inset-0" style=${styleMap(masked)}><spyglass-brand-light variant="curved-strip" seed=${this.seed} ground="false" cover class="absolute inset-x-0 top-1/4 h-3/4 mix-blend-screen"></spyglass-brand-light></div></div>` : nothing}<div class=${this.wordmark ? 'relative z-1 pb-8 -mt-[2.54%]' : 'relative z-1 pb-8'}><div class="rounded-panel border border-edge bg-surface-raised px-12 pt-12 max-md:px-6 max-md:pt-8"><nav aria-label="Footer"><div class="grid grid-cols-2 gap-x-6 gap-y-8 md:grid-cols-3 md:gap-y-12 xl:grid-cols-6">${columns.map((c) => html`<div class=${c.wide ? 'max-md:col-span-full' : ''}><h2 class="mb-4 type-heading-4 text-fg">${c.title}</h2><ul role="list" class=${c.wide ? 'max-md:grid max-md:grid-cols-2 max-md:gap-x-6' : ''}>${c.links.map((l) => html`<li>${l.href ? html`<a href=${l.href} class=${LINK}>${l.label}</a>` : html`<span aria-disabled="true" class="flex min-h-10 flex-wrap items-center gap-x-2 type-body text-fg-faint md:min-h-0 md:py-1">${l.label}<spyglass-badge variant="secondary">${this.soon}</spyglass-badge></span>`}</li>`)}</ul></div>`)}</div></nav><div class="mt-16 flex items-center justify-between gap-6 border-t border-edge pt-5 pb-6 max-md:mt-12 max-sm:flex-col max-sm:items-start"><a href=${this.homeHref} aria-label=${this.label} @click=${homeLinkClick} class="rounded-ds-sm"><spyglass-logo height="20" aria-label=${this.label}></spyglass-logo></a>${this.legal ? html`<p class="type-ui text-fg-muted">${this.legal}</p>` : nothing}</div></div></div></div></footer>`
	}
}

define('site-footer', SiteFooter)

Reference: Site site/Footer (Footer.tsx, Footer.module.css): card 48px in with a #363636 hairline and the 8px corner, titles Funnel Display 20/24, links DM Sans 16/24 #D4D4D4, six columns from 1280, the wordmark in --grey-wordmark #373737 overlapped by half its descender.