# Tidal Design System
> A shadcn-style component library and design token system, sourced from Figma. Lilac brand, Inter type, light + dark modes.
## Current version — 2.1.0
`@liquidai/react` and `@liquidai/tokens` are at **2.1.0**. 2.1.0 adds the
draft agent components (see AGENT_UI.md) and a stronger default border; it needs
no action from 2.0.0. If you are on 1.x, two changes from 2.0.0 need action
before upgrading:
1. **Component titles render `
`, not headings.** `CardTitle` was `
`;
`DialogTitle` / `SheetTitle` / `AlertDialogTitle` were `
`. Any CSS
selector or test query targeting a heading inside those components breaks.
`CardTitle` exposes `data-title-size` as a stable hook; the dialog family
is queried by text or via `aria-labelledby`. Ref types moved from
`HTMLHeadingElement` to `HTMLParagraphElement`.
2. **Tailwind v4 is now supported** via `@liquidai/tokens/theme`. The v3 JS
preset (`@liquidai/tokens/tailwind`) is unchanged — staying on v3 needs no
action. Under v4, `--radius-sm` resolves to 6px where v3 emits 4px, because
v4 slid the size scale down a step.
Everything else in 2.0.0 is a visual refresh synced from Figma (lighter borders,
translucent card, neutral focus ring) plus a fix for a white border outline that
appeared in dark mode. See MIGRATION.md in the repo for the full guide.
## Getting started
- [Introduction](https://tidal-design-system-docs.vercel.app/): What Tidal is, and where the sources of truth live.
- [Installation](https://tidal-design-system-docs.vercel.app/installation): Local dev setup.
- [shadcn/ui theme](https://tidal-design-system-docs.vercel.app/shadcn-theme): Install Tidal as a shadcn/ui theme via `npx shadcn add` — colors, radius, fonts, light + dark. Neutral primary, reserved lilac.
- [Using with agents](https://tidal-design-system-docs.vercel.app/using-with-agents): How to point an AI coding agent at Tidal docs — CLAUDE.md templates, remote llms.txt endpoints, and prompt patterns.
## Tokens
- [Colors](https://tidal-design-system-docs.vercel.app/tokens/colors): Semantic color tokens (light + dark) and the Liquid brand palette.
- [Typography](https://tidal-design-system-docs.vercel.app/tokens/typography): Inter / Iowan Old Style / JetBrains Mono, weights, one compact 14px-base scale, line heights.
- [Spacing & layout](https://tidal-design-system-docs.vercel.app/tokens/spacing): Compact spacing scale, the canonical gap rules, control/icon sizes, radius, layout tokens, shadows.
- [Focus rings](https://tidal-design-system-docs.vercel.app/tokens/gradients): Primary/destructive focus rings (compound box-shadows). Surfaces are flat.
## Components
- [Button](https://tidal-design-system-docs.vercel.app/components/button): variant × tone × size, flat fills, round pill option, icon slots, loading.
- [IconButton](https://tidal-design-system-docs.vercel.app/components/icon-button): Square variant of Button. Sizes xs/sm/md matching the xs|sm|md|lg scale.
- [Input](https://tidal-design-system-docs.vercel.app/components/input): Icon slots, invalid/disabled/readOnly states, hover overlay, focus ring.
- [Input OTP](https://tidal-design-system-docs.vercel.app/components/input-otp): One-time password input — one cell per character. Built on the input-otp library.
- [Label](https://tidal-design-system-docs.vercel.app/components/label): Native