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
π¨ Design Tokens
Design tokens are CSS variables in src/app/globals.css, mapped into Tailwind v4 via @theme inline.
| Token | Dark | Light |
|---|---|---|
--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 itssetTimeoutwith a real request. Pair withSubmitButton(ui/submit-button.tsx) for the pending state. - Social links β the URLs in
siteConfig.linksare placeholders; replace them. - Copy actions β go through
copyWithToast()(src/lib/clipboard.ts). - Demo login β the login form is prefilled with a demo account (
DEMO_CREDENTIALSinsrc/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 (andtapotik-demo-poster.jpg) with your own product video, or swap the<video>insrc/components/site/video-dialog.tsxfor a YouTube / Vimeo<iframe>.