Theming
Every colour, radius, shadow and border in ArekUI is a CSS custom property. Override the tokens in your own stylesheet - no rebuild, no config.
Override tokens
html[data-theme="light"] {
--ar-primary: oklch(65% 0.2 250);
--ar-radius-box: 1rem;
}Each theme is one html[data-theme="..."] block - light dark neo pixel brutalist - remapping the same token set. Components read the --ar-* variables, so a single override restyles everything.
Pick a bundle
| data-theme | CSS file | Runtime switching |
|---|---|---|
light dark | arekui.min.css | light ↔ dark; the default when the attribute is unset |
neo | arekui.base.min.css + arekui.neo.min.css | hardcode it — no fallback |
pixel | arekui.base.min.css + arekui.pixel.min.css | hardcode it — no fallback |
brutalist | arekui.base.min.css + arekui.brutalist.min.css | hardcode it — no fallback |
| all five | arekui.full.min.css | any value, switch at runtime |
npm, CDN and bundler file names, plus the arekui.css + arekui.js pair: Quick Start.
Override a theme
html[data-theme="neo"] {
--ar-shadow-md: 4px 4px 0px 0px #1e293b;
--ar-border-width: 3px;
--ar-primary: #00AEEF;
}Scoped to that theme only - light and dark keep their own tokens. Swap the palette (--ar-primary) or the geometry (--ar-shadow-*, --ar-border-width, --ar-radius-*).
Theme utilities on any theme
<div class="ar-neo-shadow-lg ar-neo-border">Bold</div>
<div class="ar-pixel-press ar-pixel-border">Press</div>
<div class="ar-brutalist-frame">Frame</div>The ar-neo-*, ar-pixel-* and ar-brutalist-* helpers hard-code their palette, so they work on top of light, dark or their own theme.
Dark mode
Set data-theme="dark" manually or leave it unset and ArekUI follows prefers-color-scheme on its own. Both paths - plus live toggles for all five themes - are on Choose Theme.