ArekUI
Docs

Commands

Everything below rebuilds ArekUI itself from its source files — installing the toolchain, splitting the stylesheet, minifying into dist/. The tabs switch between pnpm, npm, yarn and bun — same scripts, any manager. If you're just using the framework in a project, none of that applies to you: the package ships prebuilt, so skip to section 7 and install it.

1 · Install
pnpm install

Pulls the build toolchain (esbuild, typescript) and the runtime dependency lightningcss, which moved out of devDependencies in 2.0.0. The shipped CSS and JS need nothing at runtime.

2 · Build everything
pnpm build

Splits arekui.css into src/, then minifies into dist/css/ (arekui.base.min.css no themes, arekui.default.min.css light+dark, arekui.min.css base + light+dark, arekui.full.min.css all 5 themes, plus the self-contained arekui.neo.min.css / arekui.pixel.min.css / arekui.brutalist.min.css theme add-ons and the arekui.broadsheet.min.css print-sheet add-on) and dist/js/arekui.min.js.

3 · Watch mode
pnpm dev

Splits arekui.css into src/ and rewrites dist/ on every change; it does not touch site/, so the bundles are copied over by hand. Stop with Ctrl+C.

4 · Every script
pnpm split            # arekui.css  →  src/**/*.css
pnpm build            # everything above + minify
pnpm build:css        # minify CSS only
pnpm build:js         # minify JS only
pnpm build:sourcemap  # same, with .map files
pnpm dev              # watch mode (CSS + JS)
pnpm clean            # delete dist/
pnpm typecheck        # tsc arekui.d.ts --noEmit
5 · How the pipeline fits together
arekui.css ──split──► src/**/*.css ──build:css──► dist/css/*.min.css
arekui.js  ──build:js──────────────────────────► dist/js/arekui.min.js

Root arekui.css is the single source of truth. src/ is generated — never hand-edit it, your changes get overwritten on the next build.

6 · Custom (trimmed) build
pnpm dlx arekui-build                 # reads arekui.config.js
pnpm dlx arekui-build -i ./src -o ./assets
pnpm dlx arekui-build -n app          # output filename (default arekui)
pnpm dlx arekui-build --full          # ignore the scan, include everything
pnpm dlx arekui-build --sourcemap

Scans your markup and writes <output>/arekui.min.css containing only the ar-* classes you actually use. The config file (arekui.config.js or .json) takes input, output, name, sourcemap and full — flags win over config. yarn 1: use npx.

7 · Just consuming ArekUI?
pnpm add arekui

None of the above applies. arekui.css, arekui.js and dist/ are published prebuilt — link them and ship.