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.

If you add Tailwind classes that are not used anywhere in the template yet, rebuild the CSS with option 2.

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

FileDescription
index.htmlCommerce dashboard: KPIs with sparklines, revenue area chart, channel donut, orders, top products, activity, goal, countries
analytics.htmlTraffic line chart with metric switcher, conversion funnel, devices donut, hour heatmap, sources, stacked bars
orders.htmlData table with search, status filter, sorting, pagination, bulk select and a "create order" modal
products.htmlProduct grid with stock badges
customers.htmlSegments and customer cards, "add customer" modal
invoice.htmlPrintable invoice with order timeline
kanban.htmlDrag-and-drop board
calendar.htmlMonth calendar with agenda and "new event" modal
inbox.htmlTwo-pane inbox with conversation thread
settings.htmlTabbed settings: profile, team, notifications, billing (link with #billing)
components.htmlUI kit: every component in one place
login.html, register.html, forgot-password.htmlAuthentication pages
404.htmlNot 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>
TypeAttributes
line, areadata-labels, data-series (name, color, data, dashed, fill)
barSame as line, plus data-stacked="true"
donutdata-series with name, value, color; optional data-center, data-center-label
sparkdata-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:

Other JavaScript

HookBehavior
[data-dropdown] + [data-dropdown-toggle] + .dropdownDropdown menus (close on outside click / Escape)
[data-modal-open="id"], [data-modal-close]Modals with focus return
[data-cmdk-open] or Ctrl/⌘ + KCommand 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

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.