Opus documentation

Opus is a React component library and interactive documentation site built with Next.js 16 and React 19. It provides form fields, content patterns, overlays, and navigation primitives with a shared visual language and theme system.

Quick start

npm install
npm run dev

Open http://localhost:3000/documentation for the documentation hub.

Documentation index

DocumentDescription
OverviewWhat Opus is, tech stack, and project layout
Component libraryAll 47 registered components by category
ArchitectureRegistry, routes, control detail pipeline, and data flow
Development siteSidebar, overviews, and the interactive playground
ThemingLight/dark mode, CSS tokens, and OpusThemeProvider
Adding a componentStep-by-step guide to register a new control

Public API

Import components from:

import { Button, TextField, Modal, Sidebar } from "@/components/fields";
// or
import { Button, TextField } from "@/components";

The development tooling (lib/controls/, components/development/, components/control-detail/) is internal to this repo and not part of the public export surface.

Routes

URLPurpose
/Landing page
/documentationDocumentation hub
/documentation/guideProject guide (this section, rendered from markdown)
/documentation/componentsMain overview — all components grouped by category
/documentation/components/contentContent category overview with live previews
/documentation/components/formsForms category overview with shared settings
/documentation/components/overlaysOverlays category overview with live previews
/documentation/components/{slug}Individual component detail — preview, usage code, settings

Source files

Guide content lives in documentation/content/ as markdown. The app renders it at /documentation/guide.