ArekUI
Docs

Quick Start

Install via your package manager, load from a CDN, or just link the files — then pick one of three CSS builds.

1 · Install via package manager
pnpm add arekui
2 · Link the files
<link rel="stylesheet" href="node_modules/arekui/arekui.css">
<script src="node_modules/arekui/arekui.js"></script>

Or copy arekui.css + arekui.js into your project and link them like any static file. This pair is the full build — every theme included. The script is optional: it powers the interactive behaviors from data-ar-* attributes — annotate your markup (e.g. data-ar-open="my-modal" on a button) and the script attaches modals, tabs, sidebars, carousels, rating and theme toggles for you, no custom JS. Shorter CSS options: steps 3–5, or the same three builds from a CDN (6–8) or a bundler (9–11).

3 · Full build — every theme in one file
<link rel="stylesheet" href="dist/css/arekui.full.min.css">
<script src="dist/js/arekui.min.js"></script>

One file, every theme. Same content as the root arekui.css above, minified. All five data-theme values work (step 12).

4 · Default build — base + light/dark
<link rel="stylesheet" href="dist/css/arekui.min.css">
<script src="dist/js/arekui.min.js"></script>

Smaller — base plus light/dark only. Pair the base with a theme add-on (step 5) for neo, pixel or brutalist.

5 · Base + exactly one theme
<link rel="stylesheet" href="dist/css/arekui.base.min.css">
<link rel="stylesheet" href="dist/css/arekui.neo.min.css">  <!-- or default / pixel / brutalist -->
<script src="dist/js/arekui.min.js"></script>

Smallest — each add-on file is self-contained. Swap arekui.neo.min.css for the theme you want, then hardcode the matching data-theme (step 12); this pairing has no light/dark fallback.

6 · CDN — full build
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/arekui@2/dist/css/arekui.full.min.css">
<script src="https://cdn.jsdelivr.net/npm/arekui@2/dist/js/arekui.min.js"></script>

Minified — best for production. Prefer readable source for learning or debugging? Point the same tags at the package root: https://cdn.jsdelivr.net/npm/arekui@2/arekui.css (the full build).

7 · CDN — default build
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/arekui@2/dist/css/arekui.min.css">
<script src="https://cdn.jsdelivr.net/npm/arekui@2/dist/js/arekui.min.js"></script>

The default build over CDN — light/dark only. Theme add-ons are available as CDN URLs too (step 8).

8 · CDN — base + one theme
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/arekui@2/dist/css/arekui.base.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/arekui@2/dist/css/arekui.neo.min.css">
<script src="https://cdn.jsdelivr.net/npm/arekui@2/dist/js/arekui.min.js"></script>

Pair the base URL with exactly one self-contained add-on (arekui.default.min.css / arekui.neo.min.css / arekui.pixel.min.css / arekui.brutalist.min.css), then hardcode the matching data-theme (step 12).

9 · Bundler — full build
import "arekui/arekui.css";
import "arekui/arekui.js";

The JS import is optional — skip it for CSS-only pages. It scans your markup for data-ar-* attributes (data-ar-open, data-ar-tab, data-ar-sidebar-toggle, data-ar-theme-toggle, …) and attaches the behaviors. A plain <script> tag works too (step 2).

10 · Bundler — default build
import "arekui/dist/css/arekui.min.css";
import "arekui/arekui.js";

Light + dark only. JS note: step 9.

11 · Bundler — base + one theme
import "arekui/dist/css/arekui.base.min.css";
import "arekui/dist/css/arekui.neo.min.css";  // or default / pixel / brutalist
import "arekui/arekui.js";

Custom pairing — hardcode the matching data-theme (step 12). JS note: step 9.

12 · Choose a theme
<html data-theme="light">  <!-- light | dark | neo | pixel | brutalist -->

Available values depend on the CSS you loaded: full build (steps 3 / 6 / 9) → all five; default build (4 / 7 / 10) → light/dark only; base + add-on (5 / 8 / 11) → hardcode the add-on's value — no fallback in that pairing. No attribute set (full/default build)? The system preference decides. Your pick is saved to localStorage("arekui-theme").

13 · How to use
<button class="ar-btn ar-btn-primary">Hello ArekUI</button>
<span class="ar-badge ar-badge-primary">badge</span>
<div class="ar-alert ar-alert-info">Alerts, cards, modals - all the same way.</div>

That is the whole workflow: add a class, nothing else - no JavaScript, no config, no build step. Every component follows the same pattern, so browse the catalog and copy what you need. Colors and type are utilities too - see Colors and Typography. The optional script from steps 2/9/10 only adds behaviors (modals, tabs, carousels) via data-ar-* attributes - styling never needs it.