BlogGetting startedHTML edition
How to run the Palatian HTML edition locally and build it with Vite
Open the built pages straight from the dist folder, or install Node.js 20 and run the Vite dev server when you want to edit the SCSS, the partials or the engine. The npm scripts and what each one does.

There are two ways to work with the HTML edition. If you only want to edit the pages, you need nothing but a text editor. If you want to change the SCSS, reuse the page partials or extend the engine, you build with Vite. Both are quick.
Without a build step
- Unzip the download and open
dist/index.htmlin a browser. The built pages are plain HTML and link one stylesheet and one script with relative paths, so they work straight from disk. - To put the admin on a server, upload the
dist/folder as it is.server-config/apache.htaccessandserver-config/nginx.confcarry the security headers and cache rules the pages expect. - Edit the HTML files directly. Replace the demo text, the avatars in
assets/img/avatars/and the brand name in the dock and on the authentication pages.
The pages load the three typefaces from Google Fonts, so a page opened from disk needs an internet connection to show them; without one it falls back to the system font. Everything else is local.
With the build
The build needs Node.js 20 or newer. From the palatian-v1.5.0/ folder:
npm install
npm run dev # Vite dev server with live reload at http://localhost:5173
npm run build # writes the production files to dist/
In development you edit src/:
src/*.htmlare the pages, assembled from the Handlebars partials insrc/partials/, so the dock, panel and toolbar live in one place.src/scss/holds the styles._variables.scsshas the Bootstrap overrides,_tokens.scssthe surface and scheme custom properties,_prefs.scssthe theme-settings options and_luxe.scssthe depth and material layer.src/js/is the engine: layout, command bar, inspector, automations, forms, preferences, chart helpers, data table, and page initialisers insrc/js/pages/.public/is copied intodist/unchanged.
What npm run build does
The script runs several steps in a row: it syncs the vendor files, builds the theme bundle (vite.lib.config.js), the charts bundle (vite.charts.config.js) and the calendar bundle (vite.calendar.config.js), then the pages (vite.config.js), and finishes with a post-build step. The result is dist/ with palatian.min.css, its right-to-left twin generated by rtlcss, the three scripts, and a Content Security Policy meta tag on every page whose hash matches the small theme-restore snippet in the head.
The other scripts
| Command | What it does |
|---|---|
npm run preview | Serves the built dist/ folder locally. |
npm test | The smoke test: opens every page in a browser and checks it (Playwright is a development dependency). |
npm run icons | Rebuilds the Palatian icon font from scripts/icons/build-icons.js: the SVGs, the four fonts, the CSS and the preview page. |
npm run screenshots | Takes the preview screenshots of the pages. |
npm run map | Regenerates the dashboard's world map partial. |
Building without the Content Security Policy
Every built page carries a <meta http-equiv="Content-Security-Policy"> that allows scripts only from the site itself. If you add a script from a CDN, add its origin to script-src in vite.config.js; to leave the tag out altogether, build with the environment variable PALATIAN_CSP=off (the older name TESSERA_CSP=off still works). More in troubleshooting.
The React edition needs this build to have run once, because it copies the stylesheet, fonts and icons from dist/. See running the React edition.