4.2.0
Doctrine

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 at node_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 styled div instead. 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 add in a consumer. If a component is genuinely missing, file it against Oceanic-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

Oceanicshadcn originalRelationUpstream generationNotes
accordionaccordionportclassicRadix 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.
alertalertsupersethand-written leafFour variants where upstream has two; AlertAction added by @OCE-1749 after it shipped missing.
alert-dialogalert-dialogportclassicNot 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-ratioaspect-ratioporttrivialSingle re-export, both generations identical. Deliberately unstyled — a layout constraint, not a surface.
attachmentattachmentportv4 hand-translationNo 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.
avataravatarsupersetclassicAvatarGroup, 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.
badgebadgesupersethand-written leafghost and link variants refused with citations (@OCE-1755).
breadcrumbbreadcrumbsupersetclassic5 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'.
bubblebubbleportv4 hand-translationThe 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.
buttonbuttonsupersetclassicicon-sm / icon-lg added (@OCE-1755); upstream xs and icon-xs refused — below the 32px touch floor.
button-groupbutton-groupportv4 hand-translationNo classic upstream. shadow-xs refused. A raw Input is the correct child — the group supplies no surface of its own.
calendarcalendarportv4 hand-translationNo 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).
cardcardsupersethand-written leafCardEyebrow is Oceanic; CardAction added by @OCE-1749. Three variants where upstream has none.
carouselcarouselportclassic~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.
chartchartportclassicThe 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.
checkboxcheckboxportclassic
collapsiblecollapsibleporttrivialThree bare re-exports, unstyled by decision — pure mechanism. Compare Accordion, which is a collapsible plus an opinionated row.
commandcommandportclassicWraps cmdk. Also the engine under the Combobox recipe.
context-menucontext-menuportclassicAll 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.
dialogdialogportclassicThe 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.
drawerdrawerportclassicvaul'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-menudropdown-menuportclassicContent 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.
emptyemptyportv4 hand-translationNo classic upstream. The canonical empty state; hand-rolled empty markup is the drift it replaces. The illustration slot is refused (§ Refusals: no stock imagery).
fieldfieldportv4 hand-translationNo 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.
formformportclassicreact-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-cardhover-cardportclassicshadow-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).
inputinputporthand-written leaf
input-groupinput-groupportv4 hand-translationNo classic upstream. InputGroupInput/InputGroupTextarea only — never a raw Input inside. rounded-[calc(var(--radius)-5px)] and xs sizing refused.
input-otpinput-otpportclassicWraps input-otp. animate-caret-blink refused — a dead utility here, and § Motion forbids the animation being the only carrier.
itemitemportv4 hand-translationNo 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.
kbdkbdportv4 hand-translationNo classic upstream. Overlaps DropdownMenuShortcut/CommandShortcut: those are menu-row affordances, Kbd is a standalone key rendering.
labellabelporthand-written leaf
markermarkerportv4 hand-translationNo 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.
menubarmenubarportMIXED — normalisedUpstream'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.
messagemessageportv4 hand-translationRow 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-scrollermessage-scrollerportv4 — behaviour AUTHOREDThe 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-selectnative-selectportv4 hand-translationNo 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.
paginationpaginationsupersetclassicIndependent 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.
popoverpopoversupersetclassicPopoverHeader/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.
progressprogressportclassicvalue===null is indeterminate and DISTINCT from 0 — upstream's arithmetic collapses the two. Track/fill use surface-sunken/brand, not primary/20.
questionnairequestionnaireoceanic-onlynone — AUTHOREDNot 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-groupradio-groupportclassic
resizableresizableportclassicreact-resizable-panels v4: orientation not direction, defaultLayout is an id-keyed record, onLayoutChange/onLayoutChanged. Coarse hit target raised 20px → 32px.
scroll-areascroll-areaportclassicNo fade-out edges — a gradient mask is refused.
selectselectportclassicRadix 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.
separatorseparatorportclassic
sheetsheetportclassicRadix 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.
sidebarsidebarportclassicThe 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.
skeletonskeletonporthand-written leafoc-pulse, the one infinite animation the scale allows — it carries state, and the block persists when it stops.
sliderslidersupersetclassicRadix 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.
sonnersonnerporthand-written leafThe 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.
spinnerspinnerportv4 hand-translationNo 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.
switchswitchportclassic
tabletableporthand-written leaf
tabstabsportclassicTabsList variant refused with a citation (@OCE-1755).
textareatextareaporthand-written leaf
toggletoggleportclassicON 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-grouptoggle-groupportclassicRadix 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.
tooltiptooltipportclassicA 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.

OceanicNearest shadcnRelationNotes
app-shellsidebaroceanic-onlyNearest 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-cardalert-dialogoceanic-onlyNearest 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-switcherbreadcrumboceanic-onlyVerified 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.
chartschartoceanic-onlyExplicitly 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-tabletableoceanic-onlyshadcn'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-barprogressoceanic-onlyNearest relative only. Measures a density, not task completeness. Reach for Progress for a task.
entity-carditemoceanic-onlyNearest 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-drawerdraweroceanic-onlyBuilt 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-onlyNo 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-onlyNo shadcn original.
kpi-statcardoceanic-onlyNearest relative only. A card with an eyebrow, a figure and a delta.
notification-bell—oceanic-onlyNo shadcn original. Composes Popover, Badge and a trigger.
product-shellsidebaroceanic-onlyNearest 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-barprogressoceanic-onlyNearest relative only. Measures a quantity against a declared cap and carries cap-state semantics. Reach for Progress for a task.
status-pillbadgeoceanic-onlyNearest relative only. Three axes (task/health/cap) over the generalised status roles; a Badge carries no status vocabulary.
symbol—oceanic-onlyNo shadcn original. The compact signature below normal wordmark sizes, per the same kit; shares its path-fidelity guarantee with wordmark.
theme-provider—oceanic-onlyshadcn 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-onlyNo 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-onlyNo 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-navsidebaroceanic-onlyNearest 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.

Archetypeshadcn equivalentNotes
app-shelldashboard blockshadcn's equivalent is a block, not a registry:ui component. Renders AppShell + WorkspaceNav + BreadcrumbSwitcher as one surface.
data-tabledata-table docs recipe (TanStack)Ours renders the DataTable pattern with FilterBar; upstream's is a recipe a consumer assembles.
settings-formforms docs recipeRenders 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).
statesempty + 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.

shadcnStatusOceanicTicketNotes
accordionshippedaccordion@OCE-1771
alertshippedalert@OCE-1723
alert-dialogshippedalert-dialog@OCE-1771Escape 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-ratioshippedaspect-ratio@OCE-1771
attachmentshippedattachment@OCE-1775No classic-generation source; PORT-WITH-ADAPTATION from new-york-v4.
avatarshippedavatar@OCE-1723
badgeshippedbadge@OCE-1723
breadcrumbshippedbreadcrumb@OCE-1779
bubbleshippedbubble@OCE-1775The 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.
buttonshippedbutton@OCE-1723
button-groupshippedbutton-group@OCE-1772v4 generation only — a hand-translation, not a port.
calendarshippedcalendar@OCE-1773v4 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.
cardshippedcard@OCE-1723
carouselshippedcarousel@OCE-1773Named in CONTRIBUTING.md as the anti-example. Javi waived the bar 2026-08-14 for the parity push; ~96% embla orchestration, not styling.
chartshippedchart@OCE-1774Ported 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.
checkboxshippedcheckbox@OCE-1723
collapsibleshippedcollapsible@OCE-1771
commandshippedcommand@OCE-1723
context-menushippedcontext-menu@OCE-1771
dialogshippeddialog@OCE-1723
drawershippeddrawer@OCE-1774Decided 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-menushippeddropdown-menu@OCE-1723
emptyshippedempty@OCE-1772v4 generation only — a hand-translation.
fieldshippedfield@OCE-1772v4 generation only, 25 data-slots — the largest hand-translation in Batch B. Complements Form.
formshippedform@OCE-1723
hover-cardshippedhover-card@OCE-1771
inputshippedinput@OCE-1723
input-groupshippedinput-group@OCE-1772v4 generation only. Carries rounded-[calc(var(--radius)-5px)] — one of only 3 genuinely off-scale radii upstream.
input-otpshippedinput-otp@OCE-1773
itemshippeditem@OCE-1772v4 generation only — a hand-translation.
kbdshippedkbd@OCE-1772v4 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.
labelshippedlabel@OCE-1723
markershippedmarker@OCE-1775PORT-WITH-ADAPTATION from v4. Cleanest of the set — no doctrine collision. Separator variant takes the house eyebrow treatment.
menubarshippedmenubar@OCE-1771Upstream's file is INTERNALLY mixed — 10 classic forwardRef sub-components beside v4 function+data-slot ones. Normalise to classic; drop data-slot.
messageshippedmessage@OCE-1775Row 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-scrollershippedmessage-scroller@OCE-1775The 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-selectshippednative-select@OCE-1775PORT-WITH-ADAPTATION. Trigger surface must equal Input and SelectTrigger; bg-[Canvas] on the option panel is kept deliberately.
paginationshippedpagination@OCE-1772Classic 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.
popovershippedpopover@OCE-1723
progressshippedprogress@OCE-1771
questionnaireshippedquestionnaire@OCE-1775SHIPPED 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-groupshippedradio-group@OCE-1723
resizableshippedresizable@OCE-1773react-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-areashippedscroll-area@OCE-1723
selectshippedselect@OCE-1723
separatorshippedseparator@OCE-1723
sheetshippedsheet@OCE-1723
sidebarshippedsidebar@OCE-1774Ported, 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).
skeletonshippedskeleton@OCE-1723
slidershippedslider@OCE-1771Radix shape: defaultValue is ALWAYS an array. Base takes a scalar.
sonnershippedsonner@OCE-1723
spinnershippedspinner@OCE-1772The package's first genuine motion primitive; @OCE-1779 settled the scale and this ships animate-spin with motion-reduce:animate-none.
switchshippedswitch@OCE-1723
tableshippedtable@OCE-1723
tabsshippedtabs@OCE-1723
textareashippedtextarea@OCE-1723
toggleshippedtoggle@OCE-1771
toggle-groupshippedtoggle-group@OCE-1771Radix shape: type="single"|"multiple". Base uses a multiple boolean.
tooltipshippedtooltip@OCE-1723
comboboxrecipe—@OCE-1775Popover + Command. The v4 component is @base-ui/react with no Radix equivalent; adding @base-ui/* is an automatic reject.
date-pickerrecipe—@OCE-1775NOT 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).
directionrefused—@OCE-1779RTL 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-menurefused—@OCE-1779Would 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.
toastrefusedsonner@OCE-1774Deprecated 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:

  1. https://ui.shadcn.com/r/styles/new-york/<name>.json serves MIXED generations. Of 27 files audited: 15 are classic forwardRef; 7 are backfilled v4 data-slot source under the classic URL — button-group, calendar, empty, field, input-group, item, kbd; and menubar is 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. Count forwardRef vs data-slot before trusting a file.
  2. With no components.json present, the shadcn CLI resolves every source and doc URL to bases/base/. So the CLI will hand you Base UI source unless you pin otherwise.

The API deltas that get silently mis-ported

ConcernOurs (Radix)Base UI
Custom trigger / element swapasChildrender={<X />}, plus nativeButton={false} when the element is not a button
Accordiontype="single"|"multiple", supports collapsible, defaultValue is a stringno type, uses multiple, defaultValue is always an array
ToggleGrouptype="single"|"multiple"multiple boolean
SliderdefaultValue is always an array — [50]a plain number for a single thumb
Selectinline 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 items prop on the root" and that its placeholder is "a { value: null } item". Harvested 2026-08-14 from shadcn's own rules/base-vs-radix.md.

First correction — I read the type signature and declared both false. SelectRoot.d.ts says items?: is optional, and SelectValue.d.ts has a real placeholder prop, 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.Value resolves its text only from the store's items / itemToStringLabel / a render-prop child, and otherwise stringifies the raw value. It never reads inline <Select.Item> JSX the way Radix's Value reads the selected ItemText at runtime. So:

ClaimVerdict
"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.Value takes a placeholder prop.

Two rules, and the second is the one that cost time.

  1. For a cross-generation fact, read the installed types — not a snapshot of anyone's docs, including this one. A harvested table ages; node_modules does not lie about the version you actually have.
  2. A type signature tells you what compiles, not what renders. items?: being optional is true and useless. Both .conformance.ts files in the @OCE-1782 spike compiled green while the trigger displayed the wrong text. Where behaviour is the question, the shipped .js and a rendered page are the sources; the .d.ts is 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 of core-layer.md that 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 in variant-refusals.json for 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.

UpstreamUse insteadAliased?
bg-background / text-foregroundbg-app / text-inkyes
bg-cardbg-surfaceyes
bg-popoverbg-elevatedyes
bg-primary / text-primary-foregroundbg-brand / text-brand-foregroundyes
text-muted-foregroundtext-ink-softyes
border-border / border-inputborder-hairlineyes
ring-ringring-brandyes
bg-destructivebg-stuck (status role)yes
bg-mutedbg-surface-sunkenNO — emits nothing
bg-accent / text-accent-foregroundbg-accent-tint, or bg-brand-soft + text-inkNO — emits nothing
bg-secondarybg-surface-sunkenNO — 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:

  1. Unaliased compat names — the three bold rows above. Upstream's toggle uses data-[state=on]:bg-accent; pasted verbatim, the toggle looks identical pressed and unpressed.
  2. Colour names as classes — a hue-named utility (bg-<hue>, text-<hue>) no longer exists. The identity hues remain colours as values, declared once in palette.css; they are never class names. Reach for the role, and if no role fits, the fix is to name one in tokens.source.mjs — as a role, with a light value and a dark value, never as a sixth entry in the identity layer.
  3. 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.

ExamplesStatus
The owned scaleanimate-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-pulseUse these. Generated into @theme from tokens.source.mjs.
Core Tailwindanimate-spin, animate-ping, animate-pulse, animate-bounceFine. Ships in the same layer as flex; always worked.
tailwindcss-animateanimate-in, animate-out, fade-in-0, zoom-in-95, slide-in-from-top-2, animate-accordion-upEmits 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 forNot
A callout or inline noticeAlert (+ AlertAction)a styled div
A loading placeholderSkeletona hand-rolled animate-pulse div
A status labelStatusPill (task/health/cap) or Badgea styled span
A horizontal ruleSeparator<hr> or border-t
A metric tileKPIStata Card you re-lay-out each time
A side panelSheet, or EntityDrawer for a tabbed recorda fixed-position div
A command paletteCommand inside Dialoga filtered list
A single-select over many optionsPopover + Command — the Combobox recipea native <select>
A table with columns and sortingDataTableTable plus bespoke state

Nesting rules that are contracts, not style

  • SelectItem → inside SelectGroup. DropdownMenuItem → inside DropdownMenuGroup. CommandItem → inside CommandGroup. TabsTrigger → inside TabsList.
  • Dialog and Sheet require a Title. Use className="sr-only" if it must be visually hidden — it is the accessible name, not decoration.
  • Avatar always needs AvatarFallback, for when the image fails.
  • Overlay components own their own stacking. Do not add z-index.
  • Button has no isLoading. Compose it — a spinner beside the label, plus disabled.
  • Use className for 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 wraps react-hook-form.
  • Field (FieldSet, FieldLegend, FieldGroup, FieldLabel, FieldError, …) owns layout and validation semantics: data-invalid on the Field, aria-invalid on the control; FieldSet + FieldLegend to 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.tsx passes no modal, so Radix’s modal={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.

On this page