Composition & pairing map
What maps to what between Oceanic and shadcn, in both directions — plus the composition grammar, the colour substitutions, and the generation guard.
Composition — the pairing map and the grammar
Current local candidate: Oceanic v4.2 adoption supersedes conflicting historical visual values below. This candidate is not published.
Who this is for. An agent or engineer working in a consumer of
@oceanic-hub/brand-system— any consuming product, the starter, or anything scaffolded from it. This file ships inside the package, so in a consumer it is atnode_modules/@oceanic-hub/brand-system/docs/composition.md.What it answers, that nothing else did. The package already told you what exists (
manifest/component-manifest.json) and what is forbidden (@oceanic-hub/brand-system/eslint-plugin). It never told you what maps to what, or how the pieces nest. So an agent that knows shadcn perfectly could not tell whether Oceanic had an equivalent — and hand-rolled a styleddivinstead. That is the drift this package exists to prevent, and this file is the fix.The one rule this file exists to make actionable: if you can name a shadcn component for what you are about to build, look it up below before you write markup. Never run
shadcn addin a consumer. If a component is genuinely missing, file it againstOceanic-hub/brand— do not fork it locally, because a local fork stops receiving fixes and that is precisely the failure a shared brand layer is here to avoid.
Precedence. This file is subordinate to docs/core-layer.md, which is the doctrine. Where
the two appear to disagree, the doctrine wins and this file is wrong. For token values the SSOT
is tokens.source.mjs; for a component's API it is the manifest. This is a cookbook, not a
fifth source of truth.
64 shadcn components assessed (63 registry:ui items in the registry index, plus docs-only recipes) — 2 recipe · 3 refused · 59 shipped.
Oceanic surface: 59 core · 20 patterns · 4 archetypes.
//: # (pairings:summary:end)
1. Why our components carry shadcn's names
Deliberately, and it is the most useful property of the package: every coding agent already
knows shadcn. An agent that knows SelectItem belongs inside SelectGroup, or that a
Dialog needs a DialogTitle, gets our component right on the first attempt with no docs read.
So a port keeps upstream's export names and composition grammar exactly, and changes only the
className layer.
What that means for you: upstream's usage docs are valid for our components, with three exceptions — colour classes (§4), motion (§5), and anything from a different primitive generation (§3).
2. The map
2.1 core — the shadcn-derived primitives
| Oceanic | shadcn original | Relation | Upstream generation | Notes |
|---|---|---|---|---|
accordion | accordion | port | classic | Radix shape: type is required and discriminates the value type. Upstream's animate-accordion-* keyframes are not emitted here; the panel expands and collapses on the owned motion scale instead (animate-oc-expand / animate-oc-collapse, @OCE-1779), whose keyframes read --radix-collapsible-content-height so one pair serves Accordion and Collapsible both. |
alert | alert | superset | hand-written leaf | Four variants where upstream has two; AlertAction added by @OCE-1749 after it shipped missing. |
alert-dialog | alert-dialog | port | classic | Not Dialog: no outside-click dismiss and no Close part — Action or Cancel is the only way out, which is the component's whole purpose. Overlay is bg-scrim; shadow-lg refused. |
aspect-ratio | aspect-ratio | port | trivial | Single re-export, both generations identical. Deliberately unstyled — a layout constraint, not a surface. |
attachment | attachment | port | v4 hand-translation | No classic upstream. data-slot is KEPT here uniquely, because the cva strings select on it (has-data-[slot=…]). Five refusals: shimmer, scroll-fade-x, translucent focus ring, tone-as-text description, icon-xs action. |
avatar | avatar | superset | classic | AvatarGroup, AvatarGroupCount, AvatarBadge are Oceanic additions (@OCE-1749). shape is a fourth: circle is a person, square an organization — upstream has no counterpart, and the radius steps to 8px because 12px resolves to a circle on a 24px plate. |
badge | badge | superset | hand-written leaf | ghost and link variants refused with citations (@OCE-1755). |
breadcrumb | breadcrumb | superset | classic | 5 forwardRef / 0 data-slot — a real port, not a hand-translation. Distinct from the patterns-tier BreadcrumbSwitcher: that one is a CONTROL whose segments open a menu, this is the static trail. Superset by one defect fix — upstream ships no focus treatment on BreadcrumbLink at all, so a keyboard user saw nothing. Two upstream bugs deliberately not ported: an unreachable separator prop that spreads onto the nav element and warns, and the displayName typo 'BreadcrumbElipssis'. |
bubble | bubble | port | v4 hand-translation | The chat family's surface layer. oklch(from …) relative-colour arithmetic refused; text-destructive refused as tone-as-text. Mechanically coupled to message — each reads the other's data attribute. |
button | button | superset | classic | icon-sm / icon-lg added (@OCE-1755); upstream xs and icon-xs refused — below the 32px touch floor. |
button-group | button-group | port | v4 hand-translation | No classic upstream. shadow-xs refused. A raw Input is the correct child — the group supplies no surface of its own. |
calendar | calendar | port | v4 hand-translation | No classic upstream, and it targets react-day-picker v10 while upstream's source targets an older major — startMonth/endMonth, one Chevron, enum classNames keys. A hover-state contrast defect was found and fixed in review (8.81:1 → 1.64:1 in dark). |
card | card | superset | hand-written leaf | CardEyebrow is Oceanic; CardAction added by @OCE-1749. Three variants where upstream has none. |
carousel | carousel | port | classic | ~96% embla orchestration, ~4% styling — we own the integration, not the look. Its existence is Javi's 2026-08-14 waiver of the CONTRIBUTING.md bar that names Carousel as its anti-example; the waiver is recorded in its contract test. |
chart | chart | port | classic | The GENERIC recharts surface, on recharts v3. Distinct from the charts pattern (four fixed marks, no library). ChartStyle was re-implemented so defaults are token roles rather than injected raw hex. |
checkbox | checkbox | port | classic | |
collapsible | collapsible | port | trivial | Three bare re-exports, unstyled by decision — pure mechanism. Compare Accordion, which is a collapsible plus an opinionated row. |
command | command | port | classic | Wraps cmdk. Also the engine under the Combobox recipe. |
context-menu | context-menu | port | classic | All three are meant to draw as one object — one object, three ways to open it — and since @OCE-1870 they do: same ground, same hairline, same 6px, same min-w-40 floor, and the same animate-oc-pop-in/-out. Two differences used to survive: only DropdownMenu popped, and MenubarContent sat at min-w-48. Upstream's focus:bg-accent is unaliased here and would emit nothing; it is bg-accent-tint. |
dialog | dialog | port | classic | The overlay enters on animate-oc-fade-in and leaves on animate-oc-fade-out; the content pops on animate-oc-pop-in / animate-oc-pop-out. Same correction as dropdown-menu: the “dead animation utilities” this entry used to report were upstream's animate-in grammar, which @OCE-1779 replaced with the owned scale. |
drawer | drawer | port | classic | vaul's drag-dismissable bottom sheet. Distinct from sheet (a Radix Dialog side panel) — the axis is interaction, not geometry. Only bottom is styled; a side panel is Sheet. |
dropdown-menu | dropdown-menu | port | classic | Content enters on animate-oc-pop-in and leaves on animate-oc-pop-out, from the owned motion scale — as do ContextMenuContent and MenubarContent since @OCE-1870. Submenu content carries no motion in any of the three, which is consistent rather than a gap: a submenu opens on pointer intent, and hover-summoned surfaces do not pop. This corrects the entry's own earlier claim that it “carries dead animation utilities — @OCE-1779”: that was true of the upstream animate-in / fade-in-0 grammar, and @OCE-1779 is the ticket that replaced it, not one that left it outstanding. Separately, upstream documents Base UI's logical side="inline-end" for submenu placement; Radix's side is top|right|bottom|left, so that example is a type error here rather than a styling difference. |
empty | empty | port | v4 hand-translation | No classic upstream. The canonical empty state; hand-rolled empty markup is the drift it replaces. The illustration slot is refused (§ Refusals: no stock imagery). |
field | field | port | v4 hand-translation | No classic upstream — 25 data-slots, the largest hand-translation here. COMPLEMENT to form, not a rival: Field owns layout + validation semantics, Form owns react-hook-form state. data-[invalid]:text-destructive refused as tone-as-text. |
form | form | port | classic | react-hook-form state. COMPLEMENT to Field, not a rival — Field carries layout + validation semantics, Form carries state. UPSTREAM'S COUNTERPART HAS MOVED (@OCE-1872): ui.shadcn.com/docs/components/base/form is now a framework picker, and the real counterpart is …/docs/forms/react-hook-form, which composes Controller with Field/FieldLabel/FieldError — FormField, FormItem and FormMessage no longer exist there. Ours is the classic generation (generation: classic above says so) and that is deliberate: adopting the newer shape is a base migration, not a variant, and Field ships here anyway. The row is recorded so the next reader does not mistake the framework picker for the pairing target. |
hover-card | hover-card | port | classic | shadow-md refused (elevation is a border); enters on animate-oc-fade-in and leaves on animate-oc-fade-out — hover-summoned, so it fades rather than pops (@OCE-1779). Not Tooltip (a label), not Popover (click-opened, not modal). |
input | input | port | hand-written leaf | |
input-group | input-group | port | v4 hand-translation | No classic upstream. InputGroupInput/InputGroupTextarea only — never a raw Input inside. rounded-[calc(var(--radius)-5px)] and xs sizing refused. |
input-otp | input-otp | port | classic | Wraps input-otp. animate-caret-blink refused — a dead utility here, and § Motion forbids the animation being the only carrier. |
item | item | port | v4 hand-translation | No classic upstream. A generic list row with media/content/actions slots. Note ItemGroup renders role="list" while Item renders no role="listitem" — inherited from upstream, recorded in its contract. |
kbd | kbd | port | v4 hand-translation | No classic upstream. Overlaps DropdownMenuShortcut/CommandShortcut: those are menu-row affordances, Kbd is a standalone key rendering. |
label | label | port | hand-written leaf | |
marker | marker | port | v4 hand-translation | No classic upstream, and the cleanest of the set — no doctrine collision. One deliberate DIVERGENCE: the separator variant takes the house eyebrow, because a date divider is metadata and metadata uses the shared Figtree family. |
menubar | menubar | port | MIXED — normalised | Upstream's file is itself half-migrated: 10 classic forwardRef sub-components beside v4 function + data-slot ones. This port normalises the whole surface to classic and drops data-slot. The case that proves generation must be measured per sub-component. |
message | message | port | v4 hand-translation | Row geometry for a conversation. MessageFooter and MessageHeader share Figtree; size and weight distinguish their roles. The align mirroring and avatar offset are load-bearing geometry. Coupled to bubble both ways. |
message-scroller | message-scroller | port | v4 — behaviour AUTHORED | The ONE component where we author behaviour rather than restyle it: @shadcn/react was refused (it demands peer react>=19 vs our >=18), so stick-to-bottom is ours. No instrument here can prove it — jsdom has no layout engine, so scrollHeight is 0. The demo plus a human IS the guarantee. |
native-select | native-select | port | v4 hand-translation | No classic upstream. Surface matches SelectTrigger exactly. bg-[Canvas]/text-[CanvasText] kept deliberately — CSS system-colour keywords for the OS-rendered panel, which no token reaches. A w-fit wrapper bug was found and fixed in review. |
pagination | pagination | superset | classic | Independent of DataTable: DataTable has no page state and takes already-sliced rows, so Pagination is a sibling rail. asChild and refs on all seven parts are Oceanic additions. |
popover | popover | superset | classic | PopoverHeader/Title/Description are NOT a plain port — Radix's popover has no Title/Description parts (Base UI's does), so @OCE-1749 wired aria-labelledby itself. PopoverPortal and PopoverClose refused with citations. |
progress | progress | port | classic | value===null is indeterminate and DISTINCT from 0 — upstream's arithmetic collapses the two. Track/fill use surface-sunken/brand, not primary/20. |
questionnaire | questionnaire | oceanic-only | none — AUTHORED | Not parity-verified and cannot be: questionnaire 404s at EVERY style path, so there is no upstream file to diff. Names follow the documented anatomy, prefixed (QuestionnaireItem, not Item, which this package already owns). Enters on the parity waiver, not the promotion bar — no Oceanic surface uses one. |
radio-group | radio-group | port | classic | |
resizable | resizable | port | classic | react-resizable-panels v4: orientation not direction, defaultLayout is an id-keyed record, onLayoutChange/onLayoutChanged. Coarse hit target raised 20px → 32px. |
scroll-area | scroll-area | port | classic | No fade-out edges — a gradient mask is refused. |
select | select | port | classic | Radix shape: inline JSX children, position, SelectValue placeholder. Base UI reaches the same surface differently (alignItemWithTrigger, a Portal/Positioner/Popup split) — but note its items prop is OPTIONAL and Select.Value has a real placeholder, contrary to the harvested guidance corrected by @OCE-1782. |
separator | separator | port | classic | |
sheet | sheet | port | classic | Radix Dialog with side variants. Distinct from shadcn's Drawer, which is vaul and drag-dismissable. Upstream's content is flex flex-col gap-4; this port had kept the gap and dropped the flex, so the gap laid out nothing until @OCE-1874 restored the column — the exact failure mode relation: port exists to make findable. |
sidebar | sidebar | port | classic | The generic collapsible-rail system — provider, rail, cookie-persisted collapse, useSidebar. Distinct from app-shell (a layout frame) and workspace-nav (Oceanic's opinionated rail). Leans on bg-accent/bg-muted, both unaliased here and substituted. |
skeleton | skeleton | port | hand-written leaf | oc-pulse, the one infinite animation the scale allows — it carries state, and the block persists when it stops. |
slider | slider | superset | classic | Radix shape: value is ALWAYS an array, even for one thumb. Renders one thumb per value, so range works — upstream hard-codes a single Thumb and its own range example is broken. Knob uses the theme-invariant control-thumb role. thumbProps is an Oceanic addition (@OCE-1873): Radix names a slider from its THUMB and the root is an unlabelable span, so the two naming attributes are passed through — one object for a single thumb, an array for a range. |
sonner | sonner | port | hand-written leaf | The correct toast for a Radix project per upstream's own rule; shadcn's Radix toast is deprecated. Its treatment ships as CSS, not as classNames: sonner injects its own sheet UNLAYERED at import time, which beats every Tailwind utility whatever the specificity, so src/styles/sonner.css rebinds sonner's variables from an unlayered sheet of our own (@OCE-1881). A consumer that imports @oceanic-hub/brand-system/styles gets it; a className on a toast will still lose on any property that sheet does not own. |
spinner | spinner | port | v4 hand-translation | No classic upstream. The package's first genuine motion primitive: Tailwind core animate-spin (which DOES emit) plus motion-reduce:animate-none, so the ring persists when the animation stops. |
switch | switch | port | classic | |
table | table | port | hand-written leaf | |
tabs | tabs | port | classic | TabsList variant refused with a citation (@OCE-1755). |
textarea | textarea | port | hand-written leaf | |
toggle | toggle | port | classic | ON state is brand-soft + brand/40, NOT upstream's bg-accent — which is unaliased here and would emit nothing. Sizes are this package's h-8/h-10/h-12 scale. |
toggle-group | toggle-group | port | classic | Radix shape: type required, discriminates the value type. Shares toggleVariants with toggle so the two cannot drift on what "on" looks like — upstream's bg-accent is unaliased here and would emit nothing. |
tooltip | tooltip | port | classic | A LABEL for a control that has none. Takes no interactive content — that is HoverCard. |
| //: # (pairings:core:end) |
2.2 patterns — the generic composites
Most of these have no shadcn original. Where a "nearest shadcn" is named it is for
orientation only — nothing was ported, and the semantics usually differ in a way that matters.
The clearest case: Progress means a task is this far along; SpendBar means a quantity
against a declared cap and carries cap-state semantics. Reaching for the wrong one inherits
semantics you did not want.
| Oceanic | Nearest shadcn | Relation | Notes |
|---|---|---|---|
app-shell | sidebar | oceanic-only | Nearest relative only. shadcn's Sidebar is a 773-LOC / 24-export system with its own provider, rail and cookie-persisted collapse; AppShell is a layout frame with no state at all. @OCE-1774 SETTLED it and all three ship: a frame, an opinionated rail (workspace-nav) and a composable rail system (sidebar) answer three different questions. What you must not do is nest them. |
approval-card | alert-dialog | oceanic-only | Nearest relative only, and the distance is the point: AlertDialog is a MODAL confirmation that carries a sentence and two verbs, ApprovalCard is an in-page card that carries itemised costs, an authority slot and a compliance line. @OCE-2134 promoted it on four surfaces hand-rolling the same Card+Alert+button row. No parity axis — nothing was ported. |
breadcrumb-switcher | breadcrumb | oceanic-only | Verified 2026-08-17: shadcn's breadcrumb is a static trail (link/page/separator/ellipsis, no switching semantics) plus a one-off Dropdown-in-BreadcrumbItem example. Nearest relative only — BreadcrumbSwitcher generalises that one-off into every segment, with a role ceiling and a tenant-avatar guard upstream has no reason to need. The plain trail is ported separately as breadcrumb. |
charts | chart | oceanic-only | Explicitly not shadcn-derived — four fixed opinionated marks (Sparkline, MiniLineChart, MiniBarChart, Funnel), no charting library. shadcn's Chart is a generic recharts wrapper. @OCE-1774 SETTLED it and both ship: reach for chart when the shape is the caller's, for these when it is the product's. |
data-table | table | oceanic-only | shadcn's data-table is a docs recipe over TanStack Table, not a component. Ours takes column definitions and never a business entity — the @OCE-1730 argument for why it survived the tier pass. |
engagement-bar | progress | oceanic-only | Nearest relative only. Measures a density, not task completeness. Reach for Progress for a task. |
entity-card | item | oceanic-only | Nearest relative only, and the distance is one structural fact: Item takes asChild, so a navigable row puts its whole body inside the anchor — which forbids a legal button descendant and makes the row's accessible name its entire text. EntityCard moves activation onto the title and stretches its hit area to the card, so per-row controls are siblings of the link rather than illegal descendants. Reach for Item for a plain row, DataTable once the reader compares rows against each other. No parity axis — nothing was ported. |
entity-drawer | drawer | oceanic-only | Built on our Sheet. shadcn's Drawer is vaul and drag-dismissable — a different interaction. @OCE-1774 SETTLED it and both ship; the axis between them is the interaction, not the edge. |
filter-bar | — | oceanic-only | No shadcn original. Composes Input (through InputGroup), Button, Badge and Separator over a saved-view list. It said Input/Select/Badge while drawing raw input and button elements — @OCE-1875 made the record true by rebuilding the component; Select is out because the panels belong to the host. |
fit-score | — | oceanic-only | No shadcn original. |
kpi-stat | card | oceanic-only | Nearest relative only. A card with an eyebrow, a figure and a delta. |
notification-bell | — | oceanic-only | No shadcn original. Composes Popover, Badge and a trigger. |
product-shell | sidebar | oceanic-only | Nearest relative only. The Sidebar is a state system with its own provider and collapse; ProductShell is a composed frame (rail, top bar, phone sheet, user menu, scope chain) in an agency and a client variant, built on app-shell, workspace-nav and breadcrumb-switcher. Nothing was ported, so there is no generation to measure. |
spend-bar | progress | oceanic-only | Nearest relative only. Measures a quantity against a declared cap and carries cap-state semantics. Reach for Progress for a task. |
status-pill | badge | oceanic-only | Nearest relative only. Three axes (task/health/cap) over the generalised status roles; a Badge carries no status vocabulary. |
symbol | — | oceanic-only | No shadcn original. The compact signature below normal wordmark sizes, per the same kit; shares its path-fidelity guarantee with wordmark. |
theme-provider | — | oceanic-only | shadcn documents next-themes as a recipe rather than shipping a provider. Ours is framework-agnostic and ships ThemeScript for the no-flash boot. |
timeline-feed | — | oceanic-only | No shadcn original. Marker (shipped, @OCE-1775) is the nearest primitive for an out-of-band row; TimelineFeed's own rows are one shape only (label/meta/by/cost) and it has no slot for one today. |
wordmark | — | oceanic-only | No shadcn original at all — shadcn ships no brand-mark component. Renders the approved Oceanic Brandbook Kit v3.1's wordmark paths inline; lockup adds the kit's EN tagline text, not a path. |
workspace-nav | sidebar | oceanic-only | Nearest relatives are sidebar and navigation-menu. @OCE-1774 SETTLED the sidebar question and all three ship — WorkspaceNav is the data-driven rail, app-shell the frame, sidebar the composable system. navigation-menu is refused outright; the coverage table carries the argument. |
| //: # (pairings:patterns:end) |
2.3 Archetypes — whole surfaces
Archetypes live in the showcase and are demonstrations, not exports. apps/showcase is a
demo and never a source: downstream repos are contractually forbidden from importing or copying
its page code. Read them to see how the pieces compose, then compose your own.
| Archetype | shadcn equivalent | Notes |
|---|---|---|
app-shell | dashboard block | shadcn's equivalent is a block, not a registry:ui component. Renders AppShell + WorkspaceNav + BreadcrumbSwitcher as one surface. |
data-table | data-table docs recipe (TanStack) | Ours renders the DataTable pattern with FilterBar; upstream's is a recipe a consumer assembles. |
settings-form | forms docs recipe | Renders Form + Field together — Form owns react-hook-form state, Field owns layout and validation semantics, and upstream's own react-hook-form recipe now splits them the same way. field SHIPPED under @OCE-1772 and this archetype uses it; the row used to defer it to a ticket that had already closed (@OCE-1872). |
states | empty + skeleton + spinner | @OCE-1864 closed the drift this row used to record. Empty and Spinner both ship and this archetype uses them, so the empty state that was 'demonstrated with Skeleton and hand-composed markup' is a real Empty and the retry carries a Spinner. Skeleton keeps the loading state on purpose: there the shape is known and only the length is not. |
| //: # (pairings:archetypes:end) |
2.4 Coverage — every shadcn component, and where it stands
The reverse direction. A blank row is not allowed: a component we do not carry is either
planned with a ticket, a recipe, superseded by a named incumbent, refused with an
argument, held, or unevaluated — and unevaluated is itself information, because it means
nobody has assessed it against the promotion bar.
| shadcn | Status | Oceanic | Ticket | Notes |
|---|---|---|---|---|
accordion | shipped | accordion | @OCE-1771 | |
alert | shipped | alert | @OCE-1723 | |
alert-dialog | shipped | alert-dialog | @OCE-1771 | Escape DOES close it — measured in a browser 2026-08-17 (@OCE-1872). Outside click does not, there is no Close part, and focus lands on AlertDialogCancel on open; those three are what make it an interruption, and the keyboard escape hatch is the alertdialog pattern's requirement rather than an oversight. |
aspect-ratio | shipped | aspect-ratio | @OCE-1771 | |
attachment | shipped | attachment | @OCE-1775 | No classic-generation source; PORT-WITH-ADAPTATION from new-york-v4. |
avatar | shipped | avatar | @OCE-1723 | |
badge | shipped | badge | @OCE-1723 | |
breadcrumb | shipped | breadcrumb | @OCE-1779 | |
bubble | shipped | bubble | @OCE-1775 | The chat family's surface layer, SHIPPED with Message and MessageScroller — the three are mechanically coupled and could only land together. It entered carrying two refusals: oklch(from …) relative-colour arithmetic, and text-destructive as tone-as-text. |
button | shipped | button | @OCE-1723 | |
button-group | shipped | button-group | @OCE-1772 | v4 generation only — a hand-translation, not a port. |
calendar | shipped | calendar | @OCE-1773 | v4 generation only. Ported against react-day-picker v10 — startMonth/endMonth, one Chevron, enum classNames keys — rather than the older major upstream's source targets. A hover-state contrast defect was found and fixed in review. |
card | shipped | card | @OCE-1723 | |
carousel | shipped | carousel | @OCE-1773 | Named in CONTRIBUTING.md as the anti-example. Javi waived the bar 2026-08-14 for the parity push; ~96% embla orchestration, not styling. |
chart | shipped | chart | @OCE-1774 | Ported on recharts v3, and the ChartStyle objection is ANSWERED rather than outstanding: ours re-implements it so the defaults are token roles and the CSS is a React text child with key/value filters, so there is no dangerouslySetInnerHTML and no raw hex for the lint rule to miss. |
checkbox | shipped | checkbox | @OCE-1723 | |
collapsible | shipped | collapsible | @OCE-1771 | |
command | shipped | command | @OCE-1723 | |
context-menu | shipped | context-menu | @OCE-1771 | |
dialog | shipped | dialog | @OCE-1723 | |
drawer | shipped | drawer | @OCE-1774 | Decided by @OCE-1774: both ship. Sheet covers side panels and is dismissed deliberately; vaul's drag-dismissable bottom sheet is a genuinely different interaction, and the axis between them is the interaction rather than the edge. Argued in drawer.contract.test-d.ts. |
dropdown-menu | shipped | dropdown-menu | @OCE-1723 | |
empty | shipped | empty | @OCE-1772 | v4 generation only — a hand-translation. |
field | shipped | field | @OCE-1772 | v4 generation only, 25 data-slots — the largest hand-translation in Batch B. Complements Form. |
form | shipped | form | @OCE-1723 | |
hover-card | shipped | hover-card | @OCE-1771 | |
input | shipped | input | @OCE-1723 | |
input-group | shipped | input-group | @OCE-1772 | v4 generation only. Carries rounded-[calc(var(--radius)-5px)] — one of only 3 genuinely off-scale radii upstream. |
input-otp | shipped | input-otp | @OCE-1773 | |
item | shipped | item | @OCE-1772 | v4 generation only — a hand-translation. |
kbd | shipped | kbd | @OCE-1772 | v4 generation only. The overlap with DropdownMenuShortcut/CommandShortcut was SETTLED in the port: those are menu-row affordances, Kbd is a standalone key rendering, and all of them ship. |
label | shipped | label | @OCE-1723 | |
marker | shipped | marker | @OCE-1775 | PORT-WITH-ADAPTATION from v4. Cleanest of the set — no doctrine collision. Separator variant takes the house eyebrow treatment. |
menubar | shipped | menubar | @OCE-1771 | Upstream's file is INTERNALLY mixed — 10 classic forwardRef sub-components beside v4 function+data-slot ones. Normalise to classic; drop data-slot. |
message | shipped | message | @OCE-1775 | Row geometry for a conversation, mechanically coupled to Bubble via group-has-data-[variant=ghost]/message — each reads the other's data attribute, so the two could only land together. |
message-scroller | shipped | message-scroller | @OCE-1775 | The one component whose BEHAVIOUR is authored rather than restyled: @shadcn/react was refused over its peer react>=19 against our >=18, so stick-to-bottom is ours. Unfalsifiable by instrument — jsdom has no layout engine, so scrollHeight is 0 — which makes the demo plus a human the guarantee. |
native-select | shipped | native-select | @OCE-1775 | PORT-WITH-ADAPTATION. Trigger surface must equal Input and SelectTrigger; bg-[Canvas] on the option panel is kept deliberately. |
pagination | shipped | pagination | @OCE-1772 | Classic generation, shipped as a SUPERSET. The DataTable question is SETTLED: DataTable holds no page state and takes already-sliced rows, so Pagination is a sibling rail rather than a part it composes. |
popover | shipped | popover | @OCE-1723 | |
progress | shipped | progress | @OCE-1771 | |
questionnaire | shipped | questionnaire | @OCE-1775 | SHIPPED on Javi's explicit parity waiver of 2026-08-14, and the row records both halves so the two are not read as rival statuses. It 404s at EVERY style path, so there is no source in any generation and it is authored rather than ported; on the promotion bar it would have been refused on three grounds (nothing to port, no Oceanic surface uses one, largest authored stateful surface under the no-runner constraint). The waiver overrode the bar. So: shipped, not parity-verified, not promoted. |
radio-group | shipped | radio-group | @OCE-1723 | |
resizable | shipped | resizable | @OCE-1773 | react-resizable-panels v4. A BARE NUMBER IS PIXELS and an unitless string is a percentage — case "number": return [e, "px"] in the 4.12.2 bundle (@OCE-1872). Sizes normalise, so a raw number is harmless alone and fatal beside a minSize it contradicts; every size in this package now carries a unit. |
scroll-area | shipped | scroll-area | @OCE-1723 | |
select | shipped | select | @OCE-1723 | |
separator | shipped | separator | @OCE-1723 | |
sheet | shipped | sheet | @OCE-1723 | |
sidebar | shipped | sidebar | @OCE-1774 | Ported, and the largest module in the package — 826 LOC, 23 components plus useSidebar. It did not displace AppShell or WorkspaceNav: @OCE-1774 kept all three, Sidebar as the generic collapsible rail, AppShell as the layout frame and WorkspaceNav as Oceanic's opinionated one. SidebarRail is a click toggle wearing a resize cursor, not a drag handle (@OCE-1872). |
skeleton | shipped | skeleton | @OCE-1723 | |
slider | shipped | slider | @OCE-1771 | Radix shape: defaultValue is ALWAYS an array. Base takes a scalar. |
sonner | shipped | sonner | @OCE-1723 | |
spinner | shipped | spinner | @OCE-1772 | The package's first genuine motion primitive; @OCE-1779 settled the scale and this ships animate-spin with motion-reduce:animate-none. |
switch | shipped | switch | @OCE-1723 | |
table | shipped | table | @OCE-1723 | |
tabs | shipped | tabs | @OCE-1723 | |
textarea | shipped | textarea | @OCE-1723 | |
toggle | shipped | toggle | @OCE-1771 | |
toggle-group | shipped | toggle-group | @OCE-1771 | Radix shape: type="single"|"multiple". Base uses a multiple boolean. |
tooltip | shipped | tooltip | @OCE-1723 | |
combobox | recipe | — | @OCE-1775 | Popover + Command. The v4 component is @base-ui/react with no Radix equivalent; adding @base-ui/* is an automatic reject. |
date-picker | recipe | — | @OCE-1775 | NOT a registry:ui item in any generation — 404 everywhere, and always a docs recipe composing Popover + Calendar + Button. Listed so its absence reads as a decision. calendar shipped under @OCE-1773, so the recipe is assemblable today; it stays a recipe because upstream never shipped it as a component, not because a part is missing (@OCE-1872). |
direction | refused | — | @OCE-1779 | RTL is NOT SUPPORTED, stated rather than left silent. Correcting this entry's own earlier claim: @radix-ui/react-direction DOES exist (1.1.4) and ships a Radix-generation DirectionProvider, so 'no Radix equivalent' was wrong — the reason to refuse is that nothing in this package has ever been laid out or tested RTL. Mounting a DirectionProvider would advertise support we have not measured, which is the assertion-instead-of-measurement this repo refuses elsewhere. A consumer needing RTL should file it, not discover it. |
navigation-menu | refused | — | @OCE-1779 | Would add @radix-ui/react-navigation-menu for zero consumers. A horizontal nav menu with a hover viewport and an animated indicator is a marketing-site pattern; no consuming product has one, and WorkspaceNav covers the app-shell need. This is the one place the OLD demand-driven bar still governs: coverage of shadcn's surface is the default, but it does not license a new dependency nobody imports. Tripwire: a public marketing surface, or a second product with top nav. |
toast | refused | sonner | @OCE-1774 | Deprecated upstream in favour of sonner, which we ship. Upstream's own rule: 'use toast() from sonner for Radix and React Aria projects'. Also carries the only raw palette colours in the new-york set. |
| //: # (pairings:coverage:end) |
3. The generation guard — read this before porting anything
This package is on shadcn's new-york generation: Radix UI primitives +
React.forwardRef. Upstream has since re-based onto Base UI, and its docs now default to
it. core-layer.md § "Port from the generation we are on" is the rule; this is the table that
makes it usable.
Two facts measured on 2026-08-14 that the rule alone does not tell you:
https://ui.shadcn.com/r/styles/new-york/<name>.jsonserves MIXED generations. Of 27 files audited: 15 are classicforwardRef; 7 are backfilled v4data-slotsource under the classic URL —button-group,calendar,empty,field,input-group,item,kbd; andmenubaris internally mixed, carrying classic sub-components beside v4 ones in the same file. Those 7 postdate the freeze, so they have no ancestor in our generation at all — they are hand-translations, not ports. CountforwardRefvsdata-slotbefore trusting a file.- With no
components.jsonpresent, the shadcn CLI resolves every source and doc URL tobases/base/. So the CLI will hand you Base UI source unless you pin otherwise.
The API deltas that get silently mis-ported
| Concern | Ours (Radix) | Base UI |
|---|---|---|
| Custom trigger / element swap | asChild | render={<X />}, plus nativeButton={false} when the element is not a button |
Accordion | type="single"|"multiple", supports collapsible, defaultValue is a string | no type, uses multiple, defaultValue is always an array |
ToggleGroup | type="single"|"multiple" | multiple boolean |
Slider | defaultValue is always an array — [50] | a plain number for a single thumb |
Select | inline JSX children; <SelectValue placeholder="…">; position="popper" | inline children work too; items is optional; <Select.Value placeholder="…">; alignItemWithTrigger |
If you find yourself writing render={…} against one of our components, you are reading the wrong
generation.
Corrected TWICE on 2026-08-15 (@OCE-1782), and the second correction is the instructive one.
The row originally said Base "requires an
itemsprop on the root" and that its placeholder is "a{ value: null }item". Harvested 2026-08-14 from shadcn's ownrules/base-vs-radix.md.First correction — I read the type signature and declared both false.
SelectRoot.d.tssaysitems?:is optional, andSelectValue.d.tshas a realplaceholderprop, so the row was rewritten to say inline children are sufficient.Second correction — that was too glib, and the browser proved it. Reading the compiled source (
value/SelectValue.js→internals/resolveValueLabel.js):Select.Valueresolves its text only from the store'sitems/itemToStringLabel/ a render-prop child, and otherwise stringifies the raw value. It never reads inline<Select.Item>JSX the way Radix'sValuereads the selectedItemTextat runtime. So:
Claim Verdict "Base requires items"Optional to compile, effectively required for Radix-equivalent label rendering. Without it the trigger shows padel, not "Padel courts". Right in substance; wrong only as a type claim."placeholder is a { value: null }item"Genuinely stale. Select.Valuetakes aplaceholderprop.Two rules, and the second is the one that cost time.
- For a cross-generation fact, read the installed types — not a snapshot of anyone's docs, including this one. A harvested table ages;
node_modulesdoes not lie about the version you actually have.- A type signature tells you what compiles, not what renders.
items?:being optional is true and useless. Both.conformance.tsfiles in the @OCE-1782 spike compiled green while the trigger displayed the wrong text. Where behaviour is the question, the shipped.jsand a rendered page are the sources; the.d.tsis not.
Where a refusal is written down
An unshipped upstream thing is always written down, never silent — and which file it goes in is decided by whether the parity gate can see it, not by preference:
check:variant-parity's snapshot records the axis →packages/brand-system/variant-refusals.json, each entry citing the line ofcore-layer.mdthat excludes it. That file ratchets: enumerated debt passes, anything new fails.- the snapshot records
axes: {}, or the refusal is a whole example, part or capability rather than an axis → the module's own note, and only there. An entry invariant-refusals.jsonfor an axis the snapshot does not carry is reported STALE and reddens the gate, so that file cannot quietly become a list of everything.
Coverage-level refusals — a whole shadcn component we do not ship — are neither; they are the
refused rows of § 2.4 above. apps/showcase/RECIPE.md § Where a refusal lives is the same
split written for the agent doing a docs pass.
4. Colour — the substitutions, and the three classes that emit nothing
Our roles are colour-free by design (app/surface/elevated/surface-sunken,
ink/ink-soft/ink-faint, brand/brand-soft/accent-tint, hairline/hairline-strong,
done/working/stuck/info/neutral), because the values are provisional and a value swap
must rename nothing. A shadcn compatibility layer aliases a subset of upstream's names onto
them — one system aliased, not two systems.
| Upstream | Use instead | Aliased? |
|---|---|---|
bg-background / text-foreground | bg-app / text-ink | yes |
bg-card | bg-surface | yes |
bg-popover | bg-elevated | yes |
bg-primary / text-primary-foreground | bg-brand / text-brand-foreground | yes |
text-muted-foreground | text-ink-soft | yes |
border-border / border-input | border-hairline | yes |
ring-ring | ring-brand | yes |
bg-destructive | bg-stuck (status role) | yes |
bg-muted | bg-surface-sunken | NO — emits nothing |
bg-accent / text-accent-foreground | bg-accent-tint, or bg-brand-soft + text-ink | NO — emits nothing |
bg-secondary | bg-surface-sunken | NO — emits nothing |
Three silent-failure classes. Each renders a component that is structurally correct and visually wrong, with a green build and a green typecheck:
- Unaliased compat names — the three bold rows above. Upstream's
toggleusesdata-[state=on]:bg-accent; pasted verbatim, the toggle looks identical pressed and unpressed. - Colour names as classes — a hue-named utility (
bg-<hue>,text-<hue>) no longer exists. The identity hues remain colours as values, declared once inpalette.css; they are never class names. Reach for the role, and if no role fits, the fix is to name one intokens.source.mjs— as a role, with a light value and a dark value, never as a sixth entry in the identity layer. - Animation utilities — see §5.
Severity goes through the status roles, never a Tailwind palette colour and never a
hand-rolled --color-error. And a status tone is a fill and a dot: it is not text.
5. Motion — an owned scale, and one grammar that is still dead
Settled by @OCE-1779. Until then six components carried tailwindcss-animate classes for a
package that was never a dependency, so no overlay in this design system had ever animated while
the source read as though they all did.
There are now three kinds of animation utility here, and only one of them is dead.
| Examples | Status | |
|---|---|---|
| The owned scale | animate-oc-fade-in / -out, animate-oc-pop-in / -out, animate-oc-slide-in-{top,right,bottom,left} and -out-, animate-oc-expand / -collapse, animate-oc-pulse | Use these. Generated into @theme from tokens.source.mjs. |
| Core Tailwind | animate-spin, animate-ping, animate-pulse, animate-bounce | Fine. Ships in the same layer as flex; always worked. |
tailwindcss-animate | animate-in, animate-out, fade-in-0, zoom-in-95, slide-in-from-top-2, animate-accordion-up | Emits nothing. Not a dependency, never was. Now rejected by no-arbitrary-styles. |
The rule for choosing: click-summoned surfaces POP, hover-summoned surfaces FADE. A pop is the interface answering an action you took. A hover surface seeps in on intent you have not committed to, and something that jumps at the pointer reads as a flinch. So Dialog, Popover, Select and DropdownMenu pop; Tooltip and HoverCard fade; Sheet slides from its own edge; the scrim behind a Dialog or Sheet only ever fades. Exits are faster than enters everywhere — a dismissal is a command, and latency after "close" reads as disobedience.
Why keyframes and not transitions, which is not a style preference: Radix's Presence reads
getComputedStyle().animationName and listens for animationstart / animationend /
animationcancel. It never observes transitionend, so a transition-based exit unmounts on the
spot. The enter fails too — content mounts already carrying data-state="open", so there is no
computed-value change for a transition to fire against. For any mount/unmount surface a
transition is not a weaker option, it is a non-option. transition-* remains correct for
hover/focus colour changes, and ease-quiet is still the easing token for those.
Reduced motion is handled centrally, and you must not hand-roll it. theme.css redefines
every --animate-oc-* to none inside @media (prefers-reduced-motion: reduce). Do not add
motion-reduce:animate-none to a component: that utility is specificity (0,1,0) while
data-[state=open]:animate-oc-pop-in is (0,2,0), so the guard is outranked by the animation it
is meant to disable — it looks right and does nothing. It works on Spinner only because
animate-spin there is unvarianted.
The doctrine is unchanged and now actually reachable: "the animation stops, the mark
persists". Every hidden state lives inside a keyframe's from, never in a base class, so
killing the animation paints the final state on the first frame. An overlay is fully open or
fully gone; presence is never ambiguous.
6. Grammar — use a component, not a styled div
| If you are building… | Reach for | Not |
|---|---|---|
| A callout or inline notice | Alert (+ AlertAction) | a styled div |
| A loading placeholder | Skeleton | a hand-rolled animate-pulse div |
| A status label | StatusPill (task/health/cap) or Badge | a styled span |
| A horizontal rule | Separator | <hr> or border-t |
| A metric tile | KPIStat | a Card you re-lay-out each time |
| A side panel | Sheet, or EntityDrawer for a tabbed record | a fixed-position div |
| A command palette | Command inside Dialog | a filtered list |
| A single-select over many options | Popover + Command — the Combobox recipe | a native <select> |
| A table with columns and sorting | DataTable | Table plus bespoke state |
Nesting rules that are contracts, not style
SelectItem→ insideSelectGroup.DropdownMenuItem→ insideDropdownMenuGroup.CommandItem→ insideCommandGroup.TabsTrigger→ insideTabsList.DialogandSheetrequire a Title. UseclassName="sr-only"if it must be visually hidden — it is the accessible name, not decoration.Avataralways needsAvatarFallback, for when the image fails.- Overlay components own their own stacking. Do not add
z-index. Buttonhas noisLoading. Compose it — a spinner beside the label, plusdisabled.- Use
classNamefor layout, not to override a component's colours or typography. An override is a copy that cannot follow a token rename.
Field and Form are complements, not rivals
Form(FormField,useFormField, …) owns state — it wrapsreact-hook-form.Field(FieldSet,FieldLegend,FieldGroup,FieldLabel,FieldError, …) owns layout and validation semantics:data-invalidon theField,aria-invalidon the control;FieldSet+FieldLegendto group related checkboxes or radios.
Use FieldGroup > Field > FieldLabel for form layout rather than a div with space-y-*. (And
prefer flex flex-col gap-* over space-y-* generally.)
Three that are easy to confuse
Tooltip— a label for a control that has none. Hover only. No interactive content.HoverCard— preview content, hover-opened, children may be interactive.Popover— click-opened and it stays until dismissed, for content the user acts in. It does not trap focus:popover.tsxpasses nomodal, so Radix’smodal={false}default applies.
A link inside a Tooltip means you picked the wrong one of the three.
Provenance
Upstream sources were read from the registry recorded in pairings.json — URL, generation and
date — per core-layer.md's rule that a port states what it read. The composition and forms
grammar in §6, and the Radix-vs-Base table in §3, were harvested once from shadcn's own
agent rules (shadcn/ui, skills/shadcn/rules/{composition,forms,styling,base-vs-radix}.md,
read 2026-08-14) and translated to our roles and generation. They are maintained here now; the
upstream skill is not a dependency of this repo.
The tables in §2 are generated from pairings.json by scripts/generate-pairings.mjs.
pnpm check:pairings fails if they drift, if the map disagrees with the component manifest in
either direction, or if a coverage row claims a module that does not exist.
Density
One attribute narrows the spacing scale to 0.8×. Spacing tightens; copy does not shrink, and a control keeps its target size.
Tokens
One colour-free role vocabulary with light and dark values, and the eight identity hues of Brandbook v3.1 every role is composed from — rendered live from the package.