Update AI context for Tailwind v4 and React 19

- AGENTS.md: describe ui components as React 19 ref-as-prop function
  components using data-slot and the unified radix-ui package
- theming skill: register fonts and color tokens via @theme in
  src/index.css (no tailwind.config.ts); fix color values to use the
  hsl() wrapper that matches the real index.css
- ai-chat skill: import VisuallyHidden from the unified radix-ui package
- nwc skill: convert ZapDialog/WalletModal forwardRef to ref-as-prop
- edit-profile skill: drop React.FC in favor of plain function typing
This commit is contained in:
Alex Gleason committed 2026-06-05 09:43:15 -05:00
1 parent 459221305f
commit 772479e232
6 files changed
+41 -44

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ This project is a Nostr client application built with React 19.x, TailwindCSS 4.
## UI Components
Components in `@/components/ui` are unstyled, accessible primitives styled with Tailwind. They follow a consistent pattern using `React.forwardRef` and the `cn()` class-merge utility, and many are built on Radix UI primitives. When you need a specific component, list the directory (`ls src/components/ui/`) or import from `@/components/ui/<name>` — all common primitives are present (buttons, inputs, dialogs, dropdowns, forms, tables, etc.).
Components in `@/components/ui` are unstyled, accessible primitives styled with Tailwind. They follow a consistent React 19 pattern: plain function components that type props via `React.ComponentProps<...>` and forward `ref` as a normal prop (no `React.forwardRef`), tag their root with a `data-slot` attribute, merge classes with the `cn()` utility, and define variants with `class-variance-authority`. Components built on Radix import from the unified `radix-ui` package (e.g. `import { Dialog as DialogPrimitive } from "radix-ui"`), not individual `@radix-ui/react-*` packages. When you need a specific component, list the directory (`ls src/components/ui/`) or import from `@/components/ui/<name>` — all common primitives are present (buttons, inputs, dialogs, dropdowns, forms, tables, etc.).
## System Prompt Management