Get started

shadcn registry vs npm package: choose the ownership and update model

Choose an npm package when consumers should rely on a versioned public interface that upstream maintains. Choose a shadcn registry when each consumer should receive editable source and own the work that follows. Offer both only if one governed source and a release-blocking parity check keep the routes aligned. The format matters less than the maintenance contract.

Updated November 23, 2026

Choose the owner before the format

Start with who should own the component after delivery, not which mechanism seems more modern. With an npm package, the publisher normally owns the implementation, while consumers depend on a released interface. With a registry item, the CLI writes source and related configuration into the project, where the consumer can change them directly. These are useful defaults, not laws. A package may expose source maps, extension points, or readable source; a registry publisher may provide update tooling or migration notes. Inspect the actual artifact and support contract.

npm packageshadcn registrydual delivery
Best fitConsumers want a maintained, versioned interface.Consumers expect to own and edit delivered source.Different consumers genuinely need different ownership levels.
Implementation ownerUsually the package publisher.The consuming team after files are copied.The publisher owns the shared upstream source; package and copied-source consumers then work within their separate boundaries.
Update acquisitionSelect and install a new package version.Fetch or inspect a new item, then reconcile it with local source.Release both routes from one revision and verify their parity.
Local customizationUse supported options, composition, wrappers, patches, or a fork.Edit the copied files and accept local divergence.Choose the route per consumer and document where divergence is allowed.
Compatibility promiseExpressed through the public interface, versioning, peer ranges, and support evidence.Expressed through the delivered source, dependencies, project assumptions, and migration guidance.Must be stated separately for both routes, even when their behavior should match.
RollbackRestore the prior package and lockfile state, then verify the consumer.Revert the recorded file and dependency changes, then verify the consumer.Retain a reversible identity for each route and test both.
Agent useAn agent edits dependency and import usage within granted permissions.An agent may write several source, config, and dependency changes that require diff review.The agent must be told which route applies to the named consumer.
Check these route defaults against the specific package, registry item, and team contract.

Don't choose from slogans

"Packages are black boxes" and "copied source has no update path" are category-level shortcuts. A sound decision requires the exact artifact, its extension points, its dependency graph, its update process, and the support promised to the named consumer.

Define what was actually delivered

An npm installation gives you a package identity, selected version, resolved dependency graph, lockfile changes, and imports or runtime entry points. A registry installation may include an item URL or namespace, item metadata, copied files, registry dependencies, newly installed npm dependencies, CSS variables, and configuration changes. Write down those facts before anyone edits the result.

Don't collapse delivery, adoption, and correctness into one status. Delivery means the expected artifact reached the project. Adoption means the named consumer actually uses it. Correctness means someone observed the required behavior under recorded conditions. A clean CLI exit proves only part of delivery.

Copy the delivery-and-adoption record

delivery_record:
  decision_date: "YYYY-MM-DD"
  named_consumer: "project, surface, and component"
  supported_environment: "framework, runtime, styling system"
  publisher_source_revision: "commit, tag, or release input"
  route: "npm | registry | dual"
  artifact_identity:
    npm_package_and_version: "value or not_applicable"
    registry_item_url_or_namespace: "value or not_applicable"
  install_invocation: "exact reviewed command"
  dependency_evidence:
    added: []
    changed: []
    registry_dependencies: []
  project_changes:
    files_written: []
    files_modified: []
    imports_or_entry_points: []
  local_modifications: []
  compatibility_claim: "what is supported, by whom, and where recorded"
  update_owner: "publisher | consumer | shared with named boundary"
  update_route: "how a later revision is acquired and reconciled"
  rollback_route: "exact prior identity or reversible project change"
  expected_behavior: "observable result for this consumer"
  observed_behavior: "open until checked"
  disposition: "accept | revise | block | pending_observation"
Fill in observations last. Empty fields are unresolved evidence, not implied success.

The record works for every route. A registry item needs file and dependency evidence because its command may write more than the component you expected. A package needs version, lockfile, import, and compatibility evidence. Dual delivery needs both records and a parity result.

Route the decision through lifecycle cases

A static feature list hides the costs that appear after installation. Walk each candidate route through changes your team is likely to face. Before running a case, write down the expected owner and rollback.

Case 1: an upstream defect needs an urgent fix

With npm, the publisher fixes the defect and releases a new package. Each consumer still has to learn about the release, select it, resolve compatibility, test the named surface, and retain a rollback version. Central maintenance helps only if consumers can acquire and verify the fix quickly enough.

With copied registry source, the consumer owns the installed implementation. An upstream correction may be available, but it won't necessarily replace locally modified files safely. The team must identify the installed revision, inspect the upstream change, merge it with local edits, and test the result. Registry delivery is a poor fit if urgent fixes must propagate centrally and consumers can't support that reconciliation.

For dual delivery, run the same defect fixture through both outputs. Block the release if the package contains the correction but the registry artifact doesn't, or if the two routes require undocumented behavior changes.

Case 2: the product needs a deliberate local customization

First ask whether the change belongs in the shared component. A package consumer can use a documented option, compose a wrapper, contribute upstream, carry a patch, or fork. The least invasive route that preserves the public contract is usually easiest to update. Still, a wrapper that fights the internal structure can cost more than owning the source.

A registry consumer can edit the component directly. Record the reason, changed files, intended scope, and the upstream boundary the team no longer expects to match. "We own the code" isn't enough. Someone must own the next upstream comparison. If the customization should remain unique, a named local variant is often clearer than a silent change to a shared primitive.

Case 3: an interface or dependency breaks

A package update can expose a changed export, peer range, runtime assumption, or component contract. Its version tells you which artifact is selected, but it doesn't prove that the project is compatible. Verify the supported environment, migration responsibility, and representative behavior separately.

A registry item can also introduce breaking changes through its source, npm dependencies, registry dependencies, aliases, or destination files. A copied component isn't isolated just because it lives in the repository. Before acceptance, review collisions, dependency changes, and every overwritten or newly written file.

Keep installation and compatibility separate

The command may succeed while the consumer still imports an older component, resolves the wrong token mapping, or fails in a state the installation never exercised. Record compatibility evidence against the named consumer, not the installer.

Case 4: a generated theme changes

A theme revision crosses several layers: the governed design decision, the delivered token or configuration artifact, the component mapping, local overrides, and the rendered product. Package and registry routes can both transport theme material, but neither proves that the named component adopted it.

For npm, record the package version carrying the mapping and verify that the project resolves it. For registry delivery, record the item identity, CSS or configuration files written, and any local changes that may override the new values. In both routes, inspect representative components in the required modes and states. If the design decision changed but the screen didn't, find the first divergent layer instead of reinstalling blindly.

Token specimen · real values

Ambient Sage

Live render

Ambient Sage's actual tokens — the same values its exports use.

Color tokensSemantic roles with HEX / HSL / CMYK

Color tokens

Ambient Sage
light · HEX · HSL · CMYK

Core

#F3F4EF

background

H 72 · C0, 0, 2, 4

#1A1C17

foreground

H 84 · C7, 0, 18, 89

#E5E6E0

card

H 70 · C0, 0, 3, 10

#ECEEE8

muted

H 80 · C1, 0, 3, 7

#D8D9D2

border

H 68.57 · C0, 0, 3, 15

Brand

#FEE951

primary

H 52.72 · C0, 8, 68, 0

#1A1C17

primary-fg

H 84 · C7, 0, 18, 89

#E5E6E0

secondary

H 70 · C0, 0, 3, 10

#F7E464

accent

H 52.24 · C0, 8, 60, 3

#FEE951

ring

H 52.72 · C0, 8, 68, 0

Semantic

#C0392B

destructive

H 5.64 · C0, 70, 78, 25

#FFFFFF

destructive-fg

H 0 · C0, 0, 0, 0

#2D7238

success

H 129.57 · C61, 0, 51, 55

#C97D12

warning

H 35.08 · C0, 38, 91, 21

#545651

muted-fg

H 84 · C2, 0, 6, 66

Charts

#FEE951

chart-1

H 52.72 · C0, 8, 68, 0

#4A8FD4

chart-2

H 210 · C65, 33, 0, 17

#6BBF8A

chart-3

H 142.14 · C44, 0, 28, 25

#E07498

chart-4

H 340 · C0, 48, 32, 12

#E8A24B

chart-5

H 33.25 · C0, 30, 68, 9

Type scaleHeading, body, and mono in the kit's fonts

Typography

Ambient Sage

Scale: compact-product

Density: balanced

Heading · Plus Jakarta Sans · 1.875rem

Ship beautiful product faster

Subheading · Plus Jakarta Sans · 1.375rem

A warm-sage neutral-surface mobile kit with a single vivid yellow accent, flat tonal cards, and oversized display numerals.

Body · Plus Jakarta Sans · 1rem

Ambient Sage uses a near-white warm-sage canvas (#f3f4ef) with card panels distinguished only by a tonal shift to #e5e6e0, never by shadows or borders. A single vivid yellow (#fee951) is the only saturated color and appears sparingly at component scale as orbs, button fills, and focus rings. Primary data values render as oversized bold hero numerals with a small superscript unit. Typography is a friendly rounded geometric (Plus Jakarta Sans) with no uppercase and no tight tracking, while JetBrains Mono is reserved for hex codes and technical strings. Generous rounding and luminance-only contrast give the whole system a calm, minimal feel.

Mono · JetBrains Mono · 0.8125rem

npx shadcn add ambientsage.json

Aa

Plus Jakarta Sans · Heading

400500600700

Aa

Plus Jakarta Sans · Body

400500600700

ABCDEFGHIJKLM NOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz

0123456789 & @ # % →

Radius & spacingCorner radius, elevation, and spacing steps

Tokens

Ambient Sage primitives
density: balanced

Radius scale

sm · 0.375rem
md · 0.75rem
lg · 1.25rem
xl · 1.75rem

Component radius

button
card
input

Elevation

level 1
level 2
level 3
level 4

Spacing · base 4px

1x
2x
3x
4x
6x
8x
Ambient Sage shows the delivered artifact: coordinated color, type, and spacing decisions. The delivery route still doesn't prove that a project consumes them.

Use dual delivery only with a parity gate

Dual delivery makes sense when named consumers need materially different ownership contracts. It isn't automatically better. Two routes mean two release surfaces, two installation paths, and two sets of compatibility evidence. Both should come from one governed source revision, but a common source isn't enough. Transformations, packaging, metadata, or release timing can still diverge.

Must matchMay differ by route
Source identityBoth outputs trace to the same approved source revision.Package version and registry item identity use different naming schemes.
Public behaviorThe representative component performs the same supported task.Imports, file locations, and extension mechanisms differ.
Required dependenciesBehaviorally required dependencies and compatible ranges remain aligned.The package may bundle code that registry source imports directly.
Theme semanticsEquivalent roles produce the intended component treatment.The route may map roles through different generated files.
Support boundaryThe publisher states which behaviors are common and tests them.Consumers own different kinds of customization and update work.
RollbackEach route has a tested return to its prior accepted state.The package rolls back by version; copied source rolls back through recorded project changes.
Parity fields and legitimate route-specific differences.
  1. 1

    Freeze the expectation

    Name one component, one supported consumer, the common behavior, and every route-specific difference allowed by the contract.

  2. 2

    Build both outputs from one revision

    Record the source identity, package identity, registry identity, dependency evidence, and release time for each output.

  3. 3

    Install into clean representative fixtures

    Capture dependency, lockfile, import, configuration, and file changes. Don't reuse a fixture that hides prior state.

  4. 4

    Exercise the same behavior

    Run the same content, state, interaction, and theme case through both routes. Compare the observed behavior with the expectation, not with the shape of each route's implementation.

  5. 5

    Test one update and rollback

    Release a controlled upstream revision, acquire it through each route, then restore the prior accepted state.

  6. 6

    Block unexplained divergence

    Don't publish both routes when behavior, required dependencies, source identity, or rollback differs without an explicit contract and owner.

Inspect a complete kit before judging its delivery route

Browse a complete Identity Forge kit to see the colors, typography, spacing, and guidance that a delivery mechanism must carry. Then evaluate the registry as a route, separately from the kit itself.

Treat a coding agent as a governed consumer

An agent can install either route, but convenience doesn't change ownership. Before it runs, give it the exact named consumer, permitted directories, approved install command, artifact identity, package-manager policy, and files it may change. Require it to stop if it encounters unexpected overwrites, dependency changes, or destination collisions.

After the run, use the diff as the installation receipt. For a package, confirm the requested dependency and version, lockfile changes, imports, and absence of unrelated edits. For a registry item, confirm every written or modified file, npm dependency, registry dependency, alias destination, and collision. Then verify that the intended component actually consumes the delivered artifact.

  1. 1

    State the expectation first

    Describe the visible and behavioral result for one component, state, mode, and viewport before the agent changes the project.

  2. 2

    Grant narrow permissions

    Name the allowed command, destination, package manager, and mutable files. Unexpected scope is a review failure, not permission to improvise.

  3. 3

    Record the exact artifact

    Capture the package name and resolved version or the registry item identity and publisher revision.

  4. 4

    Review the complete diff

    Inspect source, configuration, dependency, lockfile, and import changes. Identify overwrites and local substitutions explicitly.

  5. 5

    Verify adoption

    Trace the named consumer to the installed import, copied file, token mapping, or configuration. Its presence elsewhere in the repository isn't enough.

  6. 6

    Observe the result

    Run the representative case and record what happened. Keep the disposition pending if observation is unavailable.

Where Identity Forge fits

Identity Forge ships design kits through a shadcn registry, alongside other agent-ready artifacts. The registry can deliver governed kit material into a project. It doesn't establish that Identity Forge offers an npm component package, and this comparison shouldn't imply one. It also doesn't prove that a component uses the delivered roles or that the rendered interface is correct.

Ambient Sage is a bounded public example. Its kit includes coordinated semantic colors, typography, spacing, and guidance, and Identity Forge provides a registry route for applying its implementation material. After installation, the consuming project still owns its mappings, local overrides, component adoption, and rendered verification.

Product boundary

Identity Forge provides an implementation-ready visual system and supported delivery artifacts. The consuming project remains responsible for application behavior, dependency acceptance, local customization, component verification, and release approval.

Run one bounded adoption test

A successful first install isn't enough to standardize a route. Choose a representative component with a real customization need and a meaningful upstream lifecycle. Write the record, install the component in one named consumer, and preserve the full diff.

  1. Verify the initial artifact identity, dependencies, files or imports, adoption path, expected behavior, observed behavior, and rollback.
  2. Make one small local edit that the product genuinely needs. Record who owns it and how a later update should treat it.
  3. Produce or select one upstream revision. For npm, acquire the new version and test compatibility. For a registry item, compare and reconcile the new source with the local edit.
  4. Roll back to the previous accepted state using the route recorded before the test.
  5. Retain the route only if the actual ownership work, update path, and observed behavior match the contract. Otherwise, revise the route or reject it for that consumer.

After the test, keep the route whose future work matches what your team can own. Choose the package if you want upstream to maintain the implementation behind a versioned interface. Choose the registry if you need editable source and accept local maintenance. If both types of consumer exist, earn dual delivery with one source, explicit differences, and a parity gate that can block release.

Sources