raft-ui
v0.6.0
Published
React UI components for Raft.
Readme
raft-ui
rUI design foundations for plain HTML, plus React components built with Base UI and Tailwind CSS v4.
React
import { Button } from "raft-ui";@import "tailwindcss";
@import "raft-ui/styles.css";Plain HTML
Link dist/foundation.css directly, or copy it beside your HTML. It exposes the same theme variables used by the components, without React, Tailwind, or a CSS reset.
<link rel="stylesheet" href="./foundation.css" />
<style>
body {
background: var(--layer-canvas);
color: var(--foreground);
}
article {
background: var(--layer-panel);
}
</style>Put class="light" or class="dark" on the root to pick a mode; omit it to follow the system mode. Optional fonts.css loads web fonts and defines --heading-font, --sans-font, and --mono-font.
styles.css remains the Tailwind integration entry and imports this foundation automatically.
Agent Skills
raft-ui ships two version-matched Agent Skills in the npm package:
raft-ui-guidefor installation, component selection, composition, and styling.raft-ui-critiquefor visual, interaction, accessibility, and light/dark review.
TanStack Intent
Allow raft-ui skills in the consuming project's package.json:
{
"intent": {
"skills": ["raft-ui"]
}
}Install the project guidance, then inspect or load either skill:
pnpm dlx @tanstack/intent@latest install --map
pnpm dlx @tanstack/intent@latest load raft-ui#raft-ui-guide
pnpm dlx @tanstack/intent@latest load raft-ui#raft-ui-critiqueOther installers
The package uses the standard skills/*/SKILL.md layout, so consumers can also use tools such as skills-npm or Vercel skills. Installer-specific destination names may add their own package namespace.
Development
- Install dependencies:
vp install- Build the library:
vp pack