Skip to content
jamierthompsonPublic

About

A Next.js app built with shadcn/ui on Base UI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Lacquer

AI-interface patterns, finished. A collection of interactive AI-interface patterns for design engineers.

Every pattern has a live demo. Demos that stream play scripted replies in the browser, so there is no model, no server and no API key, and every state can be forced on demand.

What is on a pattern page

  • A live demo with a state switcher
  • Anatomy, states, a keyboard table and behavior notes
  • Accessibility: role, name, focus and announcements
  • Guidance

Stack

  • Next.js 16 (App Router, Cache Components) and React 19
  • Base UI components, Tailwind CSS 4
  • TypeScript 7, Biome (lint), Prettier (format)
  • Vitest and React Testing Library; Playwright with axe-core
  • Deployed on Vercel

Getting started

Requires Node 24 (see .nvmrc).

nvm use
pnpm install
pnpm run dev

Open http://localhost:3000.

Scripts

Script Description
pnpm run dev Start the dev server
pnpm run build Production build
pnpm run lint Lint with Biome
pnpm run format Format with Prettier
pnpm run typecheck Generate route types and type-check with tsc
pnpm test Unit tests: content rules, the scripted chat, the composer
pnpm run test:e2e Playwright: every page and every demo state through axe, in both themes

pnpm run test:e2e needs a browser once: pnpm exec playwright install chromium.

Structure

app/                     Routes: home, /patterns/[slug]
components/patterns/     One live demo per pattern (<id>-demo.tsx)
components/site/         Navigation, search, theme, demo source
components/ui/           Primitive components
content/patterns/        One typed content file per pattern
lib/patterns.ts          The Pattern type and the content floor
lib/use-scripted-chat.ts Scripted replies for the demos that stream
tests/, e2e/             Unit and end-to-end tests

Adding a pattern

  1. Write content/patterns/<id>.ts and add it to content/patterns/index.ts.
  2. Build components/patterns/<id>-demo.tsx and register it in components/patterns/index.ts.
  3. Run pnpm test and pnpm run test:e2e. A pattern that misses a section, or a demo state that fails axe, fails the build.

Add a primitive component with pnpm dlx shadcn@latest add <component>.

License

MIT

About

A Next.js app built with shadcn/ui on Base UI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages