Skip to content

Documentation

Customization

On this page

Tapotik AI is fully token-driven, so rebranding is fast and centralized. Here's how to make it yours.

πŸ–ŒοΈ Changing the Brand

  1. Colors

    Edit the CSS variables in src/app/globals.css (both :root and .dark).

  2. Site metadata

    Update siteConfig in src/config/site.ts (name, URL, socials).

  3. Replace the mark in src/components/logo.tsx and src/app/icon.svg.

  4. Fonts

    Swap fonts in src/app/layout.tsx (any Google font via next/font).

🎨 Design Tokens

Design tokens are CSS variables in src/app/globals.css, mapped into Tailwind v4 via @theme inline.

TokenDarkLight
--primary#5B5BF7#5B5BF7
--secondary#8B5CF6#8B5CF6
--accent#00F5D4#00C7AC
--pink#FF4ECD#FF4ECD
--background#050816#F7F8FC
--card#0E1325#FFFFFF

The brand color is single-sourced. Use the globals.css tokens for CSS/Tailwind classes; for SVG fills and Recharts, use brandHex from src/lib/brand-colors.ts.

✨ Custom Utilities

The template adds a set of utility classes on top of Tailwind:

  • Surfaces: glass, glass-strong, border-gradient
  • Text: text-gradient, text-gradient-pink, shimmer-text
  • Backgrounds: bg-grid, bg-dots
  • Layout: container-wide
  • Animations: animate-aurora, animate-float, animate-marquee, and more.

πŸŒ— Dark / Light Mode

Theming uses the .dark class strategy (via next-themes), not a media query. The @custom-variant dark in globals.css drives all dark-mode styling. Both themes are fully designed β€” the template is dark-first.

πŸ“ Editing Content

All copy and mock content is centralized in src/lib/data.ts β€” blog posts, job openings, docs navigation, pricing tiers, testimonials, and more. Dynamic routes (blog/[slug], careers/[slug]) key off this file via generateStaticParams, so adding an entry there automatically generates its page.

Navigation structure (navbar + footer) lives in src/config/site.ts.

🧱 Adding Components

src/components/ui/* are shadcn/ui new-york-style wrappers over Base UI. Add new primitives with:

npx shadcn@latest add [component]

components.json drives the registry configuration.

When adding interactive UI, follow the server-first + client island pattern: keep the page.tsx a Server Component and isolate interactivity into a colocated _components/*-client.tsx file marked 'use client'.

πŸ”Œ Wiring a Real Backend

When you're ready to go beyond UI-only, these are the swap-in points:

  • Forms β€” route submits through useSimulatedSubmit (src/lib/use-simulated-submit.ts); replace its setTimeout with a real request. Pair with SubmitButton (ui/submit-button.tsx) for the pending state.
  • Social links β€” the URLs in siteConfig.links are placeholders; replace them.
  • Copy actions β€” go through copyWithToast() (src/lib/clipboard.ts).
  • Demo login β€” the login form is prefilled with a demo account (DEMO_CREDENTIALS in src/app/(auth)/_components/login-form.tsx). Set both values to empty strings when you connect real auth; the hint above the form disappears with them.
  • Demo video β€” the hero Watch demo button opens public/video/tapotik-demo.webm (a recording of this template) in a lightbox. Replace the file (and tapotik-demo-poster.jpg) with your own product video, or swap the <video> in src/components/site/video-dialog.tsx for a YouTube / Vimeo <iframe>.