{"name":"card","entry":"component","title":"Card","description":"Raised surface with a fine border, layered depth, and inset edge light.","category":"UI","capabilities":[],"needsRemotion":false,"registryDependencies":["@jbm/tokens"],"install":"npx shadcn@latest add @jbm/card","installName":"card","page":"https://jbm-ui.bns.studio/c/card","registryItem":"https://jbm-ui.bns.studio/r/card.json","sourcePath":"registry/jbm/ui/card.tsx","files":[{"source":"registry/jbm/ui/card.tsx","target":"src/jbm/ui/card.tsx","import":"@/jbm/ui/card","type":"registry:ui"}],"endpoints":{"markdown":"https://jbm-ui.bns.studio/catalog/card.md","json":"https://jbm-ui.bns.studio/catalog/card.json"},"snippet":"import { Card } from \"@/jbm/ui/card\"\nimport { color } from \"@/jbm/lib/tokens\"\nimport { Big } from \"@/jbm/ui/big\" // install @jbm/big separately\n\n<Card dark><Big color={color.bg}>Surface</Big></Card>","api":[{"export":"Card","kind":"component","summary":"Card-stock (or dark) container with the shared surface border, card shadow, 28px radius, and 40px padding.","props":[{"name":"children","type":"React.ReactNode","required":true,"default":null,"description":"Card content."},{"name":"style","type":"React.CSSProperties","required":false,"default":null,"description":"Inline styles merged last; use for width, height, or layout, not for new shadows."},{"name":"dark","type":"boolean","required":false,"default":null,"description":"Uses the dark code-card fill with the dark border and shadow tokens."}],"passthrough":[]}],"stage":{"mode":"fluid","reason":"Width fills its container and height follows the children. The card adds 40px padding and a 1px border on each side (82 stage pixels over the content); set style.width or style.height for a fixed box."},"examples":[{"title":"Dark card with a headline","code":"import { Card } from \"@/jbm/ui/card\"\nimport { color } from \"@/jbm/lib/tokens\"\nimport { Big } from \"@/jbm/ui/big\" // install @jbm/big separately\n\n<Card dark><Big color={color.bg}>Surface</Big></Card>"}],"qa":["Compare the light and dark surfaces on cream: fine border, layered shadow, and the inset highlight on the upper edge.","Check that content-driven height plus the 82px of padding and border still fits the safe area."],"related":[{"name":"tokens","relation":"installs"},{"name":"stat-card","relation":"installed-by"},{"name":"code-card","relation":"installed-by"},{"name":"big","relation":"example-import"}],"docs":[{"title":"Surface depth guide","url":"https://jbm-ui.bns.studio/docs/surface-depth.md"}],"setup":{"namespace":"@jbm","componentsJson":{"registries":{"@jbm":"https://jbm-ui.bns.studio/r/{name}.json"}},"command":"npx shadcn@latest add @jbm/<name>","target":"src/jbm/","importAlias":"@/jbm/…","tsconfigPaths":{"@/*":["./src/*"]}},"rules":["Install through the @jbm namespace: each registry item JSON (/r/<name>.json) carries its files' contents and each guide is served at /docs/<slug>.md, so agents never need the source repository (it is public on GitHub for people browsing the code).","Files install to src/jbm/ and import as @/jbm/…, which needs the @/* → ./src/* path alias in tsconfig.json.","Items marked needsRemotion require the remotion package and must render inside a Remotion composition or Player; every other item works in any React page.","Use one vermilion accent per composition; accent2 is for annotations only and soft is for dark surfaces only.","Stages are 1920×1080 landscape and 1080×1920 vertical with declared safe areas; each item's stage field declares its size in stage pixels, and scenes compose from YAML-shaped specs with @jbm/scene-spec."],"links":{"catalog":"https://jbm-ui.bns.studio/catalog.json","llms":"https://jbm-ui.bns.studio/llms.txt"}}