Setup & building
Do I need a server or Node.js?
Not to use the pages. Every page is a finished .html file: double-click index.html and it opens in the browser, no server needed. To put the template online, upload the built pages, the id/ folder and the assets/ folder to any static web host.
You need Node.js 18 or newer only when you edit the source and rebuild with node build.mjs. The build has no dependencies, so there is nothing to install. The translation helpers in tools/i18n/ need Python 3.
Why did my changes disappear after a build?
Because you edited a built page. The .html files in the template folder and in id/ are assembled by node build.mjs, and every build overwrites them. Make your changes in the source instead:
- Page content:
src/pages/. - The sidebar, top bar and other shared parts:
src/layout.html, the othersrc/layout-*.htmlfiles andsrc/partials/. The sidebar menu itself is theNAVlist inbuild.mjs. - CSS and JavaScript in
assets/are not generated — edit them directly. The one exception isassets/i18n/id.js, which the build writes fromi18n/id.json.
Do the pages need an internet connection?
No. Bootstrap, the icon fonts, ApexCharts, the other libraries and the Plus Jakarta Sans font are all included in assets/vendor/, so the template works offline and on an intranet. Only the links to the libraries’ own websites, in this documentation, go online. See Plugins & licenses.
Using it in your project
Can I use Selaras with React, Vue, Laravel or another framework?
Yes. Selaras is plain HTML, CSS and JavaScript and does not depend on a framework, so the general approach is the same everywhere:
- Take the markup from the built pages — the layout once, then the content of each page you need — and move it into your templates (Blade, Twig, JSX, Vue components…).
- Include
assets/css/selaras.cssafter Bootstrap’s CSS. All classes start withsl-, so they rarely clash with your own. - Include
assets/js/selaras.js, plus only the scripts a page lists in its meta comment.
The scripts attach their behavior to the elements present when they run. That fits server-rendered pages well. In a single-page app, where components appear and disappear later, keep the CSS and markup and re-create the behavior you need in your components.
How do I change the logo and the name?
- Logo — the mark is an SVG symbol with the id
sl-markinsrc/partials/symbols.html; its colors follow the active theme. Replace the shapes inside the symbol, or replace the<svg>that uses it with your own image. - Name — the sidebar in
src/layout.html, the header and footer of the sign-in pages insrc/partials/auth-top.htmlandauth-foot.html, and the browser tab suffix “Selaras Admin” insrc/partials/head.html. - Storefront — the tab suffix “Selaras Store” is set in
build.mjsand the footer insrc/layout-store.html. The store name in the header comes from the store data inassets/js/ecommerce.js, and can also be changed on E-commerce › Store settings.
Then search src/ for “Selaras” to catch the remaining mentions in the demo content, and rebuild.
How do I remove pages or apps I do not need?
- Delete the page from
src/pages/. - Remove its entry from
NAVinbuild.mjs. That removes it from the sidebar and from the page list on the 404 page. - Delete the scripts that only this page uses — they are listed in
"scripts"in its meta comment. Shared data files such asecommerce.js,warehouse.js,pos.jsandprojects.jsare loaded by several pages, so remove them only together with all of those pages. - Search
src/for links to the page (for example a dashboard card that opens an app) and remove them. - Rebuild, then delete the old built files —
page.htmlandid/page.html— yourself. The build does not remove pages it built earlier.
Behavior & appearance
The demo data does not come back
The apps save your changes in the browser’s localStorage, so they survive a reload. To start again:
- Use Reset demo data below the lists of the E-commerce, Invoices, Warehouse, Projects and Point of Sale apps, or Reset board on the Kanban board. Calendar and Chat do not save anything; they start fresh on every visit.
- Or clear the saved data yourself. All keys start with
sl-, and the Indonesian pages add@idat the end. In the browser’s developer tools, open Application › Local storage and delete them, or run this in the console — it also resets the theme settings:
Object.keys(localStorage)
.filter(function (k) { return k.indexOf('sl-') === 0; })
.forEach(function (k) { localStorage.removeItem(k); }); Dark mode does not apply to my own component
Dark mode sets data-sl-mode="dark" on the <html> element and redefines the color variables. A component with fixed colors such as #fff stays the same. Use the variables instead, and it follows every theme and both modes:
.my-panel {
background: var(--sl-surface);
color: var(--sl-ink);
border: 1px solid var(--sl-line);
}
/* only when a value really has to differ in dark mode */
[data-sl-mode="dark"] .my-panel { box-shadow: none; } See Themes & appearance for how the themes and dark mode are built.
Can I add another language?
Changing or adding Indonesian translations is a matter of editing the dictionary. A third language needs changes in the build and in the shared script — Languages lists what to change.
Browsers & accessibility
Which browsers are supported?
Selaras is developed and tested in current versions of Chrome and Edge. It uses standard, modern CSS such as color-mix(), so it needs an up-to-date browser; current Firefox and Safari support these features, but they are not part of our regular testing. Internet Explorer is not supported.
Is it accessible?
Accessibility was part of the design, but the template has not been through a formal audit, so test your finished product with your own users and tools. What is built in:
- The color themes are checked for WCAG AA contrast in light and dark mode and with every sidebar style.
- Visible focus styles for keyboard users, and keyboard alternatives for drag & drop on the Kanban board.
- Labels for icon-only buttons and live regions that announce changes, such as a saved item or the number of results after a search.
- Animations are turned off when the operating system asks for reduced motion.
Support
Support is provided through the page of the store where you bought Selaras. To get a quick answer, please include:
- The Selaras version you use — it is on the Getting started page and at the top of
assets/css/selaras.css. - Your browser and its version, and your operating system.
- The page, and the steps that lead to the problem.
- What you expected and what happened instead, with a screenshot and any error from the browser console.
- Whether you changed the source, and which files.
Credits
Selaras builds on open-source work, including Bootstrap, Tabler Icons and ApexCharts, and the libraries of the UI Kit pages. The Icons page shows Font Awesome Free icons by Fonticons, Inc., licensed under CC BY 4.0. The Font Awesome files carry the attribution in their own header comments, so keep those comments if you host the files yourself.
Every library, its version and its license are listed on Plugins & licenses.