Add design-sync inputs for claude.ai/design
Docker / build (push) Failing after 1m43s

Import this repo's components into a Claude Design project so the design
agent builds with the real Cloudrite library instead of generic components.

The repo is a Next.js app, not a component library: no dist/, no exports
map, no .d.ts tree, and Tailwind exists only as build directives. So
.design-sync/ carries a small build that manufactures a consumable package
from source (staged to the gitignored .ds-pkg/):

- tsconfig.dts.json  declaration emit, for real <Name>Props contracts
- build-css.mjs      Tailwind v4 -> a static stylesheet via @tailwindcss/postcss
- make-pkg.mjs       stages the package; index.js exports all 292 symbols
                     while index.d.ts exports only the 61 roots, so shadcn's
                     flat compound parts don't each become a preview card.
                     Also generates the per-root parts tables in docs/
- shims/next-link    router-free anchor; the real next/link needs
                     AppRouterContext and drags in the App Router runtime
- fonts/             Space Grotesk + Inter woff2 (SIL OFL). next/font supplies
                     these at runtime in the app, so the bundle has none

previews/ holds 40 authored preview stories, conventions.md is prepended to
the generated README as the design agent's usage guide, and NOTES.md records
the gotchas a future sync would otherwise rediscover.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
ASOwnerYT
2026-08-05 17:04:10 +12:00
co-authored by Claude Opus 5
parent d321ed44a8
commit 3970cf9a00
116 changed files with 3403 additions and 1 deletions
+94
View File
@@ -0,0 +1,94 @@
import type { ReactNode } from 'react';
import {
Button,
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from 'cloudrite';
import { ArrowUpRight, Cloud, TrendingUp } from 'lucide-react';
// Cloudrite is dark-only — foreground-coloured text and `border-border` are
// invisible on the preview harness's white card body. Stories render on the
// brand surface, which is also how a real screen is built.
const Surface = ({ children }: { children: ReactNode }) => (
<div className="bg-background text-foreground rounded-lg p-6">{children}</div>
);
export const ServiceCard = () => (
<Surface>
<Card className="max-w-sm">
<CardHeader>
<div className="flex size-12 items-center justify-center rounded-xl bg-primary/10 text-primary">
<Cloud className="size-6" />
</div>
<CardTitle className="mt-4">Cloud Hosting</CardTitle>
<CardDescription>
Fast, easy hosting for WordPress, game servers and more proudly hosted here in New
Zealand.
</CardDescription>
</CardHeader>
<CardContent>
<ul className="flex flex-wrap gap-2">
{['NZ Hosted', 'WordPress', 'Game Servers', '24/7 Uptime'].map((f) => (
<li
key={f}
className="rounded-full border border-border px-3 py-1 text-xs text-muted-foreground"
>
{f}
</li>
))}
</ul>
</CardContent>
<CardFooter>
<Button variant="outline" className="w-full">
Explore hosting
<ArrowUpRight />
</Button>
</CardFooter>
</Card>
</Surface>
);
export const WithAction = () => (
<Surface>
<Card className="max-w-sm">
<CardHeader>
<CardTitle>Managed WordPress</CardTitle>
<CardDescription>Renews 12 March 2027</CardDescription>
<CardAction>
<Button variant="ghost" size="sm">
Manage
</Button>
</CardAction>
</CardHeader>
<CardContent className="text-sm text-muted-foreground">
Backups, updates and uptime monitoring handled for you. Includes a free NZ-hosted staging
site.
</CardContent>
</Card>
</Surface>
);
export const StatCard = () => (
<Surface>
<Card className="max-w-xs">
<CardHeader>
<CardDescription>Uptime this month</CardDescription>
<CardTitle className="font-sans text-3xl">99.98%</CardTitle>
<CardAction>
<span className="flex items-center gap-1 text-xs text-primary">
<TrendingUp className="size-3" />
+0.04%
</span>
</CardAction>
</CardHeader>
<CardFooter className="text-xs text-muted-foreground">
Measured across all Auckland edge nodes
</CardFooter>
</Card>
</Surface>
);