ArekUI
Docs

Choose Theme

Switch between the five available themes with the toggles below, or pick one from the theme dropdown in the navbar.

1 · Load the files
<link rel="stylesheet" href="arekui.css">
<script src="arekui.js"></script>

The script powers the boxes below. Which data-theme values work depends on the CSS you load: arekui.css (this pair — the full build) → all five values · dist/css/arekui.min.css → light/dark only · dist/css/arekui.base.min.css + one add-on (arekui.neo.min.css, …) → only that value — hardcode it, no fallback. npm, CDN and bundler variants: Quick Start steps 3–11.

2 · Set the attribute
<html data-theme="dark">  <!-- light | dark | neo | pixel | brutalist -->

Set nothing and load no script? The stylesheet follows the system preference on its own (prefers-color-scheme).

3 · Runtime API
<script src="arekui.js"></script>

ArekUI.setTheme("neo");
ArekUI.getTheme();  // "neo"

Requires arekui.js · setTheme() applies immediately but does not save on its own — persist with localStorage.setItem('arekui-theme', theme); the toggle buttons below do this for you. On load the script restores the stored choice, else the system preference.

4 · Toggle buttons
<button data-ar-theme-toggle>Dark</button>
<button data-ar-neo-toggle>Neo</button>
<button data-ar-pixel-toggle>Pixel</button>
<button data-ar-brutalist-toggle>Brutalist</button>
<button data-ar-neo-toggle="pixel">Neo</button>

Requires arekui.js · data-ar-theme-toggle cycles light ↔ dark (from any other theme it jumps to dark) · each theme toggle flips between its theme and light; the attribute's value names any other theme: data-ar-neo-toggle="pixel" cycles neo ↔ pixel, data-ar-pixel-toggle="brutalist" cycles brutalist ↔ pixel — an unknown value falls back to light. Checkbox variants sync via checked; a button labelled Neo/Pixel updates text and aria automatically.