Atrium
Tailwind CSS Admin Dashboard Template — version 1.0.0
Thank you for purchasing Atrium! Atrium is a static HTML admin template built with Tailwind CSS v4 and plain JavaScript. It has no jQuery, no chart library and no framework, so it drops into any backend: Laravel, Django, Rails, .NET, Node or plain PHP.
Getting started
Option 1 — use the HTML as is
The finished pages are in the root folder, the compiled stylesheet is assets/css/style.css and the scripts are in assets/js/. Open index.html in a browser and start editing.
Option 2 — build tools (recommended)
Requires Node.js 18 or newer.
npm install # installs Tailwind CSS
npm run dev # rebuilds pages and CSS while you edit
npm run build # production build (minified CSS)
With the build tools, edit files inside src/. The HTML files in the root are generated.
File structure
atrium/
├── *.html ← generated pages
├── assets/
│ ├── css/style.css ← compiled CSS
│ ├── js/main.js ← interactions
│ ├── js/charts.js ← SVG chart engine
│ └── img/favicon.svg
├── src/
│ ├── css/input.css ← tokens + components
│ ├── pages/*.html ← page content
│ └── partials/*.html ← sidebar, topbar, command palette…
├── documentation/
├── build.mjs ← page assembler (no dependencies)
└── package.json
Pages
| File | Description |
|---|---|
index.html | Commerce dashboard: KPIs with sparklines, revenue area chart, channel donut, orders, top products, activity, goal, countries |
analytics.html | Traffic line chart with metric switcher, conversion funnel, devices donut, hour heatmap, sources, stacked bars |
orders.html | Data table with search, status filter, sorting, pagination, bulk select and a "create order" modal |
products.html | Product grid with stock badges |
customers.html | Segments and customer cards, "add customer" modal |
invoice.html | Printable invoice with order timeline |
kanban.html | Drag-and-drop board |
calendar.html | Month calendar with agenda and "new event" modal |
inbox.html | Two-pane inbox with conversation thread |
settings.html | Tabbed settings: profile, team, notifications, billing (link with #billing) |
components.html | UI kit: every component in one place |
login.html, register.html, forgot-password.html | Authentication pages |
404.html | Not found page |
Editing & build
<!-- @page title="Orders — Atrium" description="…" active="orders" -->
<!-- @include shell-start -->
… page content …
<!-- @include shell-end -->
shell-start adds the sidebar and topbar; shell-end adds the footer and command palette. The active value highlights the sidebar item with the matching data-nav. To add a page, copy a file in src/pages, change the comment and content, add a link in src/partials/sidebar.html and run npm run build.
Colors & dark mode
All colors are CSS variables at the top of src/css/input.css, for light (:root) and dark (.dark). Change --brand to re-brand the whole dashboard, including charts.
Tailwind names: bg, panel, panel-2, ink, ink-2, muted, line, brand, teal, amber, rose, violet, plus -soft variants (e.g. bg-teal-soft text-teal).
Dark mode follows the system setting and is toggled by any [data-theme-toggle]; the choice is stored in localStorage.
Layout & sidebar
On desktop the sidebar collapses to icons with [data-sidebar-collapse] (remembered across pages). On mobile it slides in with [data-sidebar-open] and closes on backdrop click or Escape. Width is the --sidebar-w variable.
Charts
assets/js/charts.js is a small SVG chart engine with tooltips that redraws on resize and follows dark mode. Charts are declared in HTML:
<div class="chart h-72" data-chart="area" data-prefix="$"
data-labels='["Jan","Feb","Mar"]'
data-series='[{"name":"2026","color":"brand","data":[42,48,45]},
{"name":"2025","color":"muted","dashed":true,"data":[38,40,41]}]'></div>
| Type | Attributes |
|---|---|
line, area | data-labels, data-series (name, color, data, dashed, fill) |
bar | Same as line, plus data-stacked="true" |
donut | data-series with name, value, color; optional data-center, data-center-label |
spark | data-values='[1,2,3]', data-color |
Optional on all charts: data-prefix, data-suffix, data-label (accessible name). Colors can be token names (brand, teal…) or any CSS color. After changing attributes with JavaScript, call AtriumCharts.render(element).
Data tables
Wrap a table in [data-table data-page-size="10"]. Inside, these hooks are optional:
[data-table-search]— text input that filters rows[data-table-filter="status"]— a<select>or a group of buttons withdata-value; matchesdata-statuson each<tr>[data-sort="total" data-type="number"]on a header; cells usedata-col="total"and optionallydata-value[data-table-info],[data-table-prev],[data-table-next],[data-table-empty][data-select-all], row.checkboxes and a[data-bulk]bar with[data-bulk-count]
Other JavaScript
| Hook | Behavior |
|---|---|
[data-dropdown] + [data-dropdown-toggle] + .dropdown | Dropdown menus (close on outside click / Escape) |
[data-modal-open="id"], [data-modal-close] | Modals with focus return |
[data-cmdk-open] or Ctrl/⌘ + K | Command palette (edit items in partials/cmdk.html) |
[data-tabs], [data-seg] | Tabs (keyboard + URL hash) and segmented controls; data-seg data-target="chartId" swaps chart data |
[data-toast="Message"] / AtriumToast("Message") | Toast notifications |
[data-kanban] | Drag and drop between .kanban-list columns, with live counts |
form[data-validate] | Validation (required, email, minlength, data-match); data-success, data-redirect, data-keep |
[data-print], [data-copy], [data-year] | Print, copy to clipboard, current year |
Forms do not send data anywhere. Add your fetch() call where main.js says TODO: send the data to your backend.
Component classes
Defined in src/css/input.css: card, card-head, card-title, card-body, kpi-label, kpi-value, btn (+ btn-primary, btn-dark, btn-outline, btn-ghost, btn-danger, btn-sm, btn-lg), icon-btn, badge (+ color variants), avatar, input, label, switch, check, table, tabs/tab, seg, progress, modal, dropdown, toast, kbd, thumb-1…6. See components.html for live examples.
Credits
- Tailwind CSS v4 — MIT License
- Bricolage Grotesque, Inter, JetBrains Mono — SIL Open Font License 1.1
- html-validate (dev only) — MIT License
Icons, charts, thumbnails and illustrations are original and drawn with inline SVG and CSS, so there are no images to license or replace. All names, companies and numbers in the demo are fictional.
Changelog
1.0.0 — Initial release.
Support
Questions or bug reports? Contact us through the marketplace where you purchased Atrium. Support covers the included features and bug fixes; custom development is not included.