> For the complete documentation index, see [llms.txt](https://bhplugin.gitbook.io/tapotik-ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bhplugin.gitbook.io/tapotik-ai/customization.md).

# Customization

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

## 🖌️ Changing the Brand

{% stepper %}
{% step %}

### Colors

Edit the CSS variables in `src/app/globals.css` (both `:root` and `.dark`).
{% endstep %}

{% step %}

### Site metadata

Update `siteConfig` in `src/config/site.ts` (name, URL, socials).
{% endstep %}

{% step %}

### Logo

Replace the mark in `src/components/logo.tsx` and `src/app/icon.svg`.
{% endstep %}

{% step %}

### Fonts

Swap fonts in `src/app/layout.tsx` (any Google font via `next/font`).
{% endstep %}
{% endstepper %}

## 🎨 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` |

{% hint style="info" %}
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`.
{% endhint %}

## ✨ 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:

```bash
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`).
