# TidalUI

> Original React 19 and TypeScript components, sections and templates for product interfaces.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.

## Choosing components

Page regions: navigation-bar → hero-section → logo-cloud → feature-grid → testimonial-grid → pricing-section → faq-section → call-to-action-section → footer-directory. Use saas-landing-template for a complete assembled page.

- data-table: a conventional sortable table. data-grid: dense editable records with column controls.
- notification-stack: temporary toasts. notification-center: a compact dropdown history. notification-inbox: a persistent full-page inbox.
- footer: a concise baseline. footer-directory: grouped navigation. footer-conversion: a final conversion pitch. footer-social: a small social presence. footer-documentation: developer links.
- form-field: a labeled email input. input-group: inputs with leading or trailing controls. native-select: a native selection field. combobox: searchable choices.
- dialog: modal content. alert-dialog: a destructive confirmation. sheet-drawer: a side panel.

Check whenToUse, whenNotToUse, alternatives and pairsWith in catalog.json before choosing siblings. Static screenshots show the actual demo; full example files contain public usage code, never gated implementation.

## Theming

## Brand it in one line

Set the primary color and a tested readable foreground together, after the base stylesheet:

One-line recipe: `.tidal-scope.my-brand { --t-primary: #4f46e5; --t-primary-contrast: #fff; }`

```css
.tidal-scope.my-brand {
  --t-primary: #4f46e5;
  --t-primary-contrast: #fff;
}
```

`--t-primary` changes primary buttons, featured pricing, active navigation, and focus indicators. Keep `--t-primary-contrast` at WCAG-readable contrast against it. The neutral defaults resolve to ink on surface in both light and dark themes. `--t-accent` remains a compatibility alias for `--t-primary`.

## Token reference

| Token                  | Purpose                                                                 |
| ---------------------- | ----------------------------------------------------------------------- |
| `--t-ink`              | Body text, icons, and neutral decorative marks.                         |
| `--t-muted`            | Secondary text and de-emphasized controls.                              |
| `--t-surface`          | Main component background.                                              |
| `--t-subtle`           | Quiet nested surfaces.                                                  |
| `--t-border`           | Hairline borders and dividers.                                          |
| `--t-primary`          | Primary actions, featured pricing, active navigation, and focus.        |
| `--t-primary-contrast` | Text and icons placed on the primary color.                             |
| `--t-accent`           | Backward-compatible alias for the primary focus/accent color.           |
| `--t-wash`             | Hover and selected backgrounds that need less emphasis than primary.    |
| `--t-danger`           | Neutral default for destructive emphasis; pair it with words and icons. |
| `--t-canvas`           | Alias for the outer canvas, defaulting to surface.                      |
| `--t-faint`            | Alias for faint content, defaulting to muted.                           |
| `--t-border-strong`    | Stronger rule mixed from ink and surface.                               |
| `--t-ring`             | Low-emphasis translucent ring.                                          |
| `--t-line`             | Alias for standard borders.                                             |
| `--t-soft`             | Alias for subtle surfaces.                                              |
| `--t-radius-control`   | Controls, default `10px`.                                               |
| `--t-radius-card`      | Cards, default `18px`.                                                  |
| `--t-radius-panel`     | Alias for the card radius.                                              |
| `--t-radius-overlay`   | Dialogs and overlays, default `22px`.                                   |
| `--t-font`             | UI font stack.                                                          |
| `--t-display`          | Display font alias, defaulting to the UI stack.                         |
| `--t-shadow-soft`      | Restrained control/card shadow.                                         |
| `--t-shadow-lg`        | Broad overlay shadow.                                                   |
| `--t-ease-out`         | Standard finite entrance and state-change easing.                       |
| `--t-ease-spring`      | Short spring-like indicator easing.                                     |

Changing `--t-ink` recolors text and neutral artwork. Use `--t-primary` for branding so content remains readable and the override stays narrow.


## Gotchas

- status-badge accepts label="Live" or string children; label wins if both are provided.
- lucide-react 1.x does not export Github, Twitter, Linkedin or Youtube. For brand marks, use the official Simple Icons project (https://simpleicons.org) and review each brand's license and usage guidelines. Supply approved SVG React nodes to footer-social; do not invent lucide exports.
- Component CSS is required as well as tidal.css. Demo layout CSS is embedded in full usage examples.
- Review tidal-base updates with --overwrite after an upgrade. Its version marker identifies the installed foundation.
- TypeScript 6: use paths without baseUrl, as shown above.
- Browser previews ship compiled JavaScript, CSS and SVG geometry. Only reusable Pro implementation files are gated. Never treat browser-visible code as secret.

## Machine indexes

- [Catalog](https://tidalui.com/catalog.json): 220 components, 18 Free, 202 Pro, 9 templates; structured props, facets, styles, examples.
- [Free registry](https://tidalui.com/registry.json): 18 components, 50 icons, one shared tidal-base support item.
- [Pro registry](https://tidalui.com/r/pro/registry.json): 202 components and 150 icons; bearer authentication required. Search with ?q=hero&limit=100&offset=0 and follow pagination.hasMore.
- [Icons](https://tidalui.com/icons.json): 200 original icons, 50 Free and 150 Pro.
- [Full examples](https://tidalui.com/examples/catalog.json): self-contained usage, install closure and honest fixture verification.
- [License](https://tidalui.com/license), [terms](https://tidalui.com/terms), [privacy](https://tidalui.com/privacy), [third-party notices](https://tidalui.com/THIRD-PARTY-NOTICES.txt).

## Errors

401 missing_token: send the Authorization bearer header. 401 malformed_authorization: use Bearer followed by the key. 401 invalid_token: use a valid agent key. 401 token_expired: replace the expired/revoked key in your local environment. 403 entitlement_inactive: check your Pro plan, purchase terms and account access. 429 rate_limited: honor Retry-After. 404: inspect suggestions and use the correct free URL or @tidal-pro/<id>. Namespace must be exactly @tidal-pro. Never use query-string tokens or x-api-key. Source and Pro index responses are private, no-store and vary by Authorization/Cookie.
