References
Everything this repository references, learns from or takes inspiration from. Each project has its own license and authors, and every repository is linked so you can read the source. Werewolf does not copy their design.
What Werewolf follows most closely
These projects shape how Werewolf is delivered and built. For each one, the table says what Werewolf takes and what it writes itself.
| Project | Repository | License | What Werewolf takes |
|---|---|---|---|
| shadcn/ui | shadcn-ui/ui | MIT | The registry model. components.json and registry.json use its schemas, components are copied into your project as source, and @werewolf is a namespaced registry served at /r/{name}.json. Werewolf replaces every color, size and class with its own tokens. |
| cn | shadcn-ui/cn | MIT | Class joining and Tailwind conflict resolution in registry/werewolf/lib/utils.ts. Pinned to exactly 0.4.0 and configured with every class Werewolf generates from its tokens. |
| Radix Primitives | radix-ui/primitives | MIT | Behavior and accessibility with no styling, through 16 @radix-ui/react-* packages: accordion, alert-dialog, avatar, checkbox, dialog, popover, radio-group, select, slider, slot, switch, tabs, toast, toggle, toggle-group and tooltip. All visuals come from Werewolf tokens. |
| UI SDK | vercel-labs/ui | Apache-2.0 | The idea of behaviors as the unit of reuse: keyboard navigation, roving focus, typeahead, selection and resizing written once and shared, and a page that agents can read and operate without screenshots. Werewolf writes its own (registry/werewolf/lib/behaviors.ts) and has no dependency on it; Toolbar, Tree and a virtualized list are on the backlog and the agent bridge is a proposal. Site: ui-sdk.dev. |
| Tabler Icons | tabler/tabler-icons | MIT | The icon set of the docs and the registry, through @tabler/icons-react. Your app can use any icon set; see Iconography. |
Standards and knowledge
The specifications and ideas behind the tokens, the contrast rules and the components.
| Name | Link | Used for |
|---|---|---|
| Design Tokens Community Group format | github.com/design-tokens/community-group | The JSON shape of tokens/seed.json and tokens/alias.json (DTCG: $value, $type, references in braces). |
| Oklab and OKLCH | bottosson.github.io/posts/oklab/ | The color space the theme generator works in, so equal steps look equal. See Colors. |
| WCAG 2 | www.w3.org/TR/WCAG22/ | Contrast ratios the generator enforces on every text and boundary pair in both modes. See Accessibility. |
| APCA | github.com/Myndex/SAPC-APCA | A second, perceptual contrast check next to WCAG 2, computed through Color.js. |
| WAI-ARIA Authoring Practices | www.w3.org/WAI/ARIA/apg/ | Roles and keyboard patterns for dialogs, menus, tabs, selects and the other widgets, which the primitives implement. |
| Model Context Protocol | modelcontextprotocol.io | The protocol of the MCP server. See AI agents and MCP. |
| SIL Open Font License 1.1 | openfontlicense.org | The license of both typefaces, which allows commercial use and bundling. |
| Conventional Commits | www.conventionalcommits.org | The commit message format of this repository. |
Libraries and tools
Versions are pinned in the package.json files, and licenses are the ones each project publishes. This list is for reading the source, not a license notice.
Tokens and theme
| Project | Repository | License | Used for |
|---|---|---|---|
| Style Dictionary | style-dictionary/style-dictionary | Apache-2.0 | Builds the two token layers into CSS, JSON, Tailwind, SwiftUI and Compose (packages/tokens). |
| Color.js | color-js/color.js | MIT | Color math, WCAG 2 contrast and APCA in the theme generator (packages/tokens/src/theme.mjs). |
| Culori | Evercoder/culori | MIT | Color conversion for the native outputs (packages/tokens/src/build.mjs, native-theme.mjs). |
Components and docs site
| Project | Repository | License | Used for |
|---|---|---|---|
| React | react/react | MIT | Every registry component and the docs site. |
| Next.js | vercel/next.js | MIT | The docs site in apps/docs, including the registry served at /r/{name}.json. |
| Tailwind CSS | tailwindlabs/tailwindcss | MIT | The class system. The token build emits a Tailwind v4 @theme that points at the token variables, and the linter reads Tailwind's own utilities. |
| Class Variance Authority | joe-bell/cva | Apache-2.0 | Variant classes in Button and MessageBubble. |
| date-fns | date-fns/date-fns | MIT | Date handling in Calendar and DatePicker. |
| React DayPicker | gpbl/react-day-picker | MIT | The date grid under Calendar and DatePicker. |
| Tiptap | ueberdosis/tiptap | MIT | The editor engine of RichTextEditor (@tiptap/react, @tiptap/pm, @tiptap/starter-kit). |
| Lenis | darkroomengineering/lenis | MIT | Smooth scrolling on the docs homepage only. |
| Vercel Web Analytics | vercel/analytics | MIT | Page analytics on the docs site. |
| Flag Icons | lipis/flag-icons | MIT | Source of the 68 country flags in registry/werewolf/lib/flag-data.ts, copied unchanged and checked by a test. |
| Simple Icons | simple-icons/simple-icons | CC0-1.0 | Source of the brand marks in registry/werewolf/lib/logo-data.ts, checked by a test. Trademarks stay with their owners. |
CLI, MCP, linting and tests
| Project | Repository | License | Used for |
|---|---|---|---|
| Model Context Protocol SDK | modelcontextprotocol/typescript-sdk | Apache-2.0 | The MCP server in packages/mcp and its packed equivalence test. |
| Zod | colinhacks/zod | MIT | Input schemas of the MCP tools. |
| esbuild | evanw/esbuild | MIT | Bundles the CLI and the offline catalog. |
| PostCSS | postcss/postcss | MIT | Reads CSS in the source-only linter. |
| TypeScript | microsoft/TypeScript | Apache-2.0 | Types for the docs and registry, and source analysis in the linter. |
| JSONC Parser | microsoft/node-jsonc-parser | MIT | Edits your project config files without losing comments. |
| node-semver | npm/node-semver | ISC | Version checks for dependencies and package managers in the CLI. |
| node-ignore | kaelzhang/node-ignore | MIT | Honors .gitignore when the linter scans files. |
| Ajv | ajv-validator/ajv | MIT | Validates component specs, screen recipes and registry indexes against their JSON Schemas. |
| Vitest | vitest-dev/vitest | MIT | Test runner for the docs, the registry and the packages. |
| jsdom | jsdom/jsdom | MIT | DOM for component tests. |
| Playwright | microsoft/playwright | Apache-2.0 | Browser checks: the render check and the packed consumer gate. |
Fonts
| Project | Repository | License | Used for |
|---|---|---|---|
| Geist | vercel/geist-font | OFL-1.1 | The UI typeface (). |
| JetBrains Mono | JetBrains/JetBrainsMono | OFL-1.1 | Code and technical text (). |
Architecture
How the repository is put together.
| Part | Where | What it is |
|---|---|---|
| Two token layers | tokens/, packages/tokens/ | A seed of user choices and an alias layer of role tokens. Every alias is a reference, and the internal _derived layer never appears in output. See Tokens and Theming. |
| Shared behaviors | registry/werewolf/lib/behaviors.ts, apps/docs/test/helpers/keyboard.ts | One tested set of keyboard behaviors (moveIndex, moveGridIndex, stepValue, useRovingFocus, useListNavigation, useTypeahead) used by Command, Combobox, TimePicker, the RichTextEditor toolbar, EmojiPicker, Carousel, SortableList and ResizablePanels, with test helpers for roving focus, list navigation, typeahead and Escape. It is one registry item with no npm dependency. |
| Registry | registry.json, registry/werewolf/, components.json | Handwritten components delivered as source through the @werewolf namespace. Each has a JSON spec in components/ that drives its docs page and its token-binding test. |
| CLI and core | packages/cli/, packages/core/ | init, add, theme, tokens build, docs and lint run offline from a packed catalog. See CLI. |
| MCP server | packages/mcp/ | The same catalog, theme generator and linter as tools for coding agents. See AI agents and MCP. |
| Design skill | skills/werewolf-design/ | The design rules as a router plus reference files for agents. See Design skill. |
| Native codegen | packages/core/src/native/ | SwiftUI and Compose tokens, theme runtime and a set of components generated from the same specs. |
| Docs as data | apps/docs/lib/docs/ | Each page is a typed object in English and Vietnamese. The page, .md version and llms.txt all print from it, so they cannot drift. |
| Pro guard and release gate | packages/cli/scripts/, .github/workflows/ | A guard keeps Pro code out of this MIT repository, and a staged publish reruns every consumer layout before a release. |
Services
The hosted systems the project depends on.
| Service | Link | Used for |
|---|---|---|
| GitHub | github.com/joeynguyen1412/werewolf-ui | The source repository (MIT) and GitHub Actions for the Pro guard, tests, consumer matrix and publishing. |
| npm | www.npmjs.com/package/werewolf-ui | Publishes the werewolf-ui CLI package. |
| Vercel | vercel.com | Hosts the docs site and the registry at werewolf-ui.dev. |
| Polar | polar.sh | Checkout for the paid Pro library. |