Skip to content

    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.

    ProjectRepositoryLicenseWhat Werewolf takes
    shadcn/uishadcn-ui/uiMITThe 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.
    cnshadcn-ui/cnMITClass 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 Primitivesradix-ui/primitivesMITBehavior 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 SDKvercel-labs/uiApache-2.0The 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 Iconstabler/tabler-iconsMITThe 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.

    NameLinkUsed for
    Design Tokens Community Group formatgithub.com/design-tokens/community-groupThe JSON shape of tokens/seed.json and tokens/alias.json (DTCG: $value, $type, references in braces).
    Oklab and OKLCHbottosson.github.io/posts/oklab/The color space the theme generator works in, so equal steps look equal. See Colors.
    WCAG 2www.w3.org/TR/WCAG22/Contrast ratios the generator enforces on every text and boundary pair in both modes. See Accessibility.
    APCAgithub.com/Myndex/SAPC-APCAA second, perceptual contrast check next to WCAG 2, computed through Color.js.
    WAI-ARIA Authoring Practiceswww.w3.org/WAI/ARIA/apg/Roles and keyboard patterns for dialogs, menus, tabs, selects and the other widgets, which the primitives implement.
    Model Context Protocolmodelcontextprotocol.ioThe protocol of the MCP server. See AI agents and MCP.
    SIL Open Font License 1.1openfontlicense.orgThe license of both typefaces, which allows commercial use and bundling.
    Conventional Commitswww.conventionalcommits.orgThe 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

    ProjectRepositoryLicenseUsed for
    Style Dictionarystyle-dictionary/style-dictionaryApache-2.0Builds the two token layers into CSS, JSON, Tailwind, SwiftUI and Compose (packages/tokens).
    Color.jscolor-js/color.jsMITColor math, WCAG 2 contrast and APCA in the theme generator (packages/tokens/src/theme.mjs).
    CuloriEvercoder/culoriMITColor conversion for the native outputs (packages/tokens/src/build.mjs, native-theme.mjs).

    Components and docs site

    ProjectRepositoryLicenseUsed for
    Reactreact/reactMITEvery registry component and the docs site.
    Next.jsvercel/next.jsMITThe docs site in apps/docs, including the registry served at /r/{name}.json.
    Tailwind CSStailwindlabs/tailwindcssMITThe 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 Authorityjoe-bell/cvaApache-2.0Variant classes in Button and MessageBubble.
    date-fnsdate-fns/date-fnsMITDate handling in Calendar and DatePicker.
    React DayPickergpbl/react-day-pickerMITThe date grid under Calendar and DatePicker.
    Tiptapueberdosis/tiptapMITThe editor engine of RichTextEditor (@tiptap/react, @tiptap/pm, @tiptap/starter-kit).
    Lenisdarkroomengineering/lenisMITSmooth scrolling on the docs homepage only.
    Vercel Web Analyticsvercel/analyticsMITPage analytics on the docs site.
    Flag Iconslipis/flag-iconsMITSource of the 68 country flags in registry/werewolf/lib/flag-data.ts, copied unchanged and checked by a test.
    Simple Iconssimple-icons/simple-iconsCC0-1.0Source 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

    ProjectRepositoryLicenseUsed for
    Model Context Protocol SDKmodelcontextprotocol/typescript-sdkApache-2.0The MCP server in packages/mcp and its packed equivalence test.
    Zodcolinhacks/zodMITInput schemas of the MCP tools.
    esbuildevanw/esbuildMITBundles the CLI and the offline catalog.
    PostCSSpostcss/postcssMITReads CSS in the source-only linter.
    TypeScriptmicrosoft/TypeScriptApache-2.0Types for the docs and registry, and source analysis in the linter.
    JSONC Parsermicrosoft/node-jsonc-parserMITEdits your project config files without losing comments.
    node-semvernpm/node-semverISCVersion checks for dependencies and package managers in the CLI.
    node-ignorekaelzhang/node-ignoreMITHonors .gitignore when the linter scans files.
    Ajvajv-validator/ajvMITValidates component specs, screen recipes and registry indexes against their JSON Schemas.
    Vitestvitest-dev/vitestMITTest runner for the docs, the registry and the packages.
    jsdomjsdom/jsdomMITDOM for component tests.
    Playwrightmicrosoft/playwrightApache-2.0Browser checks: the render check and the packed consumer gate.

    Fonts

    ProjectRepositoryLicenseUsed for
    Geistvercel/geist-fontOFL-1.1The UI typeface (font-family-sans).
    JetBrains MonoJetBrains/JetBrainsMonoOFL-1.1Code and technical text (font-family-mono).

    Architecture

    How the repository is put together.

    PartWhereWhat it is
    Two token layerstokens/, 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 behaviorsregistry/werewolf/lib/behaviors.ts, apps/docs/test/helpers/keyboard.tsOne 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.
    Registryregistry.json, registry/werewolf/, components.jsonHandwritten 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 corepackages/cli/, packages/core/init, add, theme, tokens build, docs and lint run offline from a packed catalog. See CLI.
    MCP serverpackages/mcp/The same catalog, theme generator and linter as tools for coding agents. See AI agents and MCP.
    Design skillskills/werewolf-design/The design rules as a router plus reference files for agents. See Design skill.
    Native codegenpackages/core/src/native/SwiftUI and Compose tokens, theme runtime and a set of components generated from the same specs.
    Docs as dataapps/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 gatepackages/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.

    ServiceLinkUsed for
    GitHubgithub.com/joeynguyen1412/werewolf-uiThe source repository (MIT) and GitHub Actions for the Pro guard, tests, consumer matrix and publishing.
    npmwww.npmjs.com/package/werewolf-uiPublishes the werewolf-ui CLI package.
    Vercelvercel.comHosts the docs site and the registry at werewolf-ui.dev.
    Polarpolar.shCheckout for the paid Pro library.