Documentation
Ardena
An admin dashboard template for teams that run AI agents next to their CRM: agent dashboards, a visual agent builder, AI chat, approvals, run traces, a knowledge base, a deals pipeline, contacts, inbox, calendar, invoices and more. It comes as a React + Vite edition and a Next.js edition that share the same pages.
Chapter 01
Welcome
Thank you for choosing Ardena. This guide is written for beginners: every step says what to type and what you should see. You do not need to read it all; use the chapter list on the left.
Ardena is a front-end template. Every page is filled with realistic sample data for a made-up company, "Fernwood Labs". There is no server, database or user account system, and the template never calls an outside service. When you are ready, you connect the pages to your own data (chapter 15).
About the AI features: every AI reply, agent run, trace, approval and metric in Ardena is simulated sample data. The template does not call OpenAI, Anthropic or any other AI provider, and needs no API key. The model names you see (Lumen-4, Quill-2, Vega-3) are made up. To use a real model, connect your own back end (chapter 15).
AI disclosure
AI tools were used to create this item: yes. The source code, this documentation and the sample text were written with the help of Claude by Anthropic, then checked and tested by us. No images in the item are AI-generated: Ardena uses no photos; avatars are initials and the logo is drawn in code. The template has no AI-powered features of its own (see the note above).
Chapter 02
What is in the download
| Folder or file | What it is |
|---|---|
source/ | The template: one project with both editions and the shared pages (a pnpm workspace). |
source/apps/react/ | React 19 + Vite + React Router edition. Every page is pre-rendered to HTML when you build. |
source/apps/nextjs/ | Next.js 16 edition (App Router), exported as static files. |
source/packages/core/ | Everything both editions share: pages, components, sample data, styles, menu and settings. |
documentation/ | This guide (HTML) and a PDF copy. |
README.md, LICENSE.txt, CHANGELOG.md | Quick start, licence terms and version history. |
Because both editions use the same pages, a change you make in packages/core shows in both. If you only need one edition, you can delete the other app folder.
Chapter 03
Requirements
- Node.js 22.12 or newer (Node.js 24 LTS recommended). Download it from nodejs.org.
- pnpm 11. Node.js includes a helper called Corepack that installs the right pnpm for you: run
corepack enableonce. - A code editor, for example Visual Studio Code.
- Basic knowledge of React and TypeScript helps, but you can change colours, text and the menu without it.
Chapter 04
Quick start
Open a terminal in the source folder and run:
corepack enable # once, installs pnpm 11
pnpm install # downloads the packages (about a minute)
pnpm dev # starts the React edition
Open http://localhost:5173. You should see the AI agents dashboard. Changes you save appear in the browser at once.
The Next.js edition
pnpm dev:next # opens on http://localhost:3000
All commands
Command (in source/) | What it does |
|---|---|
pnpm dev | React edition with live reload on port 5173. |
pnpm dev:next | Next.js edition with live reload on port 3000. |
pnpm build | Production build of both editions (build:react or build:next for one). |
pnpm preview | Serves the React production build so you can check it before you upload. |
pnpm typecheck | Checks the TypeScript types of every package. |
pnpm lint / pnpm format | Checks or fixes code style with Biome. |
pnpm test | Runs the end-to-end tests (chapter 17). |
Chapter 05
Pages
Ardena has 53 pages. The same addresses work in both editions (the Next.js edition adds a slash at the end, for example /crm/deals/).
| Dashboards 6 | |
|---|---|
| AI agents | /dashboards/ai-agents |
| CRM sales | /dashboards/crm |
| Analytics | /dashboards/analytics |
| E-commerce | /dashboards/ecommerce |
| Support desk | /dashboards/support |
| SaaS metrics | /dashboards/saas |
| AI workspace 9 | |
| Agents | /ai/agents |
| Agent builder | /ai/builder |
| AI chat | /ai/chat |
| Approvals | /ai/approvals |
| Runs and logs | /ai/runs |
| Run trace | /ai/runs/run_8842 |
| Knowledge base | /ai/knowledge |
| Prompt library | /ai/prompts |
| API keys and usage | /ai/api-keys |
| CRM 6 | |
| Deals | /crm/deals |
| Contacts | /crm/contacts |
| Contact profile | /crm/contacts/profile |
| Companies | /crm/companies |
| Leads | /crm/leads |
| Activities | /crm/activities |
| Apps 10 | |
| Inbox | /apps/inbox |
| Chat | /apps/chat |
| Calendar | /apps/calendar |
| Tasks | /apps/tasks |
| Invoices | /apps/invoices |
| Invoice INV-2041 | /apps/invoices/inv-2041 |
| New invoice | /apps/invoices/new |
| File manager | /apps/files |
| Users and roles | /apps/users |
| Notifications | /apps/notifications |
| Account 5 | |
| Profile | /account/profile |
| Settings | /account/settings |
| Billing | /account/billing |
| Pricing plans | /account/pricing |
| FAQ | /account/faq |
| Sign-in pages 6 | |
| Sign in | /auth/sign-in |
| Create your account | /auth/sign-up |
| Forgot password | /auth/forgot-password |
| Reset password | /auth/reset-password |
| Two-step check | /auth/two-factor |
| Locked | /auth/lock-screen |
| Status pages 4 | |
| Page not found | /status/404 |
| Something broke on our side | /status/500 |
| Down for maintenance | /status/maintenance |
| Coming soon | /status/coming-soon |
| UI kit 7 | |
| Components | /ui/components |
| Form elements and pickers | /ui/forms |
| Form wizard | /ui/forms/wizard |
| Form validation | /ui/forms/validation |
| Editors and uploads | /ui/forms/editors |
| Data tables | /ui/tables |
| Charts | /ui/charts |
Chapter 06
Screenshots
A few of the pages in light and dark mode, the customizer, the top-menu layout in right-to-left, and the phone layout.














Chapter 07
Where things are
source/
├─ apps/
│ ├─ react/ React + Vite edition
│ │ ├─ index.html page shell (title, description, favicon)
│ │ ├─ src/main.tsx starts the app
│ │ ├─ src/routes.tsx the route tree (built from lib/routes.ts)
│ │ ├─ scripts/prerender.mjs writes one HTML file per page at build time
│ │ ├─ e2e/ end-to-end tests
│ │ └─ public/ favicon and robots.txt
│ └─ nextjs/ Next.js edition
│ ├─ app/layout.tsx page shell and title template
│ ├─ app/(app)/… one page.tsx per dashboard page
│ ├─ app/(bare)/… sign-in and status pages
│ ├─ scripts/make-pages.mjs writes the page.tsx files from lib/routes.ts
│ └─ public/
└─ packages/core/src/ shared by both editions
├─ pages/ the 53 pages (dashboards, ai, crm, apps, account, auth, status, ui)
├─ components/ui/ buttons, inputs, dialogs, menus, tables… (shadcn/ui on Base UI)
├─ components/app/ the app frame, customizer, search menu, data table, cards
├─ components/charts/ chart components (Recharts)
├─ data/ ALL sample data, one file per area
├─ lib/ menu (nav.ts), routes (routes.ts), settings, formatting
└─ styles/ colours, fonts, size steps (globals.css)
Chapter 08
Theme settings and the customizer
The customizer (the palette button in the top bar) lets each user change the look. Their choice is saved in the browser (localStorage, key ardena-settings) and applied before the page paints, so there is no flash.
| Setting | Options |
|---|---|
| Mode | Light, dark, or follow the system |
| Brand colour | Jade (default), Cobalt, Iris, Ember, Rose, Graphite |
| Layout | Vertical sidebar, collapsed sidebar (icons only), top menu |
| Direction | Left to right, right to left |
| Control size | Small, default, large (every button, input and menu row moves one step: 20, 24, 28 or 32 px) |
| Content width | Fluid or boxed |
Change the defaults
Open packages/core/src/lib/settings.tsx and edit DEFAULT_SETTINGS:
export const DEFAULT_SETTINGS: Settings = {
mode: "light", // "light" | "dark" | "system"
brand: "jade", // "jade" | "cobalt" | "iris" | "ember" | "rose" | "graphite"
layout: "vertical", // "vertical" | "collapsed" | "horizontal"
dir: "ltr", // "ltr" | "rtl"
size: "md", // "sm" | "md" | "lg"
width: "fluid", // "fluid" | "boxed"
};
Users who already opened the site keep their saved choice. To see your new defaults, click Reset to defaults at the bottom of the customizer, or clear the site data in your browser.
Hide the customizer
In packages/core/src/components/app/shell.tsx, remove the button with aria-label="Open the customizer". The saved settings and the defaults still apply.
Chapter 09
Colours and fonts
All colours are CSS variables in packages/core/src/styles/globals.css. The :root block holds light mode and the .dark block holds dark mode. Tailwind classes such as bg-primary or text-muted-foreground read these variables, so a change there updates every page.
Change or add a brand colour
Each brand preset is a small block near the top of globals.css:
[data-brand="cobalt"] {
--brand: #2d5bd8; /* buttons, links, active menu row */
--brand-hover: #244bb8; /* button hover */
--brand-ink-l: #2349b5; /* brand text on light backgrounds */
--brand-ink-d: #8daeff; /* brand text on dark backgrounds */
}
To add your own: copy a block, give it a new name, then add the name to the Brand type and the BRANDS list in lib/settings.tsx. It then shows in the customizer. Keep text colours dark enough to read: the -ink colours should have a contrast of at least 4.5:1 against the background.
Fonts
Ardena uses Onest for the interface, Bricolage Grotesque for titles and numbers, and Fragment Mono for code and ids. They are installed from npm (Fontsource) and served from your own site, so no font request goes to another server. To change one, install another Fontsource package, replace its @import at the top of globals.css, and change --font-sans, --font-display or --font-mono.
Chapter 10
Logo and name
- Name in tab titles:
SITE_NAMEinpackages/core/src/lib/site.ts. - Logo and wordmark: the
Logocomponent at the top ofpackages/core/src/components/app/shell.tsx. Replace the drawn mark with your own<img>or SVG. - Favicon:
favicon.svginapps/react/publicandapps/nextjs/public. - Page description and theme colour:
apps/react/index.htmlandapps/nextjs/app/layout.tsx. - Workspace and user in the sample data:
WORKSPACEandMEinpackages/core/src/data/people.ts.
Chapter 11
Edit the sample content
Every number, name and message on the pages comes from packages/core/src/data/. Edit a file there and both editions change.
| File | Holds |
|---|---|
people.ts | The workspace, the signed-in user, team members, contacts and companies |
ai.ts | Agents, runs, traces, approvals, knowledge sources, prompts, API keys, chats |
crm.ts | Pipeline stages, deals, leads and activities |
dashboards.ts | The numbers and series behind the six dashboards |
apps.ts | Emails, calendar events, tasks, team chat, invoices, files, roles, plans, FAQ |
notifications.ts | The notifications in the top bar and on the Notifications page |
ui.ts | Rows for the data-table and chart examples in the UI kit |
The files are plain TypeScript arrays and objects, so your editor tells you at once if a field is missing.
Chapter 12
The menu
The sidebar, the collapsed sidebar, the top menu, the phone menu and the search menu (Ctrl/⌘ + K) all read one list: NAV in packages/core/src/lib/nav.ts.
{
title: "AI workspace",
items: [
{ title: "Agents", href: "/ai/agents", icon: IconRobot, badge: "12", badgeTone: "neutral" },
{ title: "Agent builder", href: "/ai/builder", icon: IconSitemap },
// a sub-menu:
{ title: "Dashboards", href: "/dashboards", icon: IconLayoutDashboard,
children: [{ title: "AI agents", href: "/dashboards/ai-agents" }] },
],
}
Icons come from Tabler Icons: import any icon from @tabler/icons-react (browse them at tabler.io/icons).
Chapter 13
Add a new page
- Create the page in
packages/core/src/pages/, for examplepages/crm/forecast.tsx. Copy a page that looks close to what you want; a page is a React component exported asdefault:import { PageHeader } from "../../components/app/parts"; export default function ForecastPage() { return <PageHeader title="Forecast" description="Expected revenue by month." />; } - Add a line to
ROUTESinpackages/core/src/lib/routes.ts:{ path: "/crm/forecast", title: "Forecast", layout: "app", module: "crm/forecast", load: () => import("../pages/crm/forecast") },layoutis"app"for a page inside the dashboard frame,"auth"for a sign-in style page, or"blank"for a full-screen page. - Add it to the menu in
lib/nav.ts(chapter 12). - React edition: nothing else to do; the router reads
ROUTES.
Next.js edition: runpnpm --filter @ardena/nextjs pages. It writes thepage.tsxfile for every route. When you remove a route, delete its folder underapps/nextjs/appas well.
Chapter 14
Components, icons and charts
- UI components (
components/ui): buttons, inputs, selects, dialogs, sheets, menus, tabs, tooltips, tables, calendars and more, based on shadcn/ui and Base UI. The UI kit pages show each one. - App components (
components/app): the app frame (shell.tsx), the customizer, the search menu, the data table with search, sort, paging and row selection (data-table.tsx), page headers, number cards and panels (parts.tsx). - Charts (
components/charts/charts.tsx): bar, area, line and donut charts and ranked bars, built on Recharts, in the brand colours and dark mode. - Size steps: every control uses one of four heights (20, 24, 28, 32 px). Set
data-controls="sm","md"or"lg"on any element to move everything inside it one step. - Extras: the agent builder uses React Flow, the rich text editor uses Tiptap, the boards use dnd-kit (mouse, touch and keyboard).
Chapter 15
Connect your own data
Pages import their data from packages/core/src/data. To show your own data, load it from your API instead. A simple pattern:
import { useEffect, useState } from "react";
import type { Contact } from "../../data/people";
export function useContacts() {
const [contacts, setContacts] = useState<Contact[]>([]);
useEffect(() => {
fetch("/api/contacts") // your own endpoint
.then((r) => r.json())
.then(setContacts);
}, []);
return contacts;
}
Then use useContacts() in the page where it now uses CONTACTS. Keep the same fields, and every table, filter and card keeps working. For real AI answers, call your own server from the chat page; keep API keys on the server, never in the browser.
Chapter 16
Put it online
React edition
Run pnpm build:react. Upload the contents of apps/react/dist to any static host. Every page is already written as HTML (dist/crm/deals/index.html and so on), so pages show at once, then become interactive. Tell your host to send index.html for addresses it does not know:
# nginx
location / { try_files $uri $uri/index.html /index.html; }
# Netlify: a file named _redirects in dist/
/* /index.html 200
To serve it from a sub-folder, build with pnpm --filter @ardena/react exec vite build --base=/ardena/ and then run node scripts/prerender.mjs in apps/react, or set base in apps/react/vite.config.ts.
Next.js edition
Run pnpm build:next. Upload the contents of apps/nextjs/out. Each page is a folder with an index.html, and 404.html is the not-found page. For a sub-folder, build with NEXT_BASE_PATH=/ardena pnpm build:next. To run it on a Node.js server or Vercel instead of static files, remove output: "export" from next.config.ts.
Chapter 17
Tests and code checks
The React edition has end-to-end tests (Playwright) in apps/react/e2e: every page opens with its title and no console errors, and the main flows work (customizer, search menu, AI chat, moving a deal with the keyboard, sign-in checks, table search and selection, the wizard).
pnpm --filter @ardena/react exec playwright install chromium # once
pnpm test
The tests start their own server on port 5199. To test a build that is already running, set BASE_URL, for example BASE_URL=http://localhost:4173 pnpm test.
Before release we also checked every page in both editions with axe-core (WCAG 2.1 AA, light and dark, phone and desktop) and the W3C HTML validator.
Chapter 18
Third-party services and licences
No paid service is needed. Ardena does not connect to any outside service, API or CDN: fonts, icons and scripts are part of your build and served from your own site. Your hosting, domain and any back end or AI provider you add later are third-party services with their own pricing, and you are responsible for their costs.
The open-source packages Ardena uses are installed from npm, each under its own licence (MIT, OFL or Apache 2.0, listed in chapter 21). None of them needs a paid licence. React Flow (agent builder) is MIT; it shows a small "React Flow" attribution link on the canvas, which the React Flow team asks you to keep unless you take their optional paid plan.
Chapter 19
Browser support
The latest two versions of Chrome, Edge, Firefox and Safari on desktop, Safari on iOS and Chrome on Android. Ardena uses modern CSS (Tailwind CSS 4, CSS variables, color-mix), so Internet Explorer is not supported.
Chapter 20
FAQ and troubleshooting
pnpm: command not found
Run corepack enable (it comes with Node.js 22), then open a new terminal.
pnpm install says "Unsupported engine"
Your Node.js is older than 22.12. Install the current LTS version from nodejs.org and run node -v to check.
Port 5173 or 3000 is already in use
Another app uses that port. Stop it, or start Ardena on another port: pnpm --filter @ardena/react exec vite --port 5180.
My new page shows "Page not found" in the Next.js edition
Run pnpm --filter @ardena/nextjs pages after adding the route (chapter 13).
I changed DEFAULT_SETTINGS but nothing changed
Your browser still has your earlier choice saved. Click Reset to defaults in the customizer.
Can I use only one edition?
Yes. Delete apps/react or apps/nextjs; the other keeps working.
Chapter 21
Credits
| Part | Used for | Licence |
|---|---|---|
| React 19 | UI library | MIT |
| React Router 8 | Routing in the React edition | MIT |
| Vite 8 | Dev server and build (React edition) | MIT |
| Next.js 16 | Next.js edition | MIT |
| Tailwind CSS 4 and tw-animate-css | Styles and animations | MIT |
| shadcn/ui | Starting point of the UI components | MIT |
| Base UI | Accessible menus, dialogs, selects, tabs | MIT |
| Recharts | Charts | MIT |
| React Flow (@xyflow/react) | Agent builder canvas | MIT |
| Tiptap | Rich text editor | MIT |
| dnd-kit | Drag and drop boards | MIT |
| cmdk | Search menu | MIT |
| Sonner | Toast messages | MIT |
| date-fns | Dates | MIT |
| React DayPicker | Date picker | MIT |
| input-otp | Two-step code input | MIT |
| class-variance-authority, clsx, tailwind-merge | Class name helpers | Apache 2.0, MIT, MIT |
| Tabler Icons | Icons | MIT |
| Onest (Fontsource) | Interface font | SIL Open Font License 1.1 |
| Bricolage Grotesque (Fontsource) | Titles and numbers | SIL Open Font License 1.1 |
| Fragment Mono (Fontsource) | Code and ids | SIL Open Font License 1.1 |
| Biome, Playwright, TypeScript | Code checks, tests, types | MIT / Apache 2.0 |
Images: Ardena contains no photos or stock images. The logo, avatars (initials) and the agent orb are drawn in code. Sample names, companies and numbers are made up; any likeness to real people or companies is by chance.
Chapter 22
Changelog
1.0.0 · 26 November 2026
- First release: 53 pages in a React 19 + Vite edition and a Next.js 16 edition with shared pages.
- Six dashboards (AI agents, CRM sales, analytics, e-commerce, support desk, SaaS metrics).
- AI workspace: agents, agent builder with a flow canvas, AI chat with simulated streaming replies and sources, approvals, runs and logs, run trace, knowledge base, prompt library, API keys and usage.
- CRM: deals pipeline (drag and drop, keyboard too), contacts, contact profile, companies, leads, activities.
- Apps: inbox, team chat, calendar, tasks, invoices (list, detail, new), file manager, users and roles, notifications. Account, pricing, FAQ, six sign-in pages and four status pages. UI kit, forms, wizard, validation, editors, data tables and charts.
- Customizer: light, dark and system mode, six brand colours, three layouts, right to left, three control sizes, fluid or boxed width.
- React edition pages are pre-rendered to HTML at build time.
- Accessibility checked with axe-core (WCAG 2.1 AA) on every page in light and dark mode, from phone to desktop; HTML checked with the W3C validator; end-to-end tests with Playwright.
Chapter 23
Support
Item support is included with your purchase for 6 months (you can extend it on ThemeForest). Use the Support tab on the Ardena item page on ThemeForest to contact us. Please tell us the edition (React or Next.js), what you did, what you expected and what happened, and add a screenshot if you can.
Support covers questions about the template's features, help with the steps in this guide, and fixes for bugs in the template. It does not cover changes or new features you build on top of it, or your own back end and third-party services.