Skip to content
HTML Templates For Developers

Documentation

Cartwheel — E-commerce Admin Dashboard

Version 1.0.0 · Vanilla HTML · 14 files · 147 KB

Back to the template

Getting started

  1. Unzip the download and open index.html in a browser. No server, installation or build step is needed.
  2. Edit the text directly in the HTML files.
  3. Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
  4. Replace the artwork in assets/images/ with your own images.
  5. Upload the whole folder to any static host.

File structure

The download contains these 14 files:

  • LICENSE.txt1.8 KB
  • README.md3.1 KB
  • assets/css/style.css27 KB
  • assets/fonts/outfit-LICENSE.txt4.3 KB
  • assets/fonts/outfit-latin-wght-normal.woff232 KB
  • assets/images/favicon.svg413 B
  • assets/js/main.js48 KB
  • assets/vendor/chartjs/LICENSE.txt1.1 KB
  • assets/vendor/chartjs/chart.umd.min.js205 KB
  • documentation/index.html14 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html11 KB
  • orders.html8.9 KB
  • products.html15 KB

Colours

These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.

  • --c-side#1C1917
  • --c-side-2#292524
  • --c-side-line#3A3532
  • --c-side-text#D6D3D1
  • --c-bg#FAFAF9
  • --c-surface#FFFFFF
  • --c-line#E7E5E4
  • --c-line-strong#D6D3D1
  • --c-ink#1C1917
  • --c-muted#57534E
  • --c-soft#F5F5F4
  • --c-orange#F97316
  • --c-orange-deep#EA580C
  • --c-orange-ink#C2410C
  • --c-orange-soft#FFEDD5
  • --c-green#15803D
  • --c-green-soft#DCFCE7
  • --c-red#B91C1C

Interactive features

Dashboard range and chart

buildSeries() in assets/js/main.js generates the daily numbers. Replace it with your own array of {date, revenue, orders, sessions} for the last 180 days, oldest first; tiles, chart and top products all read from it.

Product catalogue

Edit the products array at the top of assets/js/main.js. Each product has a kind that selects its SVG artwork, plus c and l colours. Set img to an image URL to use a real photo instead of the drawing.

Add-product form with image preview

The submit handler in initProducts() validates the fields and pushes a product into memory. The chosen image is read with FileReader and shown locally. To store it, upload fileInput.files[0] to your server there.

Order drawer and status update

Orders live in the orders array as [productId, quantity] pairs. The status form handler in initOrders() changes the status in memory; send the new status to your API there.

Shipping rule

FREE_SHIPPING_OVER and SHIPPING_FEE near the top of the script control the shipping line in order totals.

Customisation notes

Accent colour

The orange is --c-orange with --c-orange-ink for text on white. Primary buttons and the active sidebar item use dark text on orange to keep contrast above 4.5:1; keep that pairing if you pick another accent.

Chart colours

The sales chart reads --c-orange-deep, --c-line and --c-muted from :root when it is created, so changing those tokens restyles it without touching the script.

Sidebar width

--side-w in :root sets the sidebar width. The content column offset follows it automatically from 1024px up.

Adding a page

Copy orders.html, keep the sidebar and top bar markup, add a link to the sidebar in every page and call a new init function from the DOMContentLoaded handler in main.js.

Order statuses

STATUSES and STATUS_LABEL in assets/js/main.js drive the tabs, the drawer select and the status chips. Add a matching .status--name rule in the stylesheet for any new status.

What is front-end only

This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.

  • All products, orders and metrics are sample data generated in JavaScript; nothing is saved and changes reset when the page reloads.
  • The add-product form only adds the product to the page. The chosen image is previewed in the browser with FileReader and is never uploaded.
  • Order status updates and reorder buttons change the demo data in memory only and do not contact any service.

Bundled components and licences

Everything the template needs is inside the download; nothing is loaded from the network.

  • Outfit typeface — OFL-1.1 (assets/fonts/outfit-LICENSE.txt)
  • Chart.js 4.6.1 — MIT (assets/vendor/chartjs/LICENSE.txt)
  • Lucide icons (inlined SVG) — ISC (documentation/licenses/lucide-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.