ShiftFast Docs

Customization

Make it yours — name, logo, colors, fonts, favicon, and social image.

Name and description

SITE_NAME and SITE_DESCRIPTION in src/lib/seo.ts drive the page titles, meta descriptions, social cards, and structured data. Change them once and every page picks them up.

  • Wordmark — src/components/shared/wordmark.tsx renders the text logo used in the nav, footer, and docs sidebar. Replace the markup with your product name, or with an <Image> if your logo is an image.
  • Logo mark — src/app/[locale]/(marketing)/_components/logo.tsx holds the mark as an inline SVG. Replace its <polygon> with your own; keeping fill="currentColor" makes it adapt to light and dark mode.
  • public/logo.svg — a static copy of the mark for search engines' structured data. Update it along with the component.

Colors and dark mode

All colors are CSS variables in src/app/globals.css, defined for light mode under :root and overridden under .dark:

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  /* ...border, ring, chart-1..5, sidebar-*, etc. */
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  /* ... */
}

Every component and Tailwind utility (bg-primary, text-foreground) reads from these, so changing them rebrands the whole app.

Rather than hand-picking values, generate a palette with shadcn's theme builder and paste the variables into globals.css.

Dark mode is handled by next-themes, which toggles the .dark class on <html>.

Fonts

Fonts are loaded with next/font/google in src/app/[locale]/layout.tsx and exposed as CSS variables: Inter as --font-sans and Geist Mono as --font-geist-mono. To swap one, import a different font and assign it to the same variable — nothing else needs to change:

import { Manrope } from 'next/font/google'

const inter = Manrope({ subsets: ['latin'], variable: '--font-sans' })

Use next/font/local for a self-hosted font.

Favicon

src/app/icon.svg is picked up automatically by Next.js. Replace it with your own mark. Its colors are hardcoded, since browser tabs don't follow your site's theme.

Social share image

src/app/[locale]/opengraph-image.tsx generates the 1200×630 preview image shown when a link is shared, rendering SITE_NAME and SITE_DESCRIPTION onto a dark card. Edit its JSX to change the design.

It's one image per locale, shared by every page. For per-page images (a blog post's own title, say), add an opengraph-image.tsx next to that route.

On this page