Library

Components

49 Tier 1 primitives — shadcn/ui in the new-york style, retuned so that colour resolves through a Comitor role token and follows whichever palette is in use, the default one or data-contrast="high". The API stays shadcn-shaped: cva variants, asChild where it makes sense, and data-slot hooks to target the parts.

Everything below is imported from @comitor/ui unless a card names another entry.

Actions

Controls that commit something, each one focusable and operable from the keyboard. Kbd is the odd one out: it only renders the keys a shortcut is spelled with.

Inputs

Form controls. Resting, hover, focus and error borders all go through role tokens, so they stay legible in both colour palettes.

Display

Surfaces and status. Every tonal variant speaks through the -ink step, but not always the same way: Badge sits ink text on a tint of its own colour, while Alert keeps the plain card behind it because the filled step drops the text to 1.59:1.

Overlays

Everything that floats above the page, from a one-line tooltip to a full modal.

Navigation

Moving between views. Tabs keep state on one page; a tab set where each item is a real route is RouteTabs.

Layout

Containers that shape a region rather than fill it.

Other entries

Documented alongside the primitives, but not part of Tier 1 at the main entry — each card names where the import comes from.

Beyond the primitives

The package ships two more tiers on top of this one. Tier 2 composites are the patterns that repeat in every Comitor app, assembled from the primitives above and exported from the same @comitor/ui entry. Tier 3 is the application frame, which needs Next and next-themes and therefore lives behind @comitor/ui/shell.