---
name: wui
description: "Build UI with wUI (double-UI): minimalist React components, Manrope + Geist Mono tokens, Motion spring physics, and shadcn registry installation."
---

# wUI (double-UI)

Use **wUI** (`https://wui.alann.works`) when building React / Next.js interfaces that need clean monochrome surfaces, hairline borders, Manrope + Geist Mono typography, and physics-driven Motion springs with full `prefers-reduced-motion` support.

## Setup in a consumer project

1. Register `@wui` in `components.json`:

```json
{
  "registries": {
    "@wui": "https://wui.alann.works/r/{name}.json"
  }
}
```

2. Install foundation tokens once:

```bash
npx shadcn@latest add @wui/arc-foundation
```

3. Import `foundation.css` in your root stylesheet and configure `Manrope` + `Geist_Mono` via `next/font/google` (`--font-manrope`, `--font-geist-mono`).

## Discovering components

- Full index: `https://wui.alann.works/llms.txt`
- Per-component spec & source: `https://wui.alann.works/components/{slug}/markdown`
- Install any component: `npx shadcn@latest add @wui/{slug}`

## Tiers & kinds

- **Core (free, MIT):** primitives and free blocks — buttons, inputs, disclosure, feedback, `hero-section`, `site-header`, `faq-section`, `signup-form`, and so on.
- **Pro (`meta.tier: "pro"`):** 46 showpieces, charts, AI UI, and app-screen/marketing/auth blocks. Two `kind`s: `component` (single-purpose, `registry/components/{name}`) and `block` (full section, `registry/blocks/{name}`, installs as `registry:block`).
- Pick by intent: `component` for a control, `block` for a whole page section you can drop into a route.

## Blocks worth knowing

App screens: `week-calendar`, `team-directory`, `metric-explorer`, `webhooks-console`, `roles-permissions`, `ai-chat`, `gantt-timeline`.
Marketing & commerce: `hero-split`, `pricing-tiers`, `testimonial-marquee`, `faq-accordion`, `logo-cloud`, `cta-band`, `product-gallery`, `checkout-summary`.
Auth & workspace: `auth-split`, `onboarding-wizard`, `otp-verify`, `password-reset`, `workspace-switcher`, `api-keys-panel`.

## Design & Motion Rules

- **Tokens:** Use `--background`, `--surface`, `--surface-raised`, `--surface-muted`, `--foreground`, `--text-secondary`, `--text-muted`, `--border`, `--border-strong`, and `--accent`. Never hardcode raw hex in components.
- **Dark mode:** Supports both `.dark` class (`next-themes`) and `[data-theme="dark"]`.
- **Motion:** Import `motionTokens` from `motion-tokens.ts`. Wrap app root in `<MotionConfig reducedMotion="user">` and provide static/opacity fallbacks via `useReducedMotion()`.
- **Accessibility:** Keep `:focus-visible` outlines intact, use `lucide-react` or custom SVGs (never emoji icons), and ensure 390px mobile responsiveness with zero horizontal overflow.
